You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
3.3 KiB
83 lines
3.3 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2019 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_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:background="?android:colorPrimary">
|
|
<include layout="@layout/section_header"/>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<LinearLayout
|
|
android:id="@+id/content_section"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal">
|
|
|
|
<FrameLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1">
|
|
<FrameLayout
|
|
android:id="@+id/preview_card_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="@dimen/preview_content_padding_top"
|
|
android:paddingBottom="@dimen/preview_content_padding_bottom"
|
|
android:clipToPadding="false"
|
|
android:background="?android:colorSecondary">
|
|
<include layout="@layout/theme_preview_card"/>
|
|
</FrameLayout>
|
|
</FrameLayout>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/options_container"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:paddingVertical="10dp" />
|
|
</LinearLayout>
|
|
|
|
<androidx.core.widget.ContentLoadingProgressBar
|
|
android:id="@+id/loading_indicator"
|
|
style="@android:style/Widget.DeviceDefault.ProgressBar"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="200dp"
|
|
android:layout_gravity="center_horizontal|top"
|
|
android:indeterminate="true"/>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/error_section"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:visibility="gone">
|
|
<TextView
|
|
android:id="@+id/error_message"
|
|
style="@style/TitleTextAppearance"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:text="@string/something_went_wrong"/>
|
|
</FrameLayout>
|
|
</FrameLayout>
|
|
</LinearLayout>
|