Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

android / dayu

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • dayu
  • baseSDK
  • src
  • main
  • res
  • layout
  • lrecycle_layout.xml
Find file
Normal viewHistoryPermalink
lrecycle_layout.xml 3.27 KB
Newer Older
罗翻's avatar
增加provider
60be48b9
 
罗翻 committed 7 years ago
1 2 3 4 5 6
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

wukun's avatar
1.androidx
831aeac7
 
wukun committed 2 years ago
7
        <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
罗翻's avatar
增加provider
60be48b9
 
罗翻 committed 7 years ago
8 9 10 11
            android:id="@+id/swiperefresh"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

wukun's avatar
1.androidx
831aeac7
 
wukun committed 2 years ago
12
            <androidx.recyclerview.widget.RecyclerView
罗翻's avatar
增加provider
60be48b9
 
罗翻 committed 7 years ago
13 14 15 16 17
                android:id="@+id/recyclerview"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:cacheColorHint="@null"
                android:scrollbars="none" />
wukun's avatar
1.androidx
831aeac7
 
wukun committed 2 years ago
18
        </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
罗翻's avatar
增加provider
60be48b9
 
罗翻 committed 7 years ago
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42


        <LinearLayout
            android:id="@+id/ll_emptyview"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center"
            android:orientation="vertical"
            android:visibility="gone">

            <ImageView
                android:id="@+id/iv_empty"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerHorizontal="true"
                android:layout_centerVertical="true"
                android:src="@drawable/yu" />

            <TextView
                android:id="@+id/tv_empty"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerHorizontal="true"
                android:layout_marginTop="@dimen/dp_13"
罗翻's avatar
去除代码中的中文字
b61ecd3a
 
罗翻 committed 7 years ago
43
                android:text="@string/no_data_press_refresh"
罗翻's avatar
增加provider
60be48b9
 
罗翻 committed 7 years ago
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
                android:textColor="@color/cl_selector_hui"
                android:textSize="@dimen/sp_13.3" />
        </LinearLayout>

        <LinearLayout
            android:id="@+id/ll_faileview"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center"
            android:orientation="vertical"
            android:visibility="gone">

            <ImageView
                android:id="@+id/icon"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:scaleType="centerInside"
                android:src="@drawable/error" />

            <TextView
                android:id="@+id/description"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="23dp"
罗翻's avatar
去除代码中的中文字
b61ecd3a
 
罗翻 committed 7 years ago
68
                android:text="@string/load_error"
罗翻's avatar
增加provider
60be48b9
 
罗翻 committed 7 years ago
69 70 71 72 73 74 75 76 77 78 79 80 81
                android:textColor="#c9c9c9"
                android:textSize="17.3sp" />

            <TextView
                android:id="@+id/retry_btn"
                android:layout_width="115dp"
                android:layout_height="30dp"
                android:layout_marginTop="55dp"
                android:gravity="center"
                android:paddingBottom="4dp"
                android:paddingLeft="6dp"
                android:paddingRight="6dp"
                android:paddingTop="4dp"
罗翻's avatar
去除代码中的中文字
b61ecd3a
 
罗翻 committed 7 years ago
82
                android:text="@string/load_again"
罗翻's avatar
增加provider
60be48b9
 
罗翻 committed 7 years ago
83 84 85 86
                android:textSize="15.4sp" />
        </LinearLayout>

    </LinearLayout>