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
<?xml version="1.0" encoding="utf-8"?>
    <android.support.v7.widget.CardView
        style="@style/bigCardView"
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:cardCornerRadius="@dimen/dimen8">
 
        <android.support.constraint.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:clickable="true"
            android:focusable="true"
            android:foreground="?android:attr/selectableItemBackground"
            android:padding="@dimen/dimen8"
            android:visibility="visible"
            app:layout_constraintBottom_toTopOf="@+id/scrollTextView"
            app:layout_constraintTop_toTopOf="@+id/scrollTextView">
 
            <ImageView
                android:id="@+id/image_announcement"
                android:layout_width="@dimen/title_icon_size"
                android:layout_height="@dimen/title_icon_size"
                android:background="@drawable/ic_announcement"
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintTop_toTopOf="@id/image_announcement" />
 
            <TextView
                android:id="@+id/text_announcement"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                android:layout_marginStart="10dp"
                android:gravity="center"
                android:text="@string/announcement"
                android:textColor="@color/main_text_color"
                android:textSize="@dimen/textSize_16"
                android:textStyle="bold"
                app:layout_constraintBottom_toBottomOf="@id/image_announcement"
                app:layout_constraintLeft_toRightOf="@id/image_announcement"
                app:layout_constraintTop_toTopOf="@id/image_announcement" />
 
            <android.support.v7.widget.RecyclerView
                android:id="@+id/rv_announcement"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:visibility="gone"
                app:layout_constraintTop_toBottomOf="@id/image_announcement">
            </android.support.v7.widget.RecyclerView>
 
            <TextView
                android:id="@+id/text_no_announcement"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/dimen4"
                android:text="@string/no_announcement"
                android:visibility="gone"
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintRight_toRightOf="parent"
                app:layout_constraintTop_toBottomOf="@id/text_announcement" />
 
            <ImageView
                android:id="@+id/imageView7"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/ic_announcement_black_24dp"
                android:layout_marginTop="@dimen/dimen4"
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintTop_toBottomOf="@id/text_announcement" />
 
            <cn.flightfeather.thirdapp.view.ScrollTextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                app:layout_constraintLeft_toRightOf="@id/imageView7"
                app:layout_constraintTop_toTopOf="@id/imageView7"
                android:singleLine="true"
                android:ellipsize="marquee"
                android:textColor="@color/main_text_color"
                android:text="[2019/3/4] 2019年3月5日下午将开展静安区工地监管会议,请准时参加。"
                android:id="@+id/scrollTextView" />
        </android.support.constraint.ConstraintLayout>
    </android.support.v7.widget.CardView>