Top "Android-styles" questions

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

Transparent status bar not working with windowTranslucentNavigation="false"

I am developing an Activity where I need to make the navigation bar opaque, and the status bar transparent on …

android android-layout android-appcompat android-styles
How do i set the style of a textView programmatically?

I'm creating a textView programmatically. Is there a way that i can set the style of this textView? Something similar …

android styles textview android-styles
How do I use obtainStyledAttributes(int []) with internal Themes of Android

So I have looked around and found out that android.R.styleable is no longer part of the SDK even …

android android-xml android-resources android-styles
How to use android:Theme.Material (Material theme) in styles.xml android?

In my application, I am trying to implement android:Theme.Material as a parent theme in styles values-21 folder: <!…

android material-design android-appcompat android-theme android-styles
Is possible set Expanded Notification as default in Big Text Notifications?

I followed this Sample Code In Big Text Notifications section, he said that need expand to see Big text notification …

android notifications android-notifications android-styles
What's the meaning of android:progressBarStyle attribute in ProgressBar?

I've been looking through the documentation for ProgressBar class and found these attributes: android:progressBarStyle android:progressBarStyleHorizontal android:progressBarStyleLarge android:…

android android-progressbar android-styles
Android: Add divider between items in RecyclerView

I am using RecyclerView with rounded corner, to make it rounded corner I used below XML: view_rounded.xml:- &…

android xml android-recyclerview android-styles
Changing NumberPicker divider color

On recent android versions, number pickers use a blue divider when drawn (cf. image below). I would like to change …

android android-styles numberpicker
How to get accent color programmatically?

How would one fetch the accent color set in styles, like below, programmatically? <item name="android:colorAccent">@color/…

android android-xml android-styles
Question mark (?) in XML attributes for Android

Can anyone explain the question mark means in Android XML attributes? <TextView style="?android:attr/windowTitleStyle" More attributes />

android xml android-styles