-
Notifications
You must be signed in to change notification settings - Fork 0
/
news_holder.xml
49 lines (42 loc) · 1.85 KB
/
news_holder.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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardCornerRadius="@dimen/cardview_default_radius"
android:layout_margin="5dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_margin="5dp">
<ImageView
android:id="@+id/imgHolder"
android:layout_width="match_parent"
android:layout_height="150dp"
android:scaleType="fitXY"
android:src="@drawable/diabetes"/>
<TextView
android:id="@+id/newsDesc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="5dp"
android:text="Know Diabetes : Says american scientst at levels of inspection and at perfection "
android:textColor="@color/darkPrimary"
android:textSize="20dp" />
<TextView
android:id="@+id/newsSrc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="5dp"
android:text="diabetes.co.uk"
android:textColor="@color/darkSecondary"
android:textSize="20dp" />
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>