私は長い間探していますが、成功しませんでした。
デバイスの画面サイズに応じて TextView のサイズが大きくなる方法はありますか?
これまでのところ、以下のコードを使用していますが、それでもこの種の問題に直面しています。textAppearanceLarge
以下のコードよりも大きなサイズを設定したい。
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall" />
固定サイズを設定すると、android:textSize="32sp"
Galaxy Ace のような画面サイズでは大きく見えるかもしれませんが、S3 のようなデバイスでは小さく見えるかもしれません。
関連する回答は大歓迎です。事前に感謝します。