質問編集履歴
1
Listに表示する要素レイアウト修正、setContentView()をActivityに追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -96,11 +96,15 @@
|
|
96
96
|
|
97
97
|
|
98
98
|
|
99
|
-
<
|
99
|
+
<LinearLayout
|
100
100
|
|
101
101
|
android:layout_width="match_parent"
|
102
102
|
|
103
|
-
android:layout_height="
|
103
|
+
android:layout_height="match_parent"
|
104
|
+
|
105
|
+
android:padding="10dp"
|
106
|
+
|
107
|
+
android:orientation="vertical">
|
104
108
|
|
105
109
|
|
106
110
|
|
@@ -136,7 +140,7 @@
|
|
136
140
|
|
137
141
|
|
138
142
|
|
139
|
-
</
|
143
|
+
</LinearLayout>
|
140
144
|
|
141
145
|
</layout>
|
142
146
|
|
@@ -340,6 +344,8 @@
|
|
340
344
|
|
341
345
|
ActivityPersonBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_sub);
|
342
346
|
|
347
|
+
setContentView(binding.getRoot());
|
348
|
+
|
343
349
|
|
344
350
|
|
345
351
|
List<Person> personList = new ArrayList<>();
|