teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

誤字がありました。

2019/01/12 15:48

投稿

H30_inenaga
H30_inenaga

スコア18

title CHANGED
File without changes
body CHANGED
@@ -121,8 +121,7 @@
121
121
  <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
122
122
  xmlns:tools="http://schemas.android.com/tools"
123
123
  android:layout_width="match_parent"
124
- android:layout_height="match_parent"
124
+ android:layout_height="match_parent">
125
- tools:context="com.example.michimoto.mytouch.MainActivity">
126
125
 
127
126
  <TextView
128
127
  android:textSize="40sp"

1

レイアウトのソースコード追加

2019/01/12 15:48

投稿

H30_inenaga
H30_inenaga

スコア18

title CHANGED
File without changes
body CHANGED
@@ -114,4 +114,52 @@
114
114
  }
115
115
  }
116
116
  }
117
+ ```
118
+
119
+ ```xml
120
+ <?xml version="1.0" encoding="utf-8"?>
121
+ <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
122
+ xmlns:tools="http://schemas.android.com/tools"
123
+ android:layout_width="match_parent"
124
+ android:layout_height="match_parent"
125
+ tools:context="com.example.michimoto.mytouch.MainActivity">
126
+
127
+ <TextView
128
+ android:textSize="40sp"
129
+ android:id="@+id/text"
130
+ android:layout_width="wrap_content"
131
+ android:layout_height="wrap_content"
132
+ android:text="タッチしてね!"
133
+ android:layout_alignParentTop="true"
134
+ android:layout_centerHorizontal="true"/>
135
+ "/>
136
+
137
+ <Button
138
+ android:text="start"
139
+ android:id="@+id/start_button"
140
+ android:layout_width="match_parent"
141
+ android:layout_height="wrap_content"
142
+ android:layout_marginLeft="10dp"
143
+ android:layout_marginRight="10dp"
144
+ android:layout_centerVertical="true"
145
+ android:layout_alignParentEnd="true"/>
146
+
147
+ <Button
148
+ android:text="stop"
149
+ android:id="@+id/stop_button"
150
+ android:layout_width="match_parent"
151
+ android:layout_height="wrap_content"
152
+ android:layout_marginLeft="10dp"
153
+ android:layout_marginRight="10dp"
154
+ android:layout_marginBottom="133dp"
155
+ android:layout_alignParentBottom="true"
156
+ android:layout_alignStart="@+id/start_button"/>
157
+
158
+ <TextView
159
+ android:id="@+id/timer"
160
+ android:layout_width="wrap_content"
161
+ android:layout_height="wrap_content"
162
+ android:text="TextView"
163
+ />
164
+ </RelativeLayout>
117
165
  ```