質問編集履歴
2
詳細記入
test
CHANGED
File without changes
|
test
CHANGED
@@ -176,4 +176,10 @@
|
|
176
176
|
|
177
177
|
行ごとに改行すると収まりました。(2枚目)
|
178
178
|
|
179
|
+
自己紹介文を例としているのですが、名所などの説明文を入れたいと思っています。
|
180
|
+
|
179
|
-
|
181
|
+
文末ごとに改行するとやはり最後の行がきれてしまいます。
|
182
|
+
|
183
|
+
単純な見落としかもしれないのですが、指摘していただけるとありがたいです。
|
184
|
+
|
185
|
+
よろしくお願いします。
|
1
コードSSを追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
scrollViewにtextViewを入れ長文を表示させたい時に最後の行が見切れてしまいます。
|
2
2
|
|
3
|
-
|
3
|
+
情報が少なかったようで修正しました。
|
4
4
|
|
5
5
|
|
6
6
|
|
@@ -10,50 +10,170 @@
|
|
10
10
|
|
11
11
|
```xml
|
12
12
|
|
13
|
-
<
|
13
|
+
<?xml version="1.0" encoding="utf-8"?>
|
14
14
|
|
15
|
-
|
15
|
+
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
16
16
|
|
17
|
-
android
|
17
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
18
18
|
|
19
|
-
android
|
19
|
+
xmlns:tools="http://schemas.android.com/tools"
|
20
20
|
|
21
|
-
android:layout_mar
|
21
|
+
android:layout_width="match_parent"
|
22
22
|
|
23
|
-
android:layout_mar
|
23
|
+
android:layout_height="match_parent"
|
24
24
|
|
25
|
-
|
25
|
+
tools:context=".MainActivity">
|
26
26
|
|
27
|
-
app:layout_constraintBottom_toBottomOf="parent"
|
28
27
|
|
29
|
-
app:layout_constraintEnd_toEndOf="parent"
|
30
28
|
|
31
|
-
|
29
|
+
<View
|
32
30
|
|
33
|
-
a
|
31
|
+
android:id="@+id/view"
|
34
32
|
|
33
|
+
android:layout_width="wrap_content"
|
34
|
+
|
35
|
+
android:layout_height="96dp"
|
36
|
+
|
37
|
+
android:background="#DDDDDD"
|
38
|
+
|
39
|
+
tools:layout_editor_absoluteX="0dp"
|
40
|
+
|
41
|
+
tools:layout_editor_absoluteY="0dp" />
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
<View
|
46
|
+
|
47
|
+
android:id="@+id/view2"
|
48
|
+
|
49
|
+
android:layout_width="96dp"
|
50
|
+
|
51
|
+
android:layout_height="96dp"
|
52
|
+
|
53
|
+
android:layout_marginStart="16dp"
|
54
|
+
|
55
|
+
android:layout_marginTop="16dp"
|
56
|
+
|
57
|
+
android:background="#DDDDDD"
|
58
|
+
|
59
|
+
app:layout_constraintStart_toStartOf="parent"
|
60
|
+
|
61
|
+
app:layout_constraintTop_toBottomOf="@+id/view" />
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
<TextView
|
66
|
+
|
67
|
+
android:id="@+id/textView"
|
68
|
+
|
69
|
+
android:layout_width="wrap_content"
|
70
|
+
|
71
|
+
android:layout_height="wrap_content"
|
72
|
+
|
73
|
+
android:layout_marginStart="8dp"
|
74
|
+
|
75
|
+
android:layout_marginTop="8dp"
|
76
|
+
|
77
|
+
android:text="名前"
|
78
|
+
|
79
|
+
android:textAppearance="@style/TextAppearance.AppCompat.Title"
|
80
|
+
|
81
|
+
app:layout_constraintStart_toEndOf="@+id/view2"
|
82
|
+
|
83
|
+
app:layout_constraintTop_toTopOf="@+id/view2" />
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
<TextView
|
88
|
+
|
89
|
+
android:id="@+id/textView2"
|
90
|
+
|
91
|
+
android:layout_width="wrap_content"
|
92
|
+
|
93
|
+
android:layout_height="wrap_content"
|
94
|
+
|
95
|
+
android:layout_marginTop="8dp"
|
96
|
+
|
97
|
+
android:text="生年月日"
|
98
|
+
|
99
|
+
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
|
100
|
+
|
101
|
+
app:layout_constraintStart_toStartOf="@+id/textView"
|
102
|
+
|
103
|
+
app:layout_constraintTop_toBottomOf="@+id/textView" />
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<TextView
|
108
|
+
|
109
|
+
android:id="@+id/textView3"
|
110
|
+
|
111
|
+
android:layout_width="wrap_content"
|
112
|
+
|
113
|
+
android:layout_height="wrap_content"
|
114
|
+
|
115
|
+
android:layout_marginTop="8dp"
|
116
|
+
|
117
|
+
android:text="アドレス"
|
118
|
+
|
119
|
+
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
|
120
|
+
|
121
|
+
app:layout_constraintStart_toStartOf="@+id/textView2"
|
122
|
+
|
123
|
+
app:layout_constraintTop_toBottomOf="@+id/textView2" />
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
<ScrollView
|
128
|
+
|
129
|
+
android:layout_width="0dp"
|
130
|
+
|
131
|
+
android:layout_height="0dp"
|
132
|
+
|
133
|
+
android:layout_marginTop="8dp"
|
134
|
+
|
135
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
136
|
+
|
137
|
+
app:layout_constraintEnd_toEndOf="parent"
|
138
|
+
|
139
|
+
app:layout_constraintStart_toStartOf="parent"
|
140
|
+
|
35
|
-
app:layout_constraintTop_toBottomOf="@+id/i
|
141
|
+
app:layout_constraintTop_toBottomOf="@+id/view2">
|
36
142
|
|
37
143
|
|
38
144
|
|
39
145
|
|
40
146
|
|
41
|
-
<TextView
|
147
|
+
<TextView
|
42
148
|
|
43
|
-
android:id="@+id/textView
|
149
|
+
android:id="@+id/textView4"
|
44
150
|
|
45
|
-
android:layout_width="match_parent"
|
151
|
+
android:layout_width="match_parent"
|
46
152
|
|
47
|
-
android:layout_height="wrap_content"
|
153
|
+
android:layout_height="wrap_content"
|
48
154
|
|
49
|
-
android:layout_margin="16dp"
|
155
|
+
android:layout_margin="16dp"
|
50
156
|
|
51
|
-
android:text="テキスト
|
157
|
+
android:text="テキスト(てきすと)textテキスト(てきすと)textテキスト(てきすと)textテキスト(てきすと)text\nテキスト(てきすと)textテキスト(てきすと)text\nテキスト(てきすと)textテキスト(てきすと)textテキスト(てきすと)textテキスト(てきすと)textテキスト(てきすと)textテキスト(てきすと)textテキスト(てきすと)text\nテキスト(てきすと)textテキスト(てきすと)textテキスト(てきすと)textテキスト(てきすと)textテキスト(てきすと)text"
|
52
158
|
|
53
|
-
android:textAppearance="@style/TextAppearance.AppCompat.Headline"
|
159
|
+
android:textAppearance="@style/TextAppearance.AppCompat.Headline"
|
54
160
|
|
55
|
-
android:textSize="30sp" />
|
161
|
+
android:textSize="30sp" />
|
56
162
|
|
57
|
-
</ScrollView>
|
163
|
+
</ScrollView>
|
58
164
|
|
165
|
+
</android.support.constraint.ConstraintLayout>
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
![イメージ![](0f91592d6c0e5d14750bbec7ed1cfc48.jpeg)b17a92c2e33c66bd520f9763c42a8c.jpeg)イメージ説明](af59e6261a731c0e3c137c492684dc33.jpeg)
|
170
|
+
|
171
|
+
![](26d2c11a547c6419b7566cc4449542b5.jpeg)
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
自分なりに試してみたのですが、ランダムに改行すると見切れてしまうみたいです。(1枚目)
|
176
|
+
|
59
|
-
|
177
|
+
行ごとに改行すると収まりました。(2枚目)
|
178
|
+
|
179
|
+
不規則に改行しても収まるようにするにはどうすればいいでしょうか?
|