質問編集履歴
1
試したことを追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,3 +1,18 @@
|
|
1
1
|
機種に関わらず、スマホを縦にしても横にしても、文字の長さが画面いっぱいの文字サイズになるようにしたいです。どうすれば良いのでしょうか?
|
2
2
|
|
3
|
-
普通のTextViewです。
|
3
|
+
普通のTextViewです。
|
4
|
+
|
5
|
+
試したこと
|
6
|
+
|
7
|
+
<TextView
|
8
|
+
android:id="@+id/main_text_view"
|
9
|
+
android:layout_width="match_parent"
|
10
|
+
android:layout_height="match_parent"
|
11
|
+
android:layout_centerInParent="true"
|
12
|
+
android:layout_gravity="center_horizontal"
|
13
|
+
android:text="Start"
|
14
|
+
android:autoSizeTextType="uniform"
|
15
|
+
app:autoSizeMinTextSize="10sp"
|
16
|
+
app:autoSizeMaxTextSize="1000sp"
|
17
|
+
|
18
|
+
画面の真ん中&画面いっぱいいっぱいに表示したいのですが左上に表示されてしまいます。
|