Refactored User Settings UI to have two types of users. Display a list of apps to select. Edit user restrictions. Handle saving and updating RestrictionEntry items via User Manager. Change-Id: I3ad5aa71d5ef66dffd39e17ba0556f075ac10a0f
56 lines
2.1 KiB
XML
56 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
/*
|
|
** Copyright 2013, The Android Open Source Project
|
|
**
|
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
|
** you may not use this file except in compliance with the License.
|
|
** You may obtain a copy of the License at
|
|
**
|
|
** http://www.apache.org/licenses/LICENSE-2.0
|
|
**
|
|
** Unless required by applicable law or agreed to in writing, software
|
|
** distributed under the License is distributed on an "AS IS" BASIS,
|
|
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
** See the License for the specific language governing permissions and
|
|
** limitations under the License.
|
|
*/
|
|
-->
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_height="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_marginStart="32dp"
|
|
android:layout_marginEnd="32dp"
|
|
android:orientation="vertical">
|
|
|
|
<fragment android:name="com.android.settings.users.AppRestrictionsFragment"
|
|
android:id="@+id/user_limits_fragment"
|
|
android:layout_weight="1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
/>
|
|
<RelativeLayout
|
|
android:id="@+id/button_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0" >
|
|
<Button
|
|
android:id="@+id/back_button"
|
|
android:layout_width="150dip"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_margin="5dip"
|
|
android:text="@string/wizard_back"
|
|
android:visibility="invisible"/>
|
|
|
|
<Button
|
|
android:id="@+id/next_button"
|
|
android:layout_width="150dip"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="5dip"
|
|
android:layout_alignParentEnd="true"
|
|
android:text="@string/wizard_finish" />
|
|
</RelativeLayout>
|
|
</LinearLayout>
|