質問編集履歴

1

修正

2019/05/08 04:40

投稿

kotlin
kotlin

スコア16

test CHANGED
File without changes
test CHANGED
@@ -162,63 +162,9 @@
162
162
 
163
163
  </android.support.constraint.ConstraintLayout>
164
164
 
165
- ```
166
165
 
167
166
 
168
167
 
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
- ```Kotlin
178
-
179
- //Fragment1.kt
180
-
181
- class Fragment1 : Fragment() {
182
-
183
-
184
-
185
- override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
186
-
187
- super.onCreateView(inflater, container, savedInstanceState)
188
-
189
-
190
-
191
- val titles = arrayListOf("Mac", "Apple", "Mini", "iMac", "Pro")
192
-
193
- val adapter = ArrayAdapter<String>(this.context, android.R.layout.simple_list_item_1, titles)
194
-
195
- listView.adapter = adapter
196
-
197
-
198
-
199
- val view = inflater.inflate(R.layout.fragment_1, container, false)
200
-
201
-
202
-
203
- return view
204
-
205
- }
206
-
207
- }
208
-
209
- ```
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
-
219
-
220
-
221
- ```xml
222
168
 
223
169
  //fragment_1.xml
224
170