android - Applying buttonStyle via theme wouldn't work, applying directly works perfectly -


i having problem applying button style theme applying button directly works perfectly. idea what's problem here?

themes.xml

<style name="theme.apptheme" parent="@style/theme.sherlock.light.darkactionbar">     <item name="android:buttonstyle">@style/buttonapptheme</item> </style> 

styles.xml

<style name="buttonapptheme" parent="@android:style/widget.button">         <item name="android:background">@drawable/btn_default_holo_light</item>         <item name="android:minheight">48dip</item>         <item name="android:minwidth">64dip</item>         <item name="android:textcolor">#000000</item> </style> 

androidmanifest.xml

<application     android:name=".threesixtyusapp"     android:allowbackup="true"     android:icon="@drawable/icon"     android:label="@string/app_name"     android:theme="@style/theme.apptheme" > 

applying button style directly works:

  <button       android:id="@+id/like"       android:layout_width="100dp"       android:layout_height="wrap_content"       style="@style/buttonapptheme"       android:text="@string/like" /> 

this looks generated. did forget styles/themes in values-v11 or values-v14 folders?


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -