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

質問編集履歴

2

失礼しました。再度変更しました。

2016/08/28 14:11

投稿

kimura
kimura

スコア59

title CHANGED
File without changes
body CHANGED
@@ -54,10 +54,13 @@
54
54
  }
55
55
 
56
56
 
57
+ コード
58
+ ``````
59
+
57
60
  申し訳ありません。
58
61
  activity_main.xmlを追加させていただきました。
59
- コード
62
+
60
- ``````<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
63
+ ```<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
61
64
  xmlns:tools="http://schemas.android.com/tools"
62
65
  android:layout_width="match_parent"
63
66
  android:layout_height="match_parent"

1

activity_main\.xmlを追加

2016/08/28 14:11

投稿

kimura
kimura

スコア59

title CHANGED
File without changes
body CHANGED
@@ -53,5 +53,71 @@
53
53
  }//onRestoreInstanceState
54
54
  }
55
55
 
56
+
57
+ 申し訳ありません。
58
+ activity_main.xmlを追加させていただきました。
56
59
  コード
60
+ ``````<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
61
+ xmlns:tools="http://schemas.android.com/tools"
62
+ android:layout_width="match_parent"
63
+ android:layout_height="match_parent"
64
+ android:paddingLeft="@dimen/activity_horizontal_margin"
65
+ android:paddingRight="@dimen/activity_horizontal_margin"
66
+ android:paddingTop="@dimen/activity_vertical_margin"
67
+ android:paddingBottom="@dimen/activity_vertical_margin"
68
+ tools:context=".MainActivity"
69
+ android:orientation="vertical">
70
+
71
+ <LinearLayout
72
+ android:layout_width="match_parent"
73
+ android:layout_height="wrap_content"
74
+ android:orientation="horizontal">
75
+
76
+ <TextView
77
+ android:layout_width="wrap_content"
78
+ android:layout_height="wrap_content"
79
+ android:textAppearance="?android:attr/textAppearanceLarge"
80
+ android:text="あなたの身長:"
81
+ android:id="@+id/textView1"/>
82
+
83
+ <EditText
84
+ android:layout_width="0dp"
85
+ android:layout_height="wrap_content"
86
+ android:layout_weight="1"
87
+ android:gravity="right"
88
+ android:id="@+id/editText1"/>
89
+
90
+ <TextView
91
+ android:layout_width="wrap_content"
92
+ android:layout_height="wrap_content"
93
+ android:textAppearance="?android:attr/textAppearanceLarge"
94
+ android:text="cm"
95
+ android:id="@+id/textView2"/>
96
+ </LinearLayout>
97
+
98
+
99
+ <LinearLayout
100
+ android:layout_width="match_parent"
101
+ android:layout_height="wrap_content"
102
+ android:orientation="vertical">
103
+
104
+ <Button
105
+ android:layout_width="wrap_content"
106
+ android:layout_height="wrap_content"
107
+ android:layout_gravity="center"
108
+ android:onClick="Click"
109
+ android:text="計算"
110
+ android:id="@+id/button1"/>
111
+
112
+ <TextView
113
+ android:layout_width="wrap_content"
114
+ android:layout_height="wrap_content"
115
+ android:layout_gravity="center"
116
+ android:textAppearance="?android:attr/textAppearanceLarge"
117
+ android:text="標準体重を計算します"
118
+ android:id="@+id/textView3"/>
119
+ </LinearLayout>
120
+ </LinearLayout>
121
+
122
+ コード
57
123
  ```