blob: f210c542542a8c3bc733757523350a0ec1437349 [file] [log] [blame]
Emily Chuang150b2ba2018-08-21 07:17:05 +08001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2018 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
Sunny Shao2c93ec82018-11-13 16:47:36 +080018<androidx.coordinatorlayout.widget.CoordinatorLayout
Emily Chuang150b2ba2018-08-21 07:17:05 +080019 xmlns:android="http://schemas.android.com/apk/res/android"
Sunny Shao2c93ec82018-11-13 16:47:36 +080020 xmlns:app="http://schemas.android.com/apk/res-auto"
Fan Zhang3e143832019-05-07 15:14:09 -070021 android:id="@+id/settings_homepage_container"
22 android:fitsSystemWindows="true"
Raff Tsai43a7b182018-08-28 22:02:29 +080023 android:layout_width="match_parent"
Raff Tsaidb556612018-10-20 23:59:52 +080024 android:layout_height="match_parent">
Fan Zhang3181e1a2018-10-10 15:25:47 -070025
Sunny Shao2c93ec82018-11-13 16:47:36 +080026 <androidx.core.widget.NestedScrollView
Fan Zhangeba61432018-11-28 12:58:14 -080027 android:id="@+id/main_content_scrollable_container"
Sunny Shao2c93ec82018-11-13 16:47:36 +080028 android:layout_width="match_parent"
29 android:layout_height="match_parent"
Sunny Shao2f7f14f2018-12-05 16:10:00 +080030 app:layout_behavior="com.android.settings.widget.FloatingAppBarScrollingViewBehavior">
Sunny Shao2c93ec82018-11-13 16:47:36 +080031
32 <LinearLayout
Sunny Shao4ddecb02019-01-28 17:46:35 +080033 android:id="@+id/homepage_container"
Raff Tsaidb556612018-10-20 23:59:52 +080034 android:layout_width="match_parent"
Sunny Shao2c93ec82018-11-13 16:47:36 +080035 android:layout_height="wrap_content"
Hiroki Sato8870dcb2020-06-02 16:08:34 +090036 android:orientation="vertical">
Raff Tsaidb556612018-10-20 23:59:52 +080037
Sunny Shao2c93ec82018-11-13 16:47:36 +080038 <FrameLayout
39 android:id="@+id/contextual_cards_content"
40 android:layout_width="match_parent"
Yanting Yang87cd0f92018-11-26 16:39:30 +080041 android:layout_height="wrap_content"
Fan Zhangb64d16d2019-04-10 12:25:10 -070042 android:layout_marginStart="@dimen/contextual_card_side_margin"
43 android:layout_marginEnd="@dimen/contextual_card_side_margin"/>
Raff Tsaidb556612018-10-20 23:59:52 +080044
Sunny Shao2c93ec82018-11-13 16:47:36 +080045 <FrameLayout
46 android:id="@+id/main_content"
47 android:layout_width="match_parent"
Mill Chen23452862019-02-20 17:12:49 +080048 android:layout_height="wrap_content"
Mill Chen04fd0e42019-04-09 17:28:46 -070049 android:animateLayoutChanges="true"
50 android:background="?android:attr/windowBackground"/>
Sunny Shao2c93ec82018-11-13 16:47:36 +080051
52 </LinearLayout>
53 </androidx.core.widget.NestedScrollView>
Sunny Shao2f7f14f2018-12-05 16:10:00 +080054
55 <com.google.android.material.appbar.AppBarLayout
56 android:layout_width="match_parent"
Hiroki Sato8870dcb2020-06-02 16:08:34 +090057 android:layout_height="wrap_content"
58 android:touchscreenBlocksFocus="false"
59 android:keyboardNavigationCluster="false">
Sunny Shao2f7f14f2018-12-05 16:10:00 +080060 <include layout="@layout/search_bar"/>
61 </com.google.android.material.appbar.AppBarLayout>
Sunny Shao2c93ec82018-11-13 16:47:36 +080062</androidx.coordinatorlayout.widget.CoordinatorLayout>