Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@drawable/background_list_catg"
- xmlns:card_view="http://schemas.android.com/apk/res-auto"
- android:orientation="vertical"
- android:layout_marginBottom="20dp"
- android:id="@+id/rootLayout">
- <!--<android.support.v7.widget.CardView-->
- <!--android:id="@+id/card_view"-->
- <!--android:layout_width="match_parent"-->
- <!--android:layout_height="wrap_content"-->
- <!--android:layout_marginTop="1dp"-->
- <!--android:layout_marginBottom="1dp"-->
- <!--android:layout_marginLeft="1dp"-->
- <!--android:layout_marginRight="1dp"-->
- <!--card_view:cardBackgroundColor="@color/white"-->
- <!--card_view:cardCornerRadius="2dp"-->
- <!--card_view:cardUseCompatPadding="false"-->
- <!--card_view:cardElevation="5dp">-->
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:padding="5dp">
- <android.support.v7.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="200dp"
- android:layout_margin="0dp"
- card_view:cardBackgroundColor="@color/white"
- card_view:cardCornerRadius="5dp"
- card_view:cardUseCompatPadding="false"
- card_view:cardElevation="5dp">
- <ImageView
- android:id="@+id/img_promo_list"
- android:layout_width="match_parent"
- android:layout_height="200dp"
- android:background="@drawable/background_list_catg"
- android:layout_gravity="center"
- android:adjustViewBounds="true"
- android:contentDescription="@string/app_name"
- android:scaleType="fitXY"
- android:src="@drawable/placeholder220"/>
- </android.support.v7.widget.CardView>
- <TextView
- android:id="@+id/tv_promo_title"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginStart="10dp"
- android:layout_marginTop="10dp"
- android:padding="5dp"
- android:textSize="14sp"
- android:textStyle="bold"
- android:text="Free 1 person at The Grand Duck King"
- android:textColor="@android:color/black"/>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="10dp"
- android:layout_marginStart="10dp"
- android:orientation="horizontal"
- android:padding="5dp">
- <LinearLayout
- android:layout_weight="1"
- android:layout_width="0dp"
- android:gravity="center_vertical"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <ImageView
- android:id="@+id/img_timepromo"
- android:src="@drawable/voucher_valid"
- android:layout_marginTop="5dp"
- android:layout_marginStart="2dp"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
- <TextView
- android:visibility="gone"
- android:id="@+id/tv_promo"
- android:textColor="@color/black_semi_transparent"
- android:textSize="14sp"
- android:layout_marginTop="5dp"
- android:layout_marginStart="10dp"
- android:textStyle="normal"
- android:text="Valid until"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
- <TextView
- android:id="@+id/tv_promo_valid"
- android:textColor="@color/grey500"
- android:textSize="14sp"
- android:layout_marginTop="5dp"
- android:layout_marginStart="10dp"
- android:textStyle="normal"
- android:text="15 January 2019"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
- </LinearLayout>
- <TextView
- android:id="@+id/tv_view_promo"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/btn_change"
- android:layout_marginEnd="10dp"
- android:paddingStart="26dp"
- android:paddingTop="6dp"
- android:paddingEnd="26dp"
- android:paddingBottom="6dp"
- android:textStyle="bold"
- android:text="View"
- android:textColor="@color/white"
- android:textSize="13sp" />
- </LinearLayout>
- </LinearLayout>
- <!--</android.support.v7.widget.CardView>-->
- </LinearLayout>
Add Comment
Please, Sign In to add comment