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
  • item_comment.xml
Find file
Normal viewHistoryPermalink
item_comment.xml 6.8 KB
Newer Older
mReturn's avatar
留言
080fb24a
 
mReturn committed 5 years ago
1 2 3 4 5 6 7
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android">

    <data>

        <variable
            name="item"
mReturn's avatar
整合评论
be9eb294
 
mReturn committed 5 years ago
8
            type="com.dayu.base.api.protocol.CommentBean" />
mReturn's avatar
留言
080fb24a
 
mReturn committed 5 years ago
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
    </data>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <RelativeLayout
            android:id="@+id/rl_component"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp">

            <ImageView
                android:id="@+id/iv_avatar"
                android:layout_width="35dp"
                android:layout_height="35dp"
                android:layout_marginLeft="10dp"
                />

            <TextView
                android:id="@+id/tv_name"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="10dp"
                android:layout_marginTop="5dp"
                android:layout_toRightOf="@id/iv_avatar"
                android:text="@{item.accountName}"
                android:textColor="@color/cl_home_title_text_color"
                android:textSize="13sp" />

            <TextView
                android:id="@+id/tv_time"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignBottom="@id/tv_name"
                android:layout_marginLeft="5dp"
                android:layout_toRightOf="@id/tv_name"
                android:text="time"
                android:textColor="@color/tv_cl"
                android:textSize="13sp" />

            <TextView
                android:id="@+id/tv_content"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/tv_name"
                android:layout_alignLeft="@id/tv_name"
                android:layout_marginTop="3dp"
                android:layout_marginRight="10dp"
                android:text="@{item.content}"
                android:textColor="@color/cl_home_title_text_color"
                android:textSize="13sp" />

            <ImageView
                android:layout_width="22dp"
                android:layout_height="22dp"
                android:layout_alignParentRight="true"
                android:layout_marginRight="10dp"
                android:src="@drawable/icon_comment" />

            <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_below="@id/tv_content"
                android:layout_marginTop="10dp"
                android:background="@color/color_ee" />
        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/rl_reply"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginLeft="55dp"
            android:layout_marginTop="10dp">

            <ImageView
                android:id="@+id/iv_avatar2"
                android:layout_width="35dp"
                android:layout_height="35dp"
                android:src="@drawable/icon_user_default" />

mReturn's avatar
share&fix
4ceae26e
 
mReturn committed 5 years ago
91 92
            <LinearLayout
                android:id="@+id/ll_user2"
mReturn's avatar
留言
080fb24a
 
mReturn committed 5 years ago
93 94 95 96
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="10dp"
                android:layout_marginTop="5dp"
mReturn's avatar
share&fix
4ceae26e
 
mReturn committed 5 years ago
97 98
                android:orientation="horizontal"
                android:layout_marginRight="35dp"
mReturn's avatar
留言
080fb24a
 
mReturn committed 5 years ago
99
                android:layout_toRightOf="@id/iv_avatar2"
mReturn's avatar
share&fix
4ceae26e
 
mReturn committed 5 years ago
100 101 102 103 104 105 106 107 108 109 110
                >
                <TextView
                    android:id="@+id/tv_name2"
                    android:layout_width="0dp"
                    android:layout_weight="1"
                    android:layout_height="wrap_content"
                    android:maxLines="1"
                    android:ellipsize="end"
                    android:text="@{item.accountName}"
                    android:textColor="@color/cl_home_title_text_color"
                    android:textSize="13sp" />
mReturn's avatar
留言
080fb24a
 
mReturn committed 5 years ago
111

mReturn's avatar
share&fix
4ceae26e
 
mReturn committed 5 years ago
112 113 114 115 116 117 118 119 120
                <TextView
                    android:id="@+id/tv_time2"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="5dp"
                    android:text="time"
                    android:textColor="@color/tv_cl"
                    android:textSize="13sp" />
            </LinearLayout>
mReturn's avatar
留言
080fb24a
 
mReturn committed 5 years ago
121 122 123 124 125

            <LinearLayout
                android:id="@+id/ll_content"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
mReturn's avatar
share&fix
4ceae26e
 
mReturn committed 5 years ago
126 127
                android:layout_below="@id/ll_user2"
                android:layout_alignLeft="@id/ll_user2"
mReturn's avatar
留言
080fb24a
 
mReturn committed 5 years ago
128 129 130 131 132 133 134 135 136
                android:layout_marginTop="5dp"
                android:layout_marginRight="10dp"
                android:orientation="horizontal">

                <TextView
                    android:id="@+id/tv_reply_"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/reply_str"
mReturn's avatar
share&fix
4ceae26e
 
mReturn committed 5 years ago
137
                    android:lineSpacingExtra="2dp"
mReturn's avatar
留言
080fb24a
 
mReturn committed 5 years ago
138 139 140
                    android:textColor="@color/cl_home_title_text_color"
                    android:textSize="13sp" />

mReturn's avatar
share&fix
4ceae26e
 
mReturn committed 5 years ago
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
                <!--<TextView-->
                    <!--android:id="@+id/tv_reply_name"-->
                    <!--android:layout_width="wrap_content"-->
                    <!--android:layout_height="wrap_content"-->
                    <!--android:text='@{"@"+item.beName}'-->
                    <!--android:textColor="@color/cl_home_button"-->
                    <!--android:textSize="13sp" />-->

                <!--<TextView-->
                    <!--android:id="@+id/tv_content2"-->
                    <!--android:layout_width="wrap_content"-->
                    <!--android:layout_height="wrap_content"-->
                    <!--android:text='@{":  "+item.content}'-->
                    <!--android:textColor="@color/cl_home_title_text_color"-->
                    <!--android:textSize="13sp" />-->
mReturn's avatar
留言
080fb24a
 
mReturn committed 5 years ago
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
            </LinearLayout>

            <ImageView
                android:layout_width="22dp"
                android:layout_height="22dp"
                android:layout_alignParentRight="true"
                android:layout_marginRight="10dp"
                android:src="@drawable/icon_comment" />

            <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_below="@id/ll_content"
                android:layout_marginTop="10dp"
                android:background="@color/color_ee" />
        </RelativeLayout>
    </LinearLayout>
</layout>