daily pastebin goal
46%
SHARE
TWEET

item_card

Neyasbit Mar 26th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:layout_width="match_parent"
  4.    android:layout_height="wrap_content"
  5.    xmlns:app="http://schemas.android.com/apk/res-auto"
  6.    xmlns:card_view="http://schemas.android.com/apk/res-auto"
  7.    xmlns:tools="http://schemas.android.com/tools"
  8.    android:id="@+id/card"
  9.    android:layout_marginTop="8dp"
  10.    android:layout_marginLeft="8dp"
  11.    android:layout_marginRight="8dp"
  12.    android:layout_marginBottom="8dp"
  13.    card_view:cardBackgroundColor="@android:color/white"
  14.    card_view:cardCornerRadius="6dp"
  15.    card_view:cardElevation="6dp">
  16.  
  17.     <LinearLayout
  18.        android:orientation="vertical"
  19.        android:id="@+id/card_content"
  20.        android:layout_width="match_parent"
  21.        android:layout_height="wrap_content">
  22.         <TextView
  23.            android:id="@+id/tv_location"
  24.            android:layout_width="match_parent"
  25.            android:layout_height="wrap_content"
  26.            android:layout_margin="10dp"
  27.            android:textAppearance="@android:style/TextAppearance.Material.Headline"
  28.            tools:text="city"/>
  29.         <LinearLayout
  30.            android:orientation="vertical"
  31.            android:background="#6abcec"
  32.            android:layout_width="match_parent"
  33.            android:layout_height="2dp">
  34.  
  35.         </LinearLayout>
  36.         <TextView
  37.            android:id="@+id/tv_name"
  38.            android:layout_width="match_parent"
  39.            android:layout_height="wrap_content"
  40.            android:layout_margin="10dp"
  41.            android:textAppearance="@android:style/TextAppearance.Material.Headline"
  42.            tools:text="Name"
  43.            />
  44.         <LinearLayout
  45.            android:orientation="vertical"
  46.            android:background="#6abcec"
  47.            android:layout_width="match_parent"
  48.            android:layout_height="2dp">
  49.  
  50.         </LinearLayout>
  51.         <TextView
  52.            android:id="@+id/tv_text"
  53.            android:layout_width="match_parent"
  54.            android:layout_height="wrap_content"
  55.            android:layout_margin="10dp"
  56.            android:textAppearance="@android:style/TextAppearance.Material.Headline"
  57.            tools:text="Text"/>
  58.  
  59.     </LinearLayout>
  60. </androidx.cardview.widget.CardView>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top