Advertisement
Guest User

Untitled

a guest
Apr 10th, 2020
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.90 KB | None | 0 0
  1. item_list_hospital.xml
  2.  
  3. <?xml version="1.0" encoding="utf-8"?>
  4. <androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
  5.    xmlns:app="http://schemas.android.com/apk/res-auto"
  6.    xmlns:tools="http://schemas.android.com/tools"
  7.    android:id="@+id/card_view_hospital"
  8.    android:orientation="vertical"
  9.    android:layout_width="match_parent"
  10.    android:layout_height="wrap_content"
  11.    android:layout_gravity="center"
  12.    android:layout_marginStart="12dp"
  13.    android:layout_marginEnd="12dp"
  14.    android:layout_marginTop="6dp"
  15.    android:layout_marginBottom="6dp"
  16.    app:cardCornerRadius="6dp">
  17.  
  18.     <LinearLayout
  19.        android:layout_width="match_parent"
  20.        android:layout_height="wrap_content"
  21.        android:orientation="vertical"
  22.        android:layout_margin="4dp">
  23.        
  24.         <ImageView
  25.            android:id="@+id/iv_hospital"
  26.            android:layout_width="match_parent"
  27.            android:layout_height="180dp"
  28.            tools:src="@color/colorAccent"
  29.            android:scaleType="centerCrop"
  30.            android:layout_marginBottom="6dp"/>
  31.  
  32.         <TextView
  33.            android:id="@+id/tv_hospital_name"
  34.            android:layout_width="match_parent"
  35.            android:layout_height="wrap_content"
  36.            android:layout_marginStart="4dp"
  37.            android:layout_marginEnd="4dp"
  38.            android:textStyle="bold"
  39.            tools:text="HOSPITAL NAME"
  40.            android:textSize="18sp"
  41.            android:textColor="@color/colorBlack"/>
  42.  
  43.         <TextView
  44.            android:id="@+id/tv_hospital_address"
  45.            android:layout_width="match_parent"
  46.            android:layout_height="wrap_content"
  47.            android:layout_marginStart="4dp"
  48.            android:layout_marginEnd="4dp"
  49.            tools:text="HOSPITAL ADDRESS"/>
  50.        
  51.     </LinearLayout>
  52.  
  53. </androidx.cardview.widget.CardView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement