Settings app uses fragment classes from android framework, which is deprecated as of P. We need to switch to use fragment and associated classes to androidx. Because Settings didn't support drawer feature since Android O, we rename SettingsDrawerActivity to SettingsBaseActivity. Before we migrate to fragment of androix, we need to let SettingsBaseActivity extend FragmentActivity. Test: make RunSettingsRoboTests Bug: 110259478 Change-Id: Ifbf53f75f042da1618da16cf7837b70d298a9a14
36 lines
1.4 KiB
XML
36 lines
1.4 KiB
XML
<!--
|
|
Copyright (C) 2018 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.
|
|
-->
|
|
<!-- The main content view -->
|
|
<LinearLayout
|
|
android:id="@+id/content_parent"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
<Toolbar
|
|
android:id="@+id/action_bar"
|
|
style="?android:attr/actionBarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:theme="?android:attr/actionBarTheme"
|
|
android:navigationContentDescription="@*android:string/action_bar_up_description" />
|
|
<FrameLayout
|
|
android:id="@+id/content_frame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="fill_parent"
|
|
android:background="?android:attr/windowBackground" />
|
|
</LinearLayout>
|