Apply Holo theme to pre 3.0 Android versions? - android

I am curious about how to apply HOLO theme in older android version devices. I know there is way using ActionBarSherlock library. But I am not very sure about how to accomplish it.
Any suggestion are welcome.
Thanks in advance.

Look into this
And this.
I hope this would help you. If you have any other questions, ask.
OK! So basically there is nothing wrong with what you're doing. AppCompact library should use old themes on old devices.
if you want to use Holo themes on old devices you should use HoloEverywhere.

Use app compact library from Android support library
http://www.begincodingnow.com/tutorial/adding-action-bar-support-library-to-apps-running-on-android-2-1/

Related

Implement material design in android 5.0 and lower

I want to use Material Design in different devices including(i.e) Android 5.1 and Android 4.4.2.
So, after 5.0 android uses Material by default. But what about other devices?
Where I can get samples of such project? How to implement Button, side K and FAB.
Actually, what is the best and common way to implement material? I know that there are some libs to handle my task, but maybe there is the better way.
Please help me to figure out this issue.
Thanks.
You have to use AppCompat Library v21 for Material Design in Pre-Lollipop Device.
http://android-developers.blogspot.com/2014/10/appcompat-v21-material-design-for-pre.html
Additional, want to include ActionButton, Collapsible Toolbar, Floating EditText etc. are available with Design Support Library by Android Developers.
http://android-developers.blogspot.com/2015/05/android-design-support-library.html
You can use the AppCompact support library for that.
http://android-developers.blogspot.in/2014/10/appcompat-v21-material-design-for-pre.html

Android AppCompat ProgressDialog?

I want to style all the android.app.ProgressDialogs in my app on pre-Lollipop versions to make them look like Material Design.
Maybe I'm missing something obvious: I'm looking for android.support.v7.app.ProgressDialog, but there is no such class in Android AppCompat library.
Should I write my own implementation of ProgressDialog from scratch? What is the reason it's not included in AppCompat library?
Widget.AppCompat.* styles can be used starting from API 7.
There is currently no AppCompat style for the progress dialog since it relies on AnimatedVectorDrawable.
However, it's possible to write a custom drawable that has the same behavior and apply it to your ProgressDialog.
check out GIT
You can use other cool compatibility libraries besides AppCompat.
There are cool libraries which brings fully animated Material Design components to pre-Lolipop Android on Github. The images are from Rey5137's "Material" library. You better use one of such libraries rather that writing from scratch.

How to have Android 4+ spinner look in older versions?

I don't want to use ActionBarSherlock to reduce the app size.
I found android.support.v7.internal.widget.SpinnerICS, but it doesn't work.
Anyone have any light to share about this?
HoloEverywhere is what you're looking for. You must have ActionBarSherlock to use this library

How can we use Holo Theme(supported in android 4.x) in android 2.3

Can any one tell how to use themes used in higher android version to lower android version.I referred this link
http://android-developers.blogspot.in/2012/01/holo-everywhere.html but does not seemed to be helpful and also searched everywhere but didn't find anything.Final option SO
Any help will be great.
Thanks in advance!!
Holo is not in the lower versions of Android, so unsurprisingly, you can't use it in the old versions. I suppose technically you could try to style everything yourself the same way, maybe starting by copying the theme from the source code of ICS, but there's no automatic way. Maybe you can find someone who has already backported the theme.
Some people are using this: https://github.com/ChristopheVersieux/HoloEverywhere . It seems to work for a lot of people, but I havent got it to work yet, maybe its intellij idea playing tricks on me. It is however probably a better idea to style the components you need yourself, especially if you want it to blend in on diferent android versions.

Set Holo theme in older Android versions?

I have used several applications which appear to use Android 4.0's 'Holo' theme, whilst still running on an older version of Android (2.3). Is there a supported way to do this or have these developers designed their own custom themes?
Thanks.
I am working on this:
https://github.com/ChristopheVersieux/HoloEverywhere
EDIT: Moved to: https://github.com/Prototik/HoloEverywhere
Might be really fit your needs.
Look here SDK/platforms/android-15/data/res/
There are all styles and related resource data used on latest Android 4.
You can also download it from here:
https://github.com/android/platform_frameworks_base/tree/master/core/res
And you can grab what you need from here to your app. Only remove android: prefix to use it in you project. This is only way how to defines the same theme as is used in the latest Android versions.

Categories

Resources