Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.design.widget.CoordinatorLayout 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="match_parent"
- android:background="@android:color/white"
- android:id="@+id/cordinatorLayout"
- android:orientation="vertical"
- tools:context="codelabs.ambarrukmo.activity.PromoDetailMyCardActivity">
- <!--<include-->
- <!--layout="@layout/header_layout_promodetail_2"/>-->
- <android.support.design.widget.AppBarLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <android.support.design.widget.CollapsingToolbarLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:contentScrim="@color/white"
- app:expandedTitleGravity="top"
- app:layout_scrollFlags="scroll|exitUntilCollapsed|snap">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/white"
- android:orientation="vertical">
- <ImageView
- android:id="@+id/image_center"
- android:layout_width="match_parent"
- android:layout_height="@dimen/_150sdp"
- android:layout_marginBottom="@dimen/_1sdp"
- android:adjustViewBounds="false"
- android:scaleType="centerCrop"
- android:src="@color/grey500"
- app:layout_collapseMode="parallax"
- app:layout_collapseParallaxMultiplier="0.5"/>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <ImageView
- android:id="@+id/image1"
- android:layout_width="0dp"
- android:layout_weight="1"
- android:layout_height="@dimen/_50sdp"
- android:adjustViewBounds="true"
- android:scaleType="centerCrop"
- android:layout_marginEnd="@dimen/_1sdp"
- android:src="@color/grey500"/>
- <ImageView
- android:id="@+id/image2"
- android:layout_width="0dp"
- android:layout_weight="1"
- android:layout_height="@dimen/_50sdp"
- android:adjustViewBounds="true"
- android:scaleType="centerCrop"
- android:layout_marginEnd="@dimen/_1sdp"
- android:src="@color/grey500"/>
- <ImageView
- android:id="@+id/image3"
- android:layout_width="0dp"
- android:layout_weight="1"
- android:layout_height="@dimen/_50sdp"
- android:adjustViewBounds="true"
- android:scaleType="centerCrop"
- android:layout_marginEnd="@dimen/_1sdp"
- android:src="@color/grey500"/>
- <FrameLayout
- android:layout_width="0dp"
- android:layout_height="@dimen/_50sdp"
- android:layout_weight="1"
- android:alpha="0.5"
- android:background="@android:color/background_dark">
- <ImageView
- android:id="@+id/image4"
- android:scaleType="centerCrop"
- android:adjustViewBounds="true"
- android:layout_width="match_parent"
- android:layout_height="match_parent" />
- <TextView
- android:layout_width="match_parent"
- android:layout_gravity="center"
- android:layout_height="match_parent"
- android:alpha="0.5"
- android:background="@android:color/background_dark"
- android:gravity="center"
- android:text="See All Photos"
- android:fontFamily="@font/poppins_regular"
- android:textSize="@dimen/_8sdp"
- android:textColor="@android:color/white" />
- </FrameLayout>
- </LinearLayout>
- </LinearLayout>
- <android.support.v7.widget.Toolbar
- android:id="@+id/toolbar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:layout_collapseMode="pin"
- android:layout_marginTop="@dimen/_20sdp">
- <ImageView
- android:id="@+id/iv_back"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/left_white"/>
- </android.support.v7.widget.Toolbar>
- </android.support.design.widget.CollapsingToolbarLayout>
- </android.support.design.widget.AppBarLayout>
- <android.support.v4.widget.NestedScrollView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:layout_behavior="android.support.design.widget.AppBarLayout$ScrollingViewBehavior">
- <LinearLayout
- android:id="@+id/content"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:layout_marginBottom="@dimen/_50sdp">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginHorizontal="@dimen/_15sdp"
- android:orientation="vertical">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginTop="10dp"
- android:background="@android:color/transparent"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:padding="0dp">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <TextView
- android:id="@+id/store_name"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="@dimen/_5sdp"
- android:text="Store Name"
- android:fontFamily="@font/poppins_medium"
- android:textStyle="bold" />
- <android.support.v7.widget.AppCompatRatingBar
- style="@style/Widget.AppCompat.RatingBar.Small"
- android:id="@+id/rating"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:numStars="5"
- android:rating="3"
- android:progressTint="@color/yellow"
- android:layout_gravity="center"/>
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginTop="10dp"
- android:background="@android:color/transparent"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:padding="0dp">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="0dp">
- <TextView
- android:id="@+id/tv_name_category"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/btn_border_catg"
- android:fontFamily="@font/poppins_regular"
- android:paddingStart="15dp"
- android:paddingTop="5dp"
- android:paddingEnd="15dp"
- android:paddingBottom="5dp"
- android:text="test"
- android:textColor="@color/dot_dark_screen2"
- android:textSize="13sp" />
- <TextView
- android:id="@+id/tv_value"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignTop="@+id/tv_name_category"
- android:layout_alignBottom="@+id/tv_name_category"
- android:fontFamily="@font/poppins_regular"
- android:layout_alignParentEnd="true"
- android:layout_marginStart="10dp"
- android:layout_marginEnd="10dp"
- android:gravity="center_vertical"
- android:src="@drawable/ic_star"
- android:text="8.3"
- android:textColor="@color/dot_dark_screen2"
- android:textSize="21sp"
- android:textStyle="bold" />
- </RelativeLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginTop="10dp"
- android:background="@android:color/transparent"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:padding="0dp">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="5dp"
- android:layout_marginEnd="0dp"
- android:padding="0dp">
- <TextView
- android:id="@+id/tv_address"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:fontFamily="@font/poppins_medium"
- android:text="Ambarrukmo plaza"
- android:textColor="@color/half_black"
- android:textSize="13sp" />
- <TextView
- android:id="@+id/tv_value_catg"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignTop="@+id/tv_address"
- android:layout_alignBottom="@+id/tv_address"
- android:fontFamily="@font/poppins_regular"
- android:layout_alignParentEnd="true"
- android:layout_marginStart="10dp"
- android:layout_marginEnd="10dp"
- android:gravity="center_vertical"
- android:text="Impressive"
- android:textColor="@color/dot_dark_screen2"
- android:textSize="14sp"
- android:textStyle="bold" />
- </RelativeLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginTop="30dp"
- android:background="@android:color/transparent"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:padding="5dp">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <TextView
- android:id="@+id/tv_title_review"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:gravity="center"
- android:fontFamily="@font/poppins_italic"
- android:text="Guest talked about comfortable place"
- android:textColor="@color/grey500"
- android:textSize="12sp" />
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:id="@+id/card_viewslider"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:layout_margin="0dp">
- <RelativeLayout
- android:id="@+id/rvPromoBanner"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <FrameLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <!--<android.support.v4.view.ViewPager-->
- <!--android:id="@+id/viewPager"-->
- <!--android:layout_width="wrap_content"-->
- <!--android:layout_height="match_parent" />-->
- <android.support.v7.widget.RecyclerView
- android:id="@+id/rv_testimonial"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:nestedScrollingEnabled="false">
- </android.support.v7.widget.RecyclerView>
- </FrameLayout>
- <ImageView
- android:id="@+id/next"
- android:layout_width="40dp"
- android:layout_height="40dp"
- android:background="@drawable/ic_chevron_right"
- android:layout_marginEnd="10dp"
- android:backgroundTint="@color/yellow"
- android:layout_centerInParent="true"
- android:layout_alignParentRight="true"
- android:layout_alignParentEnd="true"/>
- <ImageView
- android:id="@+id/previous"
- android:layout_width="40dp"
- android:layout_height="40dp"
- android:layout_marginStart="10dp"
- android:backgroundTint="@color/yellow"
- android:background="@drawable/ic_chevron_left"
- android:layout_alignParentLeft="true"
- android:layout_centerInParent="true"
- android:layout_alignParentStart="true"
- android:layout_alignTop="@+id/next"/>
- </RelativeLayout>
- <!--</LinearLayout>-->
- <!--</LinearLayout>-->
- </LinearLayout>
- <!--<LinearLayout-->
- <!--android:layout_width="match_parent"-->
- <!--android:layout_height="match_parent"-->
- <!--android:layout_marginTop="0dp"-->
- <!--android:background="@android:color/transparent"-->
- <!--android:gravity="center_vertical"-->
- <!--android:orientation="horizontal"-->
- <!--android:padding="5dp">-->
- <!--<LinearLayout-->
- <!--android:layout_width="match_parent"-->
- <!--android:layout_height="match_parent"-->
- <!--android:orientation="vertical">-->
- <!--<TextView-->
- <!--android:id="@+id/tv_name_review"-->
- <!--android:layout_width="match_parent"-->
- <!--android:layout_height="match_parent"-->
- <!--android:gravity="center"-->
- <!--android:text="H.Saeb Riyadh"-->
- <!--android:textColor="@color/grey500"-->
- <!--android:textSize="13sp"-->
- <!--android:textStyle="bold" />-->
- <!--</LinearLayout>-->
- <!--</LinearLayout>-->
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginTop="30dp"
- android:background="@android:color/transparent"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:padding="10dp">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <TextView
- android:id="@+id/tv_notice"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:gravity="center"
- android:fontFamily="@font/poppins_regular"
- android:text="Restaurant Description"
- android:textColor="@android:color/black"
- android:textSize="14sp"
- android:textStyle="bold" />
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginStart="0dp"
- android:layout_marginTop="0dp"
- android:layout_marginEnd="0dp"
- android:background="@android:color/transparent"
- android:orientation="horizontal"
- android:padding="5dp">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <TextView
- android:id="@+id/description"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:gravity="left"
- android:fontFamily="@font/poppins_regular"
- android:text="@string/terms"
- android:textColor="@color/black_semi_transparent"
- android:textSize="13sp" />
- </LinearLayout>
- </LinearLayout>
- </LinearLayout>
- </LinearLayout>
- </android.support.v4.widget.NestedScrollView>
- <FrameLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:nestedScrollingEnabled="false"
- android:background="?attr/selectableItemBackgroundBorderless"
- android:layout_gravity="bottom">
- <Button
- android:id="@+id/btn_get_voucher"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_gravity="center_horizontal"
- android:layout_marginStart="20dp"
- android:layout_marginEnd="20dp"
- android:layout_marginTop="10dp"
- android:layout_marginBottom="20dp"
- android:background="@drawable/btn_change"
- android:paddingStart="40dp"
- android:paddingEnd="40dp"
- android:text="GET VOUCHER"
- android:fontFamily="@font/poppins_medium"
- android:textAllCaps="false"
- android:textColor="@android:color/white"
- android:textSize="13sp"
- android:textStyle="bold" />
- </FrameLayout>
- </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement