Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- item_list_hospital.xml
- <?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"
- xmlns:tools="http://schemas.android.com/tools"
- android:id="@+id/card_view_hospital"
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:layout_marginStart="12dp"
- android:layout_marginEnd="12dp"
- android:layout_marginTop="6dp"
- android:layout_marginBottom="6dp"
- app:cardCornerRadius="6dp">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:layout_margin="4dp">
- <ImageView
- android:id="@+id/iv_hospital"
- android:layout_width="match_parent"
- android:layout_height="180dp"
- tools:src="@color/colorAccent"
- android:scaleType="centerCrop"
- android:layout_marginBottom="6dp"/>
- <TextView
- android:id="@+id/tv_hospital_name"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="4dp"
- android:layout_marginEnd="4dp"
- android:textStyle="bold"
- tools:text="HOSPITAL NAME"
- android:textSize="18sp"
- android:textColor="@color/colorBlack"/>
- <TextView
- android:id="@+id/tv_hospital_address"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="4dp"
- android:layout_marginEnd="4dp"
- tools:text="HOSPITAL ADDRESS"/>
- </LinearLayout>
- </androidx.cardview.widget.CardView>
Advertisement
Add Comment
Please, Sign In to add comment