###前提・実現したいこと
トグルボタンを実装したのですが、縦向きにしたいと思いました。
縦向きに実装するには、どのようにしたらよいでしょうか。
###該当のソースコード
xml
1<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3 android:layout_width="match_parent" 4 android:layout_height="match_parent" 5 tools:context=".MainActivity"> 6 7 <ToggleButton 8 android:id="@+id/togglebutton" 9 android:layout_width="wrap_content" 10 android:layout_height="wrap_content" /> 11 12</RelativeLayout>
回答1件
あなたの回答
tips
プレビュー