In my styles.xml inside the values directory I defined my custom button as follows:
<style name="Button" parent="android:Widget.Holo.Light.Button">
<item name="android:typeface">serif</item>
<item name="android:layout_marginLeft">6dp</item>
<item name="android:layout_marginRight">6dp</item>
<item name="android:layout_marginTop">10dp</item>
<item name="android:layout_marginBottom">10dp</item>
<item name="android:minHeight">40dp</item>
<item name="android:minWidth">40dp</item>
<item name="android:paddingLeft">10dp</item>
<item name="android:paddingRight">10dp</item>
</style>
It is working at least with my Android 4.2 device but Android 2.3 does not respect the minHeight
value. I have also problems with fonts, in my TextView
s Android 2.3 seems to use enormous fonts instead of the default values from the style I inherit in the following code:
<style name="TextView" parent="android:Widget.Holo.Light.TextView">
<item name="android:padding">5dp</item>
<item name="android:typeface">serif</item>
</style>
Is there any special thing I must do for API < 11?
Thank you so much,