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

質問編集履歴

1

xmlファイルの追加

2020/03/10 21:17

投稿

meijin
meijin

スコア4

title CHANGED
File without changes
body CHANGED
@@ -205,7 +205,20 @@
205
205
  <string name="contents9">aaaaaaaaaaa</string>
206
206
  </resources>
207
207
  ```
208
-
208
+ ```ここに言語を入力
209
+ コード<?xml version="1.0" encoding="ISO-8859-1"?>
210
+ <LinearLayout android:orientation="vertical" android:gravity="center_horizontal|center_vertical" android:layout_height="match_parent" android:layout_width="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android">
211
+ <ImageView android:id="@+id/imageView" android:layout_height="wrap_content" android:layout_width="match_parent" app:srcCompat="@drawable/omikuji1" android:layout_weight="1"/>
212
+ <Button android:id="@+id/button" android:layout_height="wrap_content" android:layout_width="match_parent" android:text="@string/bt_action"/>
213
+ </LinearLayout>
214
+ ```
215
+ ```ここに言語を入力
216
+ コード<?xml version="1.0" encoding="ISO-8859-1"?>
217
+ <RelativeLayout android:layout_height="match_parent" android:layout_width="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android">
218
+ <ImageView android:id="@+id/imageView2" android:layout_height="wrap_content" android:layout_width="wrap_content" app:srcCompat="@drawable/result1"/>
219
+ <TextView android:id="@+id/textView" android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="TextView" android:width="200dp"/>
220
+ </RelativeLayout>
221
+ ```
209
222
  ### 試したこと
210
223
 
211
224
  一度新規でプロジェクトを立ち上げなおしコピーしました