1<?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 18<androidx.coordinatorlayout.widget.CoordinatorLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 android:id="@+id/settings_homepage_container" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent"> 24 25 <androidx.core.widget.NestedScrollView 26 android:id="@+id/main_content_scrollable_container" 27 android:layout_width="match_parent" 28 android:layout_height="match_parent" 29 app:layout_behavior="com.android.settings.widget.HomepageAppBarScrollingViewBehavior"> 30 31 <LinearLayout 32 android:id="@+id/homepage_container" 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:orientation="vertical"> 36 37 <include 38 android:id="@+id/suggestion_container_two_pane" 39 layout="@layout/suggestion_container_two_pane" 40 android:visibility="gone"/> 41 42 <FrameLayout 43 android:id="@+id/contextual_cards_content" 44 android:layout_width="match_parent" 45 android:layout_height="wrap_content" 46 android:layout_marginStart="@dimen/contextual_card_side_margin" 47 android:layout_marginEnd="@dimen/contextual_card_side_margin"/> 48 49 <FrameLayout 50 android:id="@+id/main_content" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:animateLayoutChanges="true"/> 54 55 </LinearLayout> 56 </androidx.core.widget.NestedScrollView> 57 58 <com.google.android.material.appbar.AppBarLayout 59 android:id="@+id/app_bar" 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:touchscreenBlocksFocus="false" 63 android:keyboardNavigationCluster="false"> 64 <LinearLayout 65 android:id="@+id/app_bar_container" 66 android:layout_width="match_parent" 67 android:layout_height="wrap_content" 68 android:orientation="vertical" 69 app:layout_scrollFlags="scroll|exitUntilCollapsed"> 70 71 <include 72 android:id="@+id/homepage_app_bar_regular_phone_view" 73 layout="@layout/settings_homepage_app_bar_regular_phone_layout"/> 74 75 <include 76 android:id="@+id/homepage_app_bar_two_pane_view" 77 layout="@layout/settings_homepage_app_bar_two_pane_layout" 78 android:visibility="gone"/> 79 </LinearLayout> 80 </com.google.android.material.appbar.AppBarLayout> 81</androidx.coordinatorlayout.widget.CoordinatorLayout> 82