/
list_item_gunung.xml
56 lines (49 loc) · 2.05 KB
/
list_item_gunung.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
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/cvListGunung"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
app:cardBackgroundColor="@color/colorBackground"
app:cardCornerRadius="10dp"
app:cardElevation="5dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerInParent="true"
android:layout_marginTop="40dp" />
<ImageView
android:id="@+id/imageGunung"
android:layout_width="match_parent"
android:layout_height="130dp"
android:scaleType="fitXY" />
<TextView
android:id="@+id/tvNamaGunung"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/imageGunung"
android:paddingLeft="10dp"
android:paddingTop="2dp"
android:paddingRight="10dp"
android:textAlignment="center"
android:textColor="@android:color/black"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/tvLokasiGunung"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/tvNamaGunung"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:paddingBottom="2dp"
android:textAlignment="center"
android:textColor="@android:color/black"
android:textSize="12sp" />
</RelativeLayout>
</androidx.cardview.widget.CardView>