Android Studio自体のフォントサイズを変更するのではなく、作業中のアプリのフォントサイズを変更します。私が見つけたすべての検索結果は、ユーザーインターフェイスまたはズームインについて話します。
私は三目並べ初心者プロジェクトに取り組んでおり、ボタンのテキストは常にとても小さいです。それを増やす方法に関するヒントはありますか?
次に、xmlファイルのその部分を示します。
<Button
android:id="@+id/button_0"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
/>
助けてくれる人には事前に感謝します
android:textSize
プロパティをButton
に追加します。例:
<Button
android:id="@+id/button_0"
android:layout_width="0dp"
android:textSize="20sp"
android:layout_height="match_parent"
android:layout_weight="1"
/>
https://developer.android.com/reference/android/widget/TextView#attr_android:textSize
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加