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

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

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

Apply Holo theme to pre 3.0 Android versions?

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/

use actionbar in android 2.3 programming

I have been using actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); in my app but the target device is android 2.3.2 and does not support this code.
Is there any solution to have actionbar and tabview in android 2.3?
The solution for getting using the ActionBar in versions prior to 3.0 is called ActionBarSherlock, and enables you to give the user a unified experience across the Android versions.
Link to the website: ActionBarSherlock.com
There's actually also something called ActionBarCompat (read more here), but it's really inferior to ActionBarSherlock.
Edit: You'll find a lot of useful samples within the project hierarchy, but this should probably be the thing you're looking to accomplish: TabNavigation.java
Use ActionbarSherlock: http://actionbarsherlock.com/‎
Here is the tutorial for using tabs with ActionbarSherlock : http://www.androidbegin.com/tutorial/implementing-actionbarsherlock-fragment-tabs-in-android/
Yeah ActionbarSherlock is a best way to do it.
Here is how to add it link

how to use/implement navigation drawer-like feature for older versions of android

http://developer.android.com/design/patterns/navigation-drawer.html
I need this functionality, like gmail,linkedin,youtube app but that should support also older versions of android like 2.3
SherlockNavigationDrawer is probably the way to go, as I reckon you might want to combine it with ActionBarSherlock as well.
That said, SlidingMenu by Athulh works both with and without ActionBarSherlock, so that's another option. :)

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.

Categories

Resources