Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.constraint.ConstraintLayout 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:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <ImageView
- android:id="@+id/iv_background"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:layout_marginTop="@dimen/dimen_8"
- android:scaleType="centerCrop"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- android:src="@mipmap/ic_launcher" />
- <TextView
- android:id="@+id/tv_rating"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:layout_marginStart="@dimen/dimen_16"
- android:layout_marginTop="@dimen/dimen_16"
- android:paddingBottom="@dimen/dimen_4"
- android:paddingLeft="@dimen/dimen_6"
- android:paddingRight="@dimen/dimen_6"
- android:paddingTop="@dimen/dimen_4"
- android:textColor="@color/white"
- android:textSize="@dimen/dimen_16"
- app:layout_constraintLeft_toLeftOf="@+id/iv_background"
- app:layout_constraintTop_toTopOf="parent"
- tools:text="4.4" />
- <TextView
- android:id="@+id/tv_restaurant_name"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:layout_marginBottom="40dp"
- android:layout_marginEnd="16dp"
- android:layout_marginStart="@dimen/dimen_16"
- android:layout_marginTop="@dimen/dimen_28"
- android:ellipsize="end"
- android:gravity="center"
- android:maxWidth="250dp"
- android:paddingBottom="@dimen/dimen_3"
- android:paddingLeft="@dimen/dimen_8"
- android:paddingRight="@dimen/dimen_8"
- android:paddingTop="@dimen/dimen_3"
- android:singleLine="true"
- android:textColor="@color/white"
- android:textSize="@dimen/font_15"
- android:textStyle="bold"
- app:layout_constraintBottom_toBottomOf="@+id/iv_background"
- app:layout_constraintHorizontal_bias="0.0"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toLeftOf="@+id/iv_thumbs_down"
- app:layout_constraintTop_toBottomOf="@+id/tv_rating"
- tools:text="This is a very very" />
- <TextView
- android:id="@+id/tv_restaurant_address"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:layout_marginBottom="@dimen/dimen_16"
- android:layout_marginEnd="16dp"
- android:layout_marginStart="@dimen/dimen_16"
- android:layout_marginTop="@dimen/dimen_16"
- android:ellipsize="end"
- android:gravity="center"
- android:maxWidth="200dp"
- android:paddingBottom="@dimen/dimen_3"
- android:paddingLeft="@dimen/dimen_8"
- android:paddingRight="@dimen/dimen_8"
- android:paddingTop="@dimen/dimen_3"
- android:singleLine="true"
- android:textColor="@color/white"
- android:textSize="@dimen/font_12"
- app:layout_constraintBottom_toBottomOf="@+id/iv_background"
- app:layout_constraintHorizontal_bias="0.0"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toLeftOf="@+id/tv_distance"
- app:layout_constraintTop_toBottomOf="@+id/tv_restaurant_name"
- tools:text="Restaurant Address" />
- <ImageView
- android:id="@+id/iv_thumbs_down"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:layout_marginEnd="@dimen/dimen_16"
- android:layout_marginTop="@dimen/dimen_16"
- android:padding="@dimen/dimen_8"
- app:layout_constraintRight_toRightOf="@+id/iv_background"
- app:layout_constraintTop_toTopOf="parent"
- android:src="@drawable/ic_thumb_down" />
- <TextView
- android:id="@+id/tv_distance"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:layout_marginEnd="16dp"
- android:layout_marginTop="40dp"
- android:paddingBottom="@dimen/dimen_3"
- android:paddingLeft="@dimen/dimen_8"
- android:paddingRight="@dimen/dimen_8"
- android:paddingTop="@dimen/dimen_3"
- android:textColor="@color/white"
- android:textSize="@dimen/font_12"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/iv_thumbs_down"
- tools:text="1.2kms" />
- </android.support.constraint.ConstraintLayout>
Add Comment
Please, Sign In to add comment