質問編集履歴
1
該当のソースコードを実装しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -3,3 +3,35 @@
|
|
3
3
|
トグルボタンを実装したのですが、縦向きにしたいと思いました。
|
4
4
|
|
5
5
|
縦向きに実装するには、どのようにしたらよいでしょうか。
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
###該当のソースコード
|
10
|
+
|
11
|
+
```xml
|
12
|
+
|
13
|
+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
14
|
+
|
15
|
+
xmlns:tools="http://schemas.android.com/tools"
|
16
|
+
|
17
|
+
android:layout_width="match_parent"
|
18
|
+
|
19
|
+
android:layout_height="match_parent"
|
20
|
+
|
21
|
+
tools:context=".MainActivity">
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
<ToggleButton
|
26
|
+
|
27
|
+
android:id="@+id/togglebutton"
|
28
|
+
|
29
|
+
android:layout_width="wrap_content"
|
30
|
+
|
31
|
+
android:layout_height="wrap_content" />
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
</RelativeLayout>
|
36
|
+
|
37
|
+
```
|