Emily Chuang | 150b2ba | 2018-08-21 07:17:05 +0800 | [diff] [blame] | 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 | |
Sunny Shao | 2c93ec8 | 2018-11-13 16:47:36 +0800 | [diff] [blame] | 18 | <androidx.coordinatorlayout.widget.CoordinatorLayout |
Emily Chuang | 150b2ba | 2018-08-21 07:17:05 +0800 | [diff] [blame] | 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
Sunny Shao | 2c93ec8 | 2018-11-13 16:47:36 +0800 | [diff] [blame] | 20 | xmlns:app="http://schemas.android.com/apk/res-auto" |
Fan Zhang | 3e14383 | 2019-05-07 15:14:09 -0700 | [diff] [blame] | 21 | android:id="@+id/settings_homepage_container" |
| 22 | android:fitsSystemWindows="true" |
Raff Tsai | 43a7b18 | 2018-08-28 22:02:29 +0800 | [diff] [blame] | 23 | android:layout_width="match_parent" |
Raff Tsai | db55661 | 2018-10-20 23:59:52 +0800 | [diff] [blame] | 24 | android:layout_height="match_parent"> |
Fan Zhang | 3181e1a | 2018-10-10 15:25:47 -0700 | [diff] [blame] | 25 | |
Sunny Shao | 2c93ec8 | 2018-11-13 16:47:36 +0800 | [diff] [blame] | 26 | <androidx.core.widget.NestedScrollView |
Fan Zhang | eba6143 | 2018-11-28 12:58:14 -0800 | [diff] [blame] | 27 | android:id="@+id/main_content_scrollable_container" |
Sunny Shao | 2c93ec8 | 2018-11-13 16:47:36 +0800 | [diff] [blame] | 28 | android:layout_width="match_parent" |
| 29 | android:layout_height="match_parent" |
Sunny Shao | 2f7f14f | 2018-12-05 16:10:00 +0800 | [diff] [blame] | 30 | app:layout_behavior="com.android.settings.widget.FloatingAppBarScrollingViewBehavior"> |
Sunny Shao | 2c93ec8 | 2018-11-13 16:47:36 +0800 | [diff] [blame] | 31 | |
| 32 | <LinearLayout |
Sunny Shao | 4ddecb0 | 2019-01-28 17:46:35 +0800 | [diff] [blame] | 33 | android:id="@+id/homepage_container" |
Raff Tsai | db55661 | 2018-10-20 23:59:52 +0800 | [diff] [blame] | 34 | android:layout_width="match_parent" |
Sunny Shao | 2c93ec8 | 2018-11-13 16:47:36 +0800 | [diff] [blame] | 35 | android:layout_height="wrap_content" |
Hiroki Sato | 8870dcb | 2020-06-02 16:08:34 +0900 | [diff] [blame] | 36 | android:orientation="vertical"> |
Raff Tsai | db55661 | 2018-10-20 23:59:52 +0800 | [diff] [blame] | 37 | |
Sunny Shao | 2c93ec8 | 2018-11-13 16:47:36 +0800 | [diff] [blame] | 38 | <FrameLayout |
| 39 | android:id="@+id/contextual_cards_content" |
| 40 | android:layout_width="match_parent" |
Yanting Yang | 87cd0f9 | 2018-11-26 16:39:30 +0800 | [diff] [blame] | 41 | android:layout_height="wrap_content" |
Fan Zhang | b64d16d | 2019-04-10 12:25:10 -0700 | [diff] [blame] | 42 | android:layout_marginStart="@dimen/contextual_card_side_margin" |
| 43 | android:layout_marginEnd="@dimen/contextual_card_side_margin"/> |
Raff Tsai | db55661 | 2018-10-20 23:59:52 +0800 | [diff] [blame] | 44 | |
Sunny Shao | 2c93ec8 | 2018-11-13 16:47:36 +0800 | [diff] [blame] | 45 | <FrameLayout |
| 46 | android:id="@+id/main_content" |
| 47 | android:layout_width="match_parent" |
Mill Chen | 2345286 | 2019-02-20 17:12:49 +0800 | [diff] [blame] | 48 | android:layout_height="wrap_content" |
Mill Chen | 04fd0e4 | 2019-04-09 17:28:46 -0700 | [diff] [blame] | 49 | android:animateLayoutChanges="true" |
| 50 | android:background="?android:attr/windowBackground"/> |
Sunny Shao | 2c93ec8 | 2018-11-13 16:47:36 +0800 | [diff] [blame] | 51 | |
| 52 | </LinearLayout> |
| 53 | </androidx.core.widget.NestedScrollView> |
Sunny Shao | 2f7f14f | 2018-12-05 16:10:00 +0800 | [diff] [blame] | 54 | |
| 55 | <com.google.android.material.appbar.AppBarLayout |
| 56 | android:layout_width="match_parent" |
Hiroki Sato | 8870dcb | 2020-06-02 16:08:34 +0900 | [diff] [blame] | 57 | android:layout_height="wrap_content" |
| 58 | android:touchscreenBlocksFocus="false" |
| 59 | android:keyboardNavigationCluster="false"> |
Sunny Shao | 2f7f14f | 2018-12-05 16:10:00 +0800 | [diff] [blame] | 60 | <include layout="@layout/search_bar"/> |
| 61 | </com.google.android.material.appbar.AppBarLayout> |
Sunny Shao | 2c93ec8 | 2018-11-13 16:47:36 +0800 | [diff] [blame] | 62 | </androidx.coordinatorlayout.widget.CoordinatorLayout> |