title: Text size and different android screen sizes
body: <p>I know, it was discussed already 1000 times, but I can't adjust the text size for different screen sizes. I try to use 'sp' as size units in my custom style:</p>
  
  <pre><code>&lt;style name="CustumButtonStyle" parent="@android:style/Widget.Button"&gt;
      ...
      &lt;item name="android:textSize"&gt;30sp&lt;/item&gt;
      ...
  &lt;/style&gt;
  </code></pre>
  
  <p>In 2.7 QVGA it looks OK:</p>
  
  <p><img src="https://i.stack.imgur.com/KNKqH.jpg" alt="2.7QVGA 30sp"> </p>
  
  <p>But in 7in WSVGA it looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/ifOba.jpg" alt="7in WSVGA 30sp"></p>
  
  <p>I've tried to use both 'sp' and 'dp' with the same result.</p>
  
  <p>Could you please explain how to make these buttons look the same on any screen?</p>
  
  <p>The full custom button style</p>
  
  <pre><code>&lt;style name="CustumButtonStyle" parent="@android:style/Widget.Button"&gt;
      &lt;item name="android:background"&gt;@drawable/custom_button&lt;/item&gt;
      &lt;item name="android:layout_width"&gt;fill_parent&lt;/item&gt;
      &lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt;
      &lt;item name="android:layout_margin"&gt;3dp&lt;/item&gt;
      &lt;item name="android:textColor"&gt;#ffffff&lt;/item&gt;
      &lt;item name="android:gravity"&gt;center&lt;/item&gt;
      &lt;item name="android:textSize"&gt;30sp&lt;/item&gt;
      &lt;item name="android:textStyle"&gt;bold&lt;/item&gt;
      &lt;item name="android:shadowColor"&gt;#000000&lt;/item&gt;
      &lt;item name="android:shadowDx"&gt;1&lt;/item&gt;
      &lt;item name="android:shadowDy"&gt;1&lt;/item&gt;
      &lt;item name="android:shadowRadius"&gt;2&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>And in my application theme I have</p>
  
  <pre><code>&lt;item name="android:buttonStyle"&gt;@style/CustumButtonStyle&lt;/item&gt;
  </code></pre>
  
  <p>And there is my layout:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/RelativeLayout1"
  android:layout_width="fill_parent"
  android:background="@drawable/grid"
  android:gravity="center"
  android:orientation="vertical" android:layout_height="fill_parent"&gt;
  
  &lt;Button
      android:id="@+id/buttonContinue"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentTop="true"
      android:layout_centerHorizontal="true"
      android:layout_gravity="center"
      android:gravity="center"
      android:text="@string/continue_game" android:layout_marginTop="3dp" android:layout_marginBottom="3dp"/&gt;
  
  
  
  &lt;Button
      android:id="@+id/buttonNewGame"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignLeft="@+id/buttonContinue"
      android:layout_alignRight="@+id/buttonContinue"
      android:layout_below="@+id/buttonContinue"
      android:layout_gravity="center"
      android:gravity="center"
      android:text="@string/new_game" android:layout_marginTop="3dp" android:layout_marginBottom="3dp"/&gt;
  
  
  
  &lt;Button
      android:id="@+id/ButtonAbout"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignLeft="@+id/buttonNewGame"
      android:layout_alignRight="@+id/buttonNewGame"
      android:layout_below="@+id/buttonNewGame"
      android:layout_gravity="center"
      android:gravity="center"
      android:text="@string/about" android:layout_marginTop="3dp" android:layout_marginBottom="3dp"/&gt;
  </code></pre>
  
  <p></p>