1<?xml version="1.0" encoding="utf-8"?> 2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_width="match_parent" 4 android:layout_height="match_parent" 5 android:orientation="vertical"> 6 7 <TextView 8 android:id="@+id/stylus" 9 android:layout_width="match_parent" 10 android:layout_height="0dp" 11 android:layout_margin="5dp" 12 android:layout_weight="1" 13 android:gravity="center" 14 android:text="@string/stylus_label" 15 android:background="?attr/colorButtonNormal" /> 16 17 <LinearLayout 18 android:layout_width="match_parent" 19 android:layout_height="wrap_content" 20 android:padding="5dp" 21 android:orientation="horizontal"> 22 23 <com.google.android.material.switchmaterial.SwitchMaterial 24 android:id="@+id/hover" 25 android:layout_width="wrap_content" 26 android:layout_height="match_parent" 27 android:layout_weight="1" 28 android:gravity="center" 29 android:checked="true" 30 android:text="@string/stylus_hover" /> 31 32 <com.google.android.material.switchmaterial.SwitchMaterial 33 android:id="@+id/button_primary" 34 android:layout_width="wrap_content" 35 android:layout_height="match_parent" 36 android:gravity="center" 37 android:layout_weight="1" 38 android:text="@string/stylus_button_primary" /> 39 40 <com.google.android.material.switchmaterial.SwitchMaterial 41 android:id="@+id/button_secondary" 42 android:layout_width="wrap_content" 43 android:layout_height="match_parent" 44 android:gravity="center" 45 android:layout_weight="1" 46 android:text="@string/stylus_button_secondary" /> 47 48 <com.google.android.material.switchmaterial.SwitchMaterial 49 android:id="@+id/eraser" 50 android:layout_width="wrap_content" 51 android:layout_height="match_parent" 52 android:gravity="center" 53 android:layout_weight="1" 54 android:text="@string/stylus_eraser" /> 55 56 </LinearLayout> 57 58 <LinearLayout 59 android:layout_width="match_parent" 60 android:layout_height="wrap_content" 61 android:padding="5dp" 62 android:orientation="horizontal"> 63 64 <TextView 65 android:layout_width="wrap_content" 66 android:layout_height="match_parent" 67 android:gravity="center" 68 android:text="@string/stylus_tilt" /> 69 70 <com.google.android.material.slider.Slider 71 android:id="@+id/tiltx" 72 android:theme="@style/SliderTheme" 73 android:layout_width="0dp" 74 android:layout_height="match_parent" 75 android:layout_weight="1" 76 android:value="0" 77 android:valueFrom="-90.0" 78 android:valueTo="90.0" /> 79 80 <com.google.android.material.slider.Slider 81 android:id="@+id/tilty" 82 android:theme="@style/SliderTheme" 83 android:layout_width="0dp" 84 android:layout_height="match_parent" 85 android:layout_weight="1" 86 android:value="0" 87 android:valueFrom="-90.0" 88 android:valueTo="90.0" /> 89 90 </LinearLayout> 91 92</LinearLayout>