How to create blue horizontal line in EditText Android - android

As in my question title, is it a default theme in Android or I need to do it manually? I want to have it from Froyo devices and above. Any guideline or hint to achieve it?

Are you asking for the Holo theme for older Android versions than 3.0? If you do, then take look at the library HoloEverywhere: https://github.com/ChristopheVersieux/HoloEverywhere
Many developers use it and it does exactly what you expect.

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

Is an Android app that uses both Holo theme and google cast possible?

My app is already using Holo but when I added chromecast support it was required that I use the v7 support ActionBarActivity or at least FragmentActivity. Both of these require me to use an AppCompat theme from what I can tell. Is that true? Does adding a feature like google cast really require you to change your theme? The reason I resist changing to an appcompat theme is because it breaks allot of the custom styling I created.
So in conclusion it sounds like for now the answer is no its not possible. Based on the comments from Ali and commonsware. At least without using unofficial sdk code which I do not want to do.

Backward compatibility Material Design

As Google says in this page, Material Theme is only available on Android L Developer Preview.
But how can these apps work on previous version of Android L?
https://play.google.com/store/apps/details?id=com.borggren.notes
http://officialandroid.blogspot.it/2014/10/a-new-look-for-google-play-newsstand.html
There are other apps.
Do they use some components similar to material design?
Don't they use the "android:Theme.Material"?
Or is there a way to use Material Theme on previous versions (and I am the only one who doesn't know how to do this)?
I think they are using the components not the theme itself. If you try to give this theme as your overall theme in studio without the minSDK =21 it gives you an error. They are trying to emulate the material design.
For example if you want the floating action bar you can use this project. https://github.com/FaizMalkani/FloatingActionButton
I guess he uses frame layout to emulate that button on the lower right corner. Have a look!!

ICS style in Froyo and Gingerbread Apps

I am developing an application for Android and I'm using the API level 8. However I would like this app would use the theme of ICS when running on Froyo and Gingerbread because the theme of the ICS is much more beautiful. I wish that at least the color scheme and shape of the buttons were equal. Is there any way to do this?
The first thing you might want to look at is ActionbarSherlock as it adds a lot of consistency to your pre-ics code, even though this is not directly related to the theme.
Then take a look at the HoloEverywhere project on GitHub for using the Holo theme on apps designed for pre-ics devices.
The best i found is android-holo-colors in which you will get all the controls and also can choose holo-light or holo-dark with custom colors you want.
I hope this will help you
The SDK folder contains most of the themes, styles and drawables used in ICS. Check
SDK folder\platforms\android-15\data\res.
You can apply themes/styles in your app like this

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