Top "Android-styles" questions

A style is a collection of properties that specify the look and format for a View or window

Android theme not being set

I have a theme that refuses to be applied to activities - none of the styles are applied. If I …

android themes android-manifest android-styles
What is difference among styles.xml and themes.xml

May I know what is the difference between styles.xml and themes.xml? To me, they just look same as …

android android-theme android-styles
ResourcesCompat.getDrawable() vs AppCompatResources.getDrawable()

I'm a bit confused with these two APIs. ResourcesCompat.getDrawable(Resources res, int id, Resources.Theme theme) Return a drawable …

java android android-resources android-theme android-styles
Using App namespace in style

I am going to give an example to demonstrate the greater point. Imagine my app has a number of FloatingActionButtons. …

android android-layout android-theme android-styles
How to set style to a progressBar programmatically on Android

I have ProgressBar style in style.xml. When I create layout, put there ProgressBar and set style like: style="@style/…

android android-styles
Styling android search view and drop down list in actionbar

In my app, I have a searchview that displays search suggestions. I want the dropdown/spinner and text to be …

android android-actionbar android-styles searchview android-toolbar
How can i set elevation shadow only on the bottom on react native

I'm trying to add a shadow on the bottom of a view, but i don't how to do it on …

android react-native react-native-android android-styles shadow
Android: Toolbar text is coming as black instead of white

My Toolbar Text, Back arrow and all is coming as black but I want it to be white How can …

android android-xml android-styles android-toolbar
Setting header color of app in overview (recent apps) screen

I'm adding some Lollipop-only styling to an app. I want to change color of header in overview screeen like Gmail …

android android-5.0-lollipop material-design android-styles
AAPT: error: attribute android:forceDarkAllowed not found

Im trying to use android dark theme. I install android studio 3.5 preview. compileSdkVersion 28 targetSdkVersion 28 but still getting this error. Is …

android android-theme android-styles