automatic switch textview size by display <p>Please I have problem with size in textView</p> <p>I have .xml code, where I use linear/horizontal/frame layout and I have in layout some object (textview) and have same text in textviews. </p> <p>I need switch text size according to Phone display. but if I put 130dp is not good for small display.</p> <p>little of my code</p> <pre><code>&lt;LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent" android:baselineAligned="false"&gt; &lt;LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="2"&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="fill_parent" android:textAppearance="?android:attr/textAppearanceLarge" android:text="88" android:id="@+id/hlc" android:textSize="130dp" android:textIsSelectable="false" android:gravity="end" android:textStyle="bold" /&gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="0dp" android:layout_height="wrap_content" android:paddingTop="0dp" android:layout_weight="10"&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceLarge" android:text="°" android:id="@+id/textView15" android:textSize="@android:dimen/notification_large_icon_width" android:textIsSelectable="false" android:textStyle="bold" android:layout_weight="9" android:textAlignment="viewStart" /&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceLarge" android:text="8" android:id="@+id/hld" android:textSize= "@android:dimen/notification_large_icon_width" android:textStyle="bold" android:textAlignment="viewStart" android:layout_weight="1" /&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p>if i use @android:dimen/thumbnail_width it's too big for my formated display</p> <p>I need to fill in framelayput with text in textview.</p> <p>I can't put image here :( </p> <p>... and how are used values-small, values-large, etc ? example please. example declarate and example use in xml.</p> <p>Thanks.</p>