質問編集履歴

2

説明文の追加

2016/05/25 10:40

投稿

edoooooo
edoooooo

スコア476

test CHANGED
File without changes
test CHANGED
@@ -89,6 +89,10 @@
89
89
  今は、音声入力をつけようとしています。どうぞよろしくお願いします。
90
90
 
91
91
 
92
+
93
+
94
+
95
+ //このしたの2つのコードをついかしました。
92
96
 
93
97
  activity_game.xml
94
98
 

1

コードを追加しました。

2016/05/25 10:40

投稿

edoooooo
edoooooo

スコア476

test CHANGED
File without changes
test CHANGED
@@ -87,3 +87,99 @@
87
87
 
88
88
 
89
89
  今は、音声入力をつけようとしています。どうぞよろしくお願いします。
90
+
91
+
92
+
93
+ activity_game.xml
94
+
95
+ ```java
96
+
97
+ <?xml version="1.0" encoding="utf-8"?>
98
+
99
+ <android.support.design.widget.CoordinatorLayout
100
+
101
+ xmlns:android="http://schemas.android.com/apk/res/android"
102
+
103
+ xmlns:app="http://schemas.android.com/apk/res-auto"
104
+
105
+ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
106
+
107
+ android:layout_height="match_parent" android:fitsSystemWindows="true"
108
+
109
+ tools:context=".GameActivity">
110
+
111
+
112
+
113
+ <android.support.design.widget.AppBarLayout android:layout_height="wrap_content"
114
+
115
+ android:layout_width="match_parent" android:theme="@style/AppTheme.AppBarOverlay">
116
+
117
+
118
+
119
+ <android.support.v7.widget.Toolbar android:id="@+id/toolbar"
120
+
121
+ android:layout_width="match_parent" android:layout_height="?attr/actionBarSize"
122
+
123
+ android:background="?attr/colorPrimary" app:popupTheme="@style/AppTheme.PopupOverlay" />
124
+
125
+
126
+
127
+ </android.support.design.widget.AppBarLayout>
128
+
129
+
130
+
131
+ <include layout="@layout/content_game" />
132
+
133
+
134
+
135
+ <android.support.design.widget.FloatingActionButton android:id="@+id/fab"
136
+
137
+ android:layout_width="wrap_content" android:layout_height="wrap_content"
138
+
139
+ android:layout_gravity="bottom|end" android:layout_margin="@dimen/fab_margin"
140
+
141
+ android:src="@android:drawable/ic_dialog_email" />
142
+
143
+
144
+
145
+ </android.support.design.widget.CoordinatorLayout>
146
+
147
+
148
+
149
+ ```
150
+
151
+ content_game.xml
152
+
153
+ ```java
154
+
155
+ <?xml version="1.0" encoding="utf-8"?>
156
+
157
+ <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
158
+
159
+ xmlns:tools="http://schemas.android.com/tools"
160
+
161
+ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent"
162
+
163
+ android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
164
+
165
+ android:paddingRight="@dimen/activity_horizontal_margin"
166
+
167
+ android:paddingTop="@dimen/activity_vertical_margin"
168
+
169
+ android:paddingBottom="@dimen/activity_vertical_margin"
170
+
171
+ app:layout_behavior="@string/appbar_scrolling_view_behavior"
172
+
173
+ tools:showIn="@layout/activity_game" tools:context=".GameActivity">
174
+
175
+
176
+
177
+ <TextView android:text="Hello World!" android:layout_width="wrap_content"
178
+
179
+ android:layout_height="wrap_content" />
180
+
181
+ </RelativeLayout>
182
+
183
+
184
+
185
+ ```