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
Normal viewHistoryPermalink
message_adapter.xml 3.58 KB
Newer Older
yu's avatar
2017/10/14 第三次提交
da9877a5
 
yu committed 7 years ago
1
<?xml version="1.0" encoding="utf-8"?>
罗翻's avatar
自定义lrecyclerview和coreAdapter
575c7865
 
罗翻 committed 7 years ago
2
<layout>
罗翻's avatar
消息页面修改
58f6ac2e
 
罗翻 committed 7 years ago
3

罗翻's avatar
自定义lrecyclerview和coreAdapter
575c7865
 
罗翻 committed 7 years ago
4
    <data>
罗翻's avatar
消息页面修改
58f6ac2e
 
罗翻 committed 7 years ago
5

罗翻's avatar
自定义lrecyclerview和coreAdapter
575c7865
 
罗翻 committed 7 years ago
6 7
        <variable
            name="item"
罗翻's avatar
增加空用户模块和工单模块
f3d96e17
 
罗翻 committed 7 years ago
8
            type="com.dayu.message.data.protocol.NewMessage"/>
罗翻's avatar
自定义lrecyclerview和coreAdapter
575c7865
 
罗翻 committed 7 years ago
9
    </data>
罗翻's avatar
消息页面修改
58f6ac2e
 
罗翻 committed 7 years ago
10

罗翻's avatar
自定义lrecyclerview和coreAdapter
575c7865
 
罗翻 committed 7 years ago
11 12 13 14
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/dp_80"
                    android:orientation="vertical">
罗翻's avatar
消息页面修改
58f6ac2e
 
罗翻 committed 7 years ago
15

罗翻's avatar
自定义lrecyclerview和coreAdapter
575c7865
 
罗翻 committed 7 years ago
16 17 18 19 20 21 22
        <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">
罗翻's avatar
消息页面修改
58f6ac2e
 
罗翻 committed 7 years ago
23

罗翻's avatar
自定义lrecyclerview和coreAdapter
575c7865
 
罗翻 committed 7 years ago
24 25 26 27 28 29 30
            <TextView
                android:id="@+id/line_textView"
                android:layout_width="1dp"
                android:layout_height="match_parent"
                android:layout_marginLeft="89dp"
                android:background="@color/line_color"
                />
罗翻's avatar
增加jswebview
d822891d
 
罗翻 committed 7 years ago
31 32

            <TextView
罗翻's avatar
自定义lrecyclerview和coreAdapter
575c7865
 
罗翻 committed 7 years ago
33 34
                android:id="@+id/message_date"
                android:layout_width="wrap_content"
罗翻's avatar
增加jswebview
d822891d
 
罗翻 committed 7 years ago
35
                android:layout_height="wrap_content"
罗翻's avatar
自定义lrecyclerview和coreAdapter
575c7865
 
罗翻 committed 7 years ago
36 37 38 39
                android:layout_alignRight="@id/line_textView"
                android:layout_marginRight="@dimen/dp_12"
                android:layout_marginTop="@dimen/dp_18"
                android:text="08-10"
罗翻's avatar
增加jswebview
d822891d
 
罗翻 committed 7 years ago
40
                android:textColor="@color/cl_home_title_text_color"
罗翻's avatar
自定义lrecyclerview和coreAdapter
575c7865
 
罗翻 committed 7 years ago
41
                android:textSize="@dimen/sp_12"
罗翻's avatar
增加jswebview
d822891d
 
罗翻 committed 7 years ago
42 43 44
                />

            <TextView
罗翻's avatar
自定义lrecyclerview和coreAdapter
575c7865
 
罗翻 committed 7 years ago
45
                android:id="@+id/message_time"
罗翻's avatar
增加jswebview
d822891d
 
罗翻 committed 7 years ago
46 47
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
罗翻's avatar
自定义lrecyclerview和coreAdapter
575c7865
 
罗翻 committed 7 years ago
48 49 50 51 52 53
                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"
罗翻's avatar
增加jswebview
d822891d
 
罗翻 committed 7 years ago
54
                />
罗翻's avatar
消息页面修改
58f6ac2e
 
罗翻 committed 7 years ago
55

罗翻's avatar
自定义lrecyclerview和coreAdapter
575c7865
 
罗翻 committed 7 years ago
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
            <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>
yu's avatar
2017/10/14 第三次提交
da9877a5
 
yu committed 7 years ago
92
    </RelativeLayout>
罗翻's avatar
自定义lrecyclerview和coreAdapter
575c7865
 
罗翻 committed 7 years ago
93
</layout>