-
Notifications
You must be signed in to change notification settings - Fork 0
/
detailed_activity.xml
121 lines (119 loc) · 4.92 KB
/
detailed_activity.xml
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
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="match_parent">
<androidx.coordinatorlayout.widget.CoordinatorLayout 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="match_parent"
android:orientation="vertical"
tools:context=".ui.home.HomeFragment">
<LinearLayout
android:id="@+id/linlaHeaderProgress"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
android:orientation="vertical"
android:visibility="gone" >
<ProgressBar
android:id="@+id/pbHeaderProgress"
android:indeterminateTint="#673AB7"
style="@style/Widget.AppCompat.ProgressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
</ProgressBar>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/FN" />
</LinearLayout>
<androidx.cardview.widget.CardView
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:id="@+id/card_view_news"
android:layout_margin="5dp"
android:scaleType="center"
android:layout_marginBottom="20dp"
android:paddingBottom="10dp"
card_view:cardCornerRadius="10dp"
card_view:cardElevation="0dp"
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:scrollbars="vertical|horizontal">
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="fitXY"
android:adjustViewBounds="true"
android:layout_alignParentStart="true"
android:id="@+id/detail_img"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:textStyle="bold"
android:textSize="20sp"
android:textColor="#000000"
android:textAlignment="center"
android:layout_below="@+id/detail_img"
android:id="@+id/detail_title" />
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp"
android:id="@+id/det_rel"
android:layout_below="@+id/detail_title"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18sp"
android:layout_alignParentStart="true"
android:id="@+id/detail_sect"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18sp"
android:layout_alignParentEnd="true"
android:id="@+id/detail_date"/>
</RelativeLayout>
<TextView
android:id="@+id/detail_article"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/det_rel"
android:gravity="start"
android:textSize="18sp"
android:paddingStart="5dp"
android:paddingEnd="5dp"
android:scrollHorizontally="true"
android:ellipsize="end"
android:maxLines="30"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center_horizontal"
android:padding="10dp"
android:layout_marginBottom="10dp"
android:textSize="20sp"
android:textColor="#6C6971"
android:textColorLink="#6C6971"
android:textStyle="bold"
android:textAlignment="center"
android:layout_below="@+id/detail_article"
android:id="@+id/detail_url" />
</RelativeLayout>
</androidx.cardview.widget.CardView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</ScrollView>