Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does 'parent' mean in styles.xml?

Tags:

android

What does parent="android:Theme.Holo" mean in res/values/styles.xml?

<style name="activated_dark_item" parent="android:Theme.Holo">
    <item name="android:background">@drawable/mDrawable</item>
</style>
like image 699
Eugene Avatar asked Aug 28 '11 10:08

Eugene


1 Answers

Parent attribute means that your current themes extends this Parent theme. It has all its attributes that you can override in your current style. It is a kind of inheritance for styles.

You can also check here: http://developer.android.com/guide/topics/ui/themes.html#Inheritance

like image 75
Dimitris Makris Avatar answered Oct 12 '22 17:10

Dimitris Makris