If my screen get’s tilted my font goes beyond my button’s borders.
How can I define a different fontsize depending on screen orientation ?
I now have my button defined as such:
<Button
android:id="@+id/buttonClear"
style="@style/ButtonText"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/custombuttonred"
android:text="@string/clear"
android:textSize="50sp" />
Define the same style in
res/values/styles.xmlandres/values-land/styles.xml. Make the font size in one of them different.