Questions tagged [android-theme]

A theme is a style applied to an entire Android application or Activity, rather than an individual View. When a style is applied as a theme, every View in the Activity or application will apply each style property that it supports.

A theme is a style applied to an entire Android application or Activity, rather than an individual View. When a style is applied as a theme, every View in the Activity or application will apply each style property that it supports.

See also the official documentation.

2186 questions
420
votes
41 answers

Android toolbar center title and custom font

I'm trying to figure out the right way to use a custom font for the toolbar title, and center it in the toolbar (client requirement). At the moment, i'm using the good old ActionBar, and I was setting the title to empty value, and using…
Mathbl
  • 5,047
  • 4
  • 19
  • 24
366
votes
31 answers

Can't Find Theme.AppCompat.Light for New Android ActionBar Support

I am trying to implement the new ActionBar support library that was released by Google a couple days ago. In the past, I have successfully implemented ActionBarSherlock without any issues using the same method listed on Google Developer's Support…
330
votes
15 answers

Full Screen Theme for AppCompat

I would like to know how can I apply full screen theme ( no title bar + no actionbar ) to an activity. I am using AppCompat library from support package v7. I've tried to applied android:theme="@android:style/Theme.NoTitleBar.Fullscreen" to my…
Ye Lin Aung
  • 11,234
  • 8
  • 45
  • 51
302
votes
20 answers

How do I change the background color of the ActionBar of an ActionBarActivity using XML?

Details: I'm extending ActionBarActivity. Eclipse and SDK fully patched as of 2011-11-06. Deployed to Samsung device with Android 2.3.3 Application has…
user77115
  • 5,517
  • 6
  • 37
  • 40
195
votes
11 answers

Get color value programmatically when it's a reference (theme)

Consider this: styles.xml attrs.xml color.xml
Seraphim's
  • 12,559
  • 20
  • 88
  • 129
144
votes
2 answers

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. Consequently, I want to create one style and reuse it. So I do the following: