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
  • learnCenter
  • src
  • main
  • res
  • layout
  • item_video_live.xml
Find file
Normal viewHistoryPermalink
item_video_live.xml 4.1 KB
Newer Older
mReturn's avatar
接入直播
b8338b29
 
mReturn committed 4 years ago
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">


    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="@dimen/dp_13.3"
        android:layout_marginTop="5dp"
        android:layout_marginRight="@dimen/dp_13.3"
        android:background="@drawable/item_shape"
        android:orientation="vertical">

        <RelativeLayout
            android:id="@+id/rl_video"
            android:layout_width="match_parent"
            android:layout_height="180dp">

            <ImageView
                android:id="@+id/iv_cover"
mReturn's avatar
直播调试
f88e6950
 
mReturn committed 4 years ago
22 23
                android:scaleType="centerCrop"
                android:background="@color/black"
mReturn's avatar
接入直播
b8338b29
 
mReturn committed 4 years ago
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
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <RelativeLayout
                android:id="@+id/rl_cover"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@color/transparent">
                <ImageView
                    android:layout_width="45dp"
                    android:layout_height="45dp"
                    android:src="@drawable/jz_play_normal"
                    android:layout_centerInParent="true"
                    />

                <TextView
                    android:id="@+id/tv_disable"
                    style="@style/common_text_style"
                    android:layout_width="100dp"
                    android:layout_alignParentRight="true"
                    android:height="36dp"
                    android:background="@drawable/bg_live_red_react"
                    android:gravity="center"
                    android:layout_margin="5dp"
                    android:text="直播中"
                    android:textColor="@color/white" />

            </RelativeLayout>
        </RelativeLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="45dp"
            android:gravity="center_vertical"
            android:orientation="horizontal">

            <TextView
                android:id="@+id/tv_title"
                style="@style/common_text_style"
                android:layout_width="0dp"
                android:layout_marginLeft="5dp"
                android:layout_weight="1"
                android:maxLines="2"
                android:text="标题" />

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                android:visibility="gone">

                <ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="10dp"
                    android:src="@drawable/icon_looks" />

                <TextView
                    android:id="@+id/tv_looks"
                    style="@style/common_text_style"
                    android:layout_marginLeft="5dp"
                    android:text="0" />

                <ImageView
                    android:id="@+id/iv_like"
                    android:layout_width="18dp"
                    android:layout_height="18dp"
                    android:layout_marginLeft="10dp"
                    android:src="@drawable/icon_like_gray" />

                <TextView
                    android:id="@+id/tv_like"
                    style="@style/common_text_style"
                    android:layout_marginLeft="5dp"
                    android:layout_marginRight="10dp"
                    android:text="0" />

                <ImageButton
                    android:id="@+id/ib_share"
                    android:layout_width="40dp"
                    android:layout_height="match_parent"
                    android:background="@color/transparent"
                    android:src="@drawable/icon_share_gray" />
            </LinearLayout>
        </LinearLayout>

    </LinearLayout>

</layout>