質問編集履歴
1
レイアウトのxmlファイルも記載
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
super.onCreate(savedInstanceState)
|
12
12
|
|
13
|
-
setContentView(R.layout.activity_
|
13
|
+
setContentView(R.layout.activity_voice)
|
14
14
|
|
15
15
|
|
16
16
|
|
@@ -51,3 +51,121 @@
|
|
51
51
|
表示はされました。が、全然クリックできません。androidstudioに元からあるlist_item_1なら
|
52
52
|
|
53
53
|
普通にトーストが出るのですが・・・。
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
レイアウトの「list_item.xml」のxmlです
|
58
|
+
|
59
|
+
```ここに言語を入力
|
60
|
+
|
61
|
+
<?xml version="1.0" encoding="utf-8"?>
|
62
|
+
|
63
|
+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
64
|
+
|
65
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
66
|
+
|
67
|
+
android:orientation="vertical" android:layout_width="match_parent"
|
68
|
+
|
69
|
+
android:layout_height="match_parent">
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
<ImageView
|
74
|
+
|
75
|
+
android:id="@+id/voiceline"
|
76
|
+
|
77
|
+
android:layout_width="wrap_content"
|
78
|
+
|
79
|
+
android:layout_height="3dp"
|
80
|
+
|
81
|
+
android:layout_weight="0"
|
82
|
+
|
83
|
+
android:baselineAlignBottom="false"
|
84
|
+
|
85
|
+
android:scaleType="center"
|
86
|
+
|
87
|
+
app:srcCompat="@drawable/voiceline" />
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
<LinearLayout
|
92
|
+
|
93
|
+
android:id="@+id/koumokuYoko"
|
94
|
+
|
95
|
+
android:layout_width="fill_parent"
|
96
|
+
|
97
|
+
android:layout_height="64dp"
|
98
|
+
|
99
|
+
android:background="#AAFFFFFF"
|
100
|
+
|
101
|
+
android:orientation="horizontal"
|
102
|
+
|
103
|
+
app:layout_constraintEnd_toEndOf="parent"
|
104
|
+
|
105
|
+
app:layout_constraintHorizontal_bias="0.5"
|
106
|
+
|
107
|
+
app:layout_constraintStart_toStartOf="parent"
|
108
|
+
|
109
|
+
app:layout_constraintTop_toTopOf="parent">
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
<ImageView
|
114
|
+
|
115
|
+
android:id="@+id/bt_saisei"
|
116
|
+
|
117
|
+
android:layout_width="56dp"
|
118
|
+
|
119
|
+
android:layout_height="30dp"
|
120
|
+
|
121
|
+
android:layout_gravity="center"
|
122
|
+
|
123
|
+
android:layout_weight="1"
|
124
|
+
|
125
|
+
app:srcCompat="@drawable/btotocheck" />
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
<TextView
|
130
|
+
|
131
|
+
android:id="@+id/text1"
|
132
|
+
|
133
|
+
android:layout_width="302dp"
|
134
|
+
|
135
|
+
android:layout_height="60dp"
|
136
|
+
|
137
|
+
android:layout_gravity="center"
|
138
|
+
|
139
|
+
android:layout_weight="1"
|
140
|
+
|
141
|
+
android:gravity="center_vertical"
|
142
|
+
|
143
|
+
android:maxLines="3"
|
144
|
+
|
145
|
+
android:text="ここに文章をいれる"
|
146
|
+
|
147
|
+
android:textColor="#382C2E" />
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
<RadioButton
|
152
|
+
|
153
|
+
android:id="@+id/radioButton"
|
154
|
+
|
155
|
+
android:layout_width="39dp"
|
156
|
+
|
157
|
+
android:layout_height="wrap_content"
|
158
|
+
|
159
|
+
android:layout_gravity="center"
|
160
|
+
|
161
|
+
android:layout_weight="1"
|
162
|
+
|
163
|
+
android:buttonTint="#382C2E"/>
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
</LinearLayout>
|
168
|
+
|
169
|
+
</LinearLayout>
|
170
|
+
|
171
|
+
```
|