scorpion01

Untitled

Sep 30th, 2019
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.92 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.cardview.widget.CardView
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    xmlns:app="http://schemas.android.com/apk/res-auto"
  5.    app:cardCornerRadius="3dp"
  6.    android:elevation="3dp"
  7.    app:cardUseCompatPadding="true"
  8.    android:layout_width="match_parent"
  9.    android:layout_height="wrap_content">
  10.  
  11.     <RelativeLayout
  12.        android:padding="16dp"
  13.        android:layout_width="match_parent"
  14.        android:layout_height="wrap_content">
  15.         <ImageView
  16.            android:src="@mipmap/ic_launcher"
  17.            android:id="@+id/imageIv"
  18.            android:layout_width="75dp"
  19.            android:layout_height="75dp"/>
  20.         <TextView
  21.            android:layout_marginStart="10dp"
  22.            android:layout_toEndOf="@+id/imageIv"
  23.            android:layout_marginLeft="10dp"
  24.            android:layout_toRightOf="@+id/imageIv"
  25.            android:textStyle="bold"
  26.            android:textColor="#000"
  27.            android:textSize="18sp"
  28.            android:id="@+id/titleTv"
  29.            android:text="Title"
  30.            android:layout_width="match_parent"
  31.            android:layout_height="wrap_content" />
  32.         <TextView
  33.            android:minLines="1"
  34.            android:maxLines="2"
  35.            android:ellipsize="end"
  36.            android:id="@+id/descriptionTv"
  37.            android:textSize="14sp"
  38.            android:layout_toEndOf="@+id/imageIv"
  39.            android:textColor="#a9a9a9"
  40.            android:layout_marginTop="5dp"
  41.            android:layout_marginLeft="10dp"
  42.            android:layout_marginStart="10dp"
  43.            android:text="Description"
  44.            android:layout_toRightOf="@+id/imageIv"
  45.            android:layout_below="@+id/titleTv"
  46.            android:layout_width="match_parent"
  47.            android:layout_height="wrap_content" />
  48.     </RelativeLayout>
  49.  
  50. </androidx.cardview.widget.CardView>
Advertisement
Add Comment
Please, Sign In to add comment