1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2021 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17 18<LinearLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:orientation="vertical" 21 xmlns:tools="http://schemas.android.com/tools" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 tools:context=".development.tare.TareHomePage"> 25 <Switch 26 android:id="@+id/on_switch" 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:padding="20dp" 30 android:textOff="@string/tare_off" 31 android:textOn="@string/tare_on" 32 android:showText="true" 33 android:background="?android:attr/colorBackground" /> 34 <TextView 35 android:id="@+id/alarmmanager" 36 android:layout_width="match_parent" 37 android:layout_height="wrap_content" 38 android:padding="20dp" 39 android:clickable="true" 40 android:onClick="launchAlarmManagerPage" 41 android:text="@string/tare_alarmmanager" 42 android:textColor="?android:attr/textColorSecondary" /> 43 44 <TextView 45 android:id="@+id/jobscheduler" 46 android:layout_width="match_parent" 47 android:layout_height="wrap_content" 48 android:padding="20dp" 49 android:clickable="true" 50 android:text="@string/tare_jobscheduler" 51 android:textColor="?android:attr/textColorSecondary" 52 android:onClick="launchJobSchedulerPage" /> 53 54 <View 55 android:id="@+id/divider" 56 android:layout_width="match_parent" 57 android:layout_height="1dp" 58 android:background="?android:attr/listDivider" /> 59 <Button 60 android:id="@+id/revert_button" 61 android:layout_width="match_parent" 62 android:layout_height="wrap_content" 63 android:layout_margin="20dp" 64 android:onClick="revertSettings" 65 android:text="@string/tare_revert" 66 style="@style/ActionPrimaryButton" /> 67</LinearLayout> 68