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
  • app
  • src
  • main
  • res
  • layout
  • message_adapter.xml
Find file
BlameHistoryPermalink
  • 罗翻's avatar
    增加空用户模块和工单模块 · f3d96e17
    罗翻 committed 7 years ago
    f3d96e17
message_adapter.xml 3.58 KB
Edit
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
<?xml version="1.0" encoding="utf-8"?>
<layout>

    <data>

        <variable
            name="item"
            type="com.dayu.message.data.protocol.NewMessage"/>
    </data>

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/dp_80"
                    android:orientation="vertical">

        <RelativeLayout
            android:id="@+id/item"
            android:layout_width="@dimen/dp_333"
            android:layout_height="@dimen/dp_80"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="5dp"
            android:background="@drawable/item_shape">

            <TextView
                android:id="@+id/line_textView"
                android:layout_width="1dp"
                android:layout_height="match_parent"
                android:layout_marginLeft="89dp"
                android:background="@color/line_color"
                />

            <TextView
                android:id="@+id/message_date"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignRight="@id/line_textView"
                android:layout_marginRight="@dimen/dp_12"
                android:layout_marginTop="@dimen/dp_18"
                android:text="08-10"
                android:textColor="@color/cl_home_title_text_color"
                android:textSize="@dimen/sp_12"
                />

            <TextView
                android:id="@+id/message_time"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignRight="@id/line_textView"
                android:layout_marginRight="@dimen/dp_12"
                android:layout_marginTop="@dimen/dp_34"
                android:text="18:72"
                android:textColor="@color/cl_home_title_text_color"
                android:textSize="24sp"
                />

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_alignLeft="@id/line_textView"
                android:layout_centerVertical="true"
                android:layout_marginLeft="@dimen/dp_16"
                android:gravity="center_vertical"
                android:orientation="horizontal"
                >

                <TextView
                    android:id="@+id/message_text_content"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:ellipsize="end"
                    android:maxLines="2"
                    android:textColor="@color/cl_home_title_text_color"
                    android:textSize="@dimen/sp_13.3"
                    />

                <TextView
                    android:id="@+id/read_state"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentRight="true"
                    android:layout_centerVertical="true"
                    android:layout_marginRight="@dimen/dp_21.3"
                    android:layout_toRightOf="@id/message_text_content"
                    android:text="@string/not_read"
                    android:textColor="@color/cl_tab_read"
                    android:textSize="@dimen/sp_10"
                    />
            </LinearLayout>

        </RelativeLayout>
    </RelativeLayout>
</layout>