質問編集履歴
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -235,4 +235,57 @@
|
|
235
235
|
}
|
236
236
|
|
237
237
|
}
|
238
|
+
```
|
239
|
+
activity_main.xml
|
240
|
+
```xml
|
241
|
+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
242
|
+
xmlns:tools="http://schemas.android.com/tools"
|
243
|
+
android:layout_width="match_parent"
|
244
|
+
android:layout_height="match_parent"
|
245
|
+
android:orientation="vertical"
|
246
|
+
android:padding="15dp"
|
247
|
+
tools:context=".MainActivity" >
|
248
|
+
|
249
|
+
<EditText
|
250
|
+
android:layout_width="match_parent"
|
251
|
+
android:layout_height="wrap_content"
|
252
|
+
android:id="@+id/search"/>
|
253
|
+
|
254
|
+
<LinearLayout
|
255
|
+
android:layout_width="match_parent"
|
256
|
+
android:layout_height="match_parent"
|
257
|
+
android:layout_weight="9"
|
258
|
+
android:gravity="top"
|
259
|
+
android:orientation="horizontal" >
|
260
|
+
|
261
|
+
<ListView
|
262
|
+
android:id="@+id/PhoneList"
|
263
|
+
android:layout_width="match_parent"
|
264
|
+
android:layout_height="match_parent" >
|
265
|
+
</ListView>
|
266
|
+
</LinearLayout>
|
267
|
+
|
268
|
+
<LinearLayout
|
269
|
+
android:layout_width="match_parent"
|
270
|
+
android:layout_height="48dp"
|
271
|
+
android:layout_weight="1"
|
272
|
+
android:gravity="bottom"
|
273
|
+
android:orientation="horizontal" >
|
274
|
+
|
275
|
+
<Button
|
276
|
+
android:id="@+id/entry"
|
277
|
+
android:layout_width="match_parent"
|
278
|
+
android:layout_height="48dp"
|
279
|
+
android:layout_weight="1"
|
280
|
+
android:text="新規 " />
|
281
|
+
|
282
|
+
<Button
|
283
|
+
android:id="@+id/delete"
|
284
|
+
android:layout_width="match_parent"
|
285
|
+
android:layout_height="48dp"
|
286
|
+
android:layout_weight="1"
|
287
|
+
android:text="すべてのデータ削除" />
|
288
|
+
</LinearLayout>
|
289
|
+
|
290
|
+
</LinearLayout>
|
238
291
|
```
|