Monty Sharma
Monty Sharma

Reputation: 177

How to get system defined all themes?

Question:- Does android provide any function to retrieve the all themes defined in the system.

Example: Theme_Holo_Light or others.

Upvotes: 2

Views: 99

Answers (1)

rds
rds

Reputation: 26984

Short answer: no

There are only two theme families for Android:

  • Theme
  • Theme.Holo

The later was introduced in Android 3.0 Honeycomb API 11, and you can knwo that in the release notes

The standard system widgets and overall look have been redesigned and incorporate a new "holographic" user interface theme. The system applies the new theme using the standard style and theme system. Any application that targets the Android 3.0 platform—by setting either the android:minSdkVersion or android:targetSdkVersion value to "11"—inherits the holographic theme by default.

These themes come with variants (basically: Light and Dark)

So when you design a theme:

  • either you create everything from scratch
  • either you inherit from the Theme.DeviceDefault, knowing that it will depends on the Android version of each device, hence you may create a variation of your theme in values-v11 for Holo

Upvotes: 2

Related Questions