Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3  Copyright 2015 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 <ScrollView
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     xmlns:tools="http://schemas.android.com/tools"
     20     android:layout_width="match_parent"
     21     android:layout_height="match_parent"
     22     tools:context="com.example.android.deviceowner.DeviceOwnerFragment">
     23 
     24     <LinearLayout
     25         android:layout_width="match_parent"
     26         android:layout_height="wrap_content"
     27         android:orientation="vertical">
     28 
     29         <TextView
     30             android:layout_width="match_parent"
     31             android:layout_height="wrap_content"
     32             android:layout_margin="@dimen/margin_medium"
     33             android:text="@string/label_global_settings"
     34             android:textAppearance="?android:attr/textAppearanceLarge"/>
     35 
     36         <Switch
     37             android:id="@+id/switch_auto_time"
     38             android:layout_width="wrap_content"
     39             android:layout_height="wrap_content"
     40             android:layout_margin="@dimen/margin_medium"
     41             android:paddingEnd="@dimen/margin_medium"
     42             android:paddingStart="@dimen/margin_medium"
     43             android:text="@string/label_auto_time"
     44             android:textAppearance="?android:attr/textAppearanceMedium"/>
     45 
     46         <Switch
     47             android:id="@+id/switch_auto_time_zone"
     48             android:layout_width="wrap_content"
     49             android:layout_height="wrap_content"
     50             android:layout_margin="@dimen/margin_medium"
     51             android:paddingEnd="@dimen/margin_medium"
     52             android:paddingStart="@dimen/margin_medium"
     53             android:text="@string/label_auto_time_zone"
     54             android:textAppearance="?android:attr/textAppearanceMedium"/>
     55 
     56         <Space
     57             android:layout_width="match_parent"
     58             android:layout_height="@dimen/margin_medium"/>
     59 
     60         <TextView
     61             android:layout_width="match_parent"
     62             android:layout_height="wrap_content"
     63             android:layout_margin="@dimen/margin_medium"
     64             android:text="@string/label_launcher"
     65             android:textAppearance="?android:attr/textAppearanceLarge"/>
     66 
     67         <Spinner
     68             android:id="@+id/available_launchers"
     69             android:layout_width="wrap_content"
     70             android:layout_height="wrap_content"
     71             android:layout_marginStart="@dimen/margin_medium"
     72             android:layout_marginTop="@dimen/margin_medium"/>
     73 
     74         <Button
     75             android:id="@+id/set_preferred_launcher"
     76             android:layout_width="wrap_content"
     77             android:layout_height="wrap_content"
     78             android:layout_marginStart="@dimen/margin_medium"
     79             android:text="@string/set_as_preferred"/>
     80 
     81     </LinearLayout>
     82 
     83 </ScrollView>