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
  • liveModule
  • src
  • main
  • res
  • layout
  • fragment_videolist.xml
Find file
BlameHistoryPermalink
  • mReturn's avatar
    接入直播 · b8338b29
    mReturn committed 4 years ago
    b8338b29
fragment_videolist.xml 4.23 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
        android:id="@+id/tab_layout"
        android:layout_width="wrap_content"
        android:layout_height="40dp"
        android:layout_marginTop="15dp"
        android:background="@color/background"
        android:orientation="horizontal"
        android:weightSum="2">

        <!-- tab1 -->
        <FrameLayout
            android:id="@+id/tab_live"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_marginLeft="10dp"
            android:layout_gravity="center"
            android:layout_weight="1">
            <TextView
                android:id="@+id/text_live"
                android:layout_height="match_parent"
                android:layout_width="wrap_content"
                android:layout_gravity="center"
                android:layout_weight="1"
                android:gravity="center"
                android:layout_marginBottom="8dp"
                android:text="秀场直播"
                android:textColor="#000"
                android:textSize="16sp"/>

            <ImageView
                android:id="@+id/image_live"
                android:layout_width="35dp"
                android:layout_height="4dp"
                android:layout_marginBottom="3dp"
                android:layout_gravity="center_horizontal|bottom"
                android:background="@drawable/line" />
        </FrameLayout>
        <!-- tab2 -->
        <FrameLayout
            android:id="@+id/tab_vod"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_marginLeft="20dp"
            android:layout_gravity="center"
            android:visibility="invisible"
            android:layout_weight="1">
            <TextView
                android:id="@+id/text_vod"
                android:layout_height="match_parent"
                android:layout_width="wrap_content"
                android:layout_gravity="center"
                android:layout_weight="1"
                android:gravity="center"
                android:layout_marginBottom="8dp"
                android:text="精彩回放"
                android:textColor="#000"
                android:textSize="16sp"/>

            <ImageView
                android:id="@+id/image_vod"
                android:layout_width="35dp"
                android:layout_height="4dp"
                android:layout_marginBottom="3dp"
                android:layout_gravity="center_horizontal|bottom"
                android:background="@drawable/line"/>
        </FrameLayout>

    </LinearLayout>
    
    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="0.5dp"
        android:layout_below="@id/tab_layout"
        android:background="#D8D8D8">
    </FrameLayout>


    <android.support.v4.widget.SwipeRefreshLayout
        android:id="@+id/swipe_refresh_layout_list"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@id/tab_layout"
        android:layout_marginTop="10dp"
        android:layout_marginLeft="10dp"
        android:layout_marginRight="10dp">

        <GridView
            android:id="@+id/live_list"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:clickable="true"
            android:numColumns="2"
            android:horizontalSpacing="6dp"
            android:verticalSpacing="6dp"
            android:background="#efefef"
            android:divider="@color/colorActivityBackground"
            android:dividerHeight="5dp" />
    </android.support.v4.widget.SwipeRefreshLayout>


    <TextView
        android:id="@+id/tv_listview_empty"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:drawablePadding="20dp"
        android:drawableTop="@drawable/list_empty"
        android:gravity="center"
        android:text="暂无内容哦~"
        android:textColor="#777"
        android:textSize="16sp" />



</RelativeLayout>