Files
EhViewer/app/src/main/res/layout/widget_content_layout.xml
T
2015-05-09 22:23:40 +08:00

76 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2015 Hippo Seven
~
~ 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
~ 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.
-->
<!--suppress Annotator -->
<merge
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:auto="http://schemas.android.com/apk/res-auto">
<ProgressBar
style="@style/ProgressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"/>
<LinearLayout
android:layout_width="240dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical">
<View
android:layout_width="180dp"
android:layout_height="180dp"
android:background="@drawable/ic_sad"
android:layout_gravity="center_horizontal"/>
<TextView
style="@style/TextAppearance.AppCompat.Medium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:paddingTop="@dimen/keyline_margin"
android:paddingBottom="@dimen/keyline_margin"/>
</LinearLayout>
<com.hippo.widget.refreshlayout.RefreshLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.hippo.widget.recyclerview.MonoRecyclerView
android:id="@+id/content_recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
auto:space="@dimen/search_layout_space"
auto:spaceLeft="@dimen/search_layout_space_vertical"
auto:spaceRight="@dimen/search_layout_space_vertical"
tools:ignore="RtlHardcoded"/>
</com.hippo.widget.refreshlayout.RefreshLayout>
<com.hippo.widget.Snackbar
android:id="@+id/snackbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:visibility="gone"
auto:message="@string/refresh_snackbar_message"/>
</merge>