質問編集履歴
2
ソースコード一部編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
android:layout_height="match_parent"
|
30
30
|
|
31
|
-
tools:context="com.example.
|
31
|
+
tools:context="com.example.myapplication.MainActivity">
|
32
32
|
|
33
33
|
|
34
34
|
|
1
@string/helloを使うxmlを記載
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,29 +12,65 @@
|
|
12
12
|
|
13
13
|
###該当のソースコード
|
14
14
|
|
15
|
+
|
16
|
+
|
15
|
-
|
17
|
+
activity_main.xml
|
18
|
+
|
19
|
+
<?xml version="1.0" encoding="utf-8"?>
|
20
|
+
|
21
|
+
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
22
|
+
|
23
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
24
|
+
|
25
|
+
xmlns:tools="http://schemas.android.com/tools"
|
26
|
+
|
27
|
+
android:layout_width="match_parent"
|
28
|
+
|
29
|
+
android:layout_height="match_parent"
|
30
|
+
|
31
|
+
tools:context="com.example.kyakuno.myapplication.MainActivity">
|
16
32
|
|
17
33
|
|
18
34
|
|
19
|
-
<TextView
|
35
|
+
<TextView
|
20
36
|
|
21
|
-
android:id="@+id/textView"
|
37
|
+
android:id="@+id/textView"
|
22
38
|
|
23
|
-
android:layout_width="wa
|
39
|
+
android:layout_width="wrap_content"
|
24
40
|
|
25
|
-
android:layout_height="wa
|
41
|
+
android:layout_height="wrap_content"
|
26
42
|
|
27
|
-
android:layout_marginTop="16dp"
|
43
|
+
android:layout_marginTop="16dp"
|
28
44
|
|
29
|
-
android:text="
|
45
|
+
android:text="@string/hello"
|
30
46
|
|
31
|
-
app:layout_constrainLeft_toLeftOf="parent"
|
47
|
+
app:layout_constraintLeft_toLeftOf="parent"
|
32
48
|
|
33
|
-
app:layout_constrainRight_toRightOf="parent"
|
49
|
+
app:layout_constraintRight_toRightOf="parent"
|
34
50
|
|
35
|
-
app:layout_constrainTop_toTopOf="parent"
|
51
|
+
app:layout_constraintTop_toTopOf="parent" />
|
36
52
|
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
</android.support.constraint.ConstraintLayout>
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
strings.xml
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
<resources>
|
66
|
+
|
67
|
+
<string name="app_name">My Application</string>
|
68
|
+
|
69
|
+
<string name="hello">こんにちは</string>
|
70
|
+
|
37
|
-
/>
|
71
|
+
</resources>
|
72
|
+
|
73
|
+
|
38
74
|
|
39
75
|
|
40
76
|
|