Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:orientation="vertical"
- xmlns:card_view="http://schemas.android.com/tools"
- tools:context="codelabs.ambarrukmo.fragment.HomeFragment">
- <FrameLayout
- android:id="@+id/container_content"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <!--<include-->
- <!--layout="@layout/error"/>-->
- <!--<include-->
- <!--layout="@layout/loading"/>-->
- <!--<android.support.v4.widget.SwipeRefreshLayout-->
- <!--android:id="@+id/swipe_container"-->
- <!--android:layout_width="match_parent"-->
- <!--android:layout_height="match_parent">-->
- <android.support.v4.widget.NestedScrollView
- android:id="@+id/container_content_nested"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="10dp"
- android:background="@android:color/white"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:padding="10dp">
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="vertical">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="0dp">
- <ImageView
- android:visibility="gone"
- android:id="@+id/img_icpoints"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/ic_mypoints"/>
- <TextView
- android:id="@+id/tv_mypoints"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignTop="@+id/img_icpoints"
- android:layout_alignBottom="@+id/img_icpoints"
- android:layout_marginStart="10dp"
- android:layout_toRightOf="@+id/img_icpoints"
- android:gravity="center_vertical"
- android:text="My Points"
- android:fontFamily="@font/poppins_medium"
- android:textColor="@android:color/black"
- android:textSize="13sp" />
- <TextView
- android:id="@+id/tv_points"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignTop="@+id/img_icpoints"
- android:layout_alignBottom="@+id/img_icpoints"
- android:layout_alignParentEnd="true"
- android:gravity="center"
- android:paddingLeft="8dp"
- android:paddingRight="8dp"
- android:fontFamily="@font/poppins_medium"
- android:text="2000 Points"
- android:textColor="@android:color/holo_red_light"
- android:textSize="14sp"
- android:textStyle="bold" />
- </RelativeLayout>
- </LinearLayout>
- </LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="2dp"
- android:layout_marginTop="5dp"
- android:background="@color/dash" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="0dp"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:padding="0dp">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <LinearLayout
- android:id="@+id/card_viewslider"
- android:layout_width="match_parent"
- android:layout_height="250dp"
- 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" />
- <LinearLayout
- android:id="@+id/indicator"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="bottom"
- android:orientation="horizontal"
- android:layout_alignBottom="@id/viewPager"
- android:layout_centerHorizontal="true"
- android:visibility="visible"
- android:layout_marginBottom="10dp" >
- </LinearLayout>
- </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/colorPrimary"
- 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/colorPrimary"
- android:background="@drawable/ic_chevron_left"
- android:layout_alignParentLeft="true"
- android:layout_centerInParent="true"
- android:layout_alignParentStart="true"
- android:layout_alignTop="@+id/next"/>
- </RelativeLayout>
- <ImageView
- android:visibility="gone"
- android:id="@+id/img_bannertest"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:clickable="true"
- android:paddingTop="10dp"
- android:paddingBottom="10dp"
- android:src="@drawable/placeholder220" />
- </LinearLayout>
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="0dp"
- android:background="@android:color/white"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:paddingHorizontal="@dimen/_20sdp"
- android:padding="0dp">
- <android.support.v7.widget.RecyclerView
- android:id="@+id/rv_list_promo_category"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:nestedScrollingEnabled="false">
- </android.support.v7.widget.RecyclerView>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="15dp"
- android:background="@android:color/white"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:padding="0dp">
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="horizontal">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="15dp">
- <TextView
- android:id="@+id/tv_merchant"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="What's On"
- android:textStyle="bold"
- android:fontFamily="@font/poppins_light"
- android:textColor="@android:color/black"
- android:textSize="13sp" />
- <View
- android:layout_width="35dp"
- android:layout_height="3dp"
- android:layout_marginTop="25dp"
- android:background="@color/colorPrimaryDark" />
- <TextView
- android:id="@+id/tv_view_all_merch"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="View all"
- android:textStyle="normal"
- android:fontFamily="@font/poppins_medium"
- android:padding="5dp"
- android:layout_alignParentEnd="true"
- android:textColor="@color/blue"
- android:textSize="13sp" />
- </RelativeLayout>
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="0dp"
- android:background="@android:color/white"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:padding="0dp">
- <android.support.v7.widget.RecyclerView
- android:id="@+id/rv_list_merchant"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:nestedScrollingEnabled="false">
- </android.support.v7.widget.RecyclerView>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="10dp"
- android:background="@color/white"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:padding="10dp">
- <LinearLayout
- android:visibility="gone"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="horizontal">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="0dp">
- <TextView
- android:id="@+id/tv_list_promo1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Dinner with your loved ones"
- android:textColor="@android:color/black"
- android:textStyle="bold"
- android:textSize="13sp" />
- <View
- android:layout_width="35dp"
- android:layout_height="3dp"
- android:layout_marginTop="20dp"
- android:background="@color/colorPrimaryDark"/>
- <TextView
- android:id="@+id/tv_viewall_merchant"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentEnd="true"
- android:text="@string/viewall"
- android:textColor="@color/blue"
- android:textSize="13sp" />
- </RelativeLayout>
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:visibility="gone"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="0dp"
- android:background="@android:color/white"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:padding="10dp">
- <android.support.v7.widget.RecyclerView
- android:id="@+id/rv_list_promo_home"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:nestedScrollingEnabled="false">
- </android.support.v7.widget.RecyclerView>
- </LinearLayout>
- <LinearLayout
- android:visibility="gone"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="10dp"
- android:background="@color/white"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:padding="10dp">
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="horizontal">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="0dp">
- <TextView
- android:id="@+id/tv_promo2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Heart-hearted shopping"
- android:textColor="@android:color/black"
- android:textStyle="bold"
- android:textSize="13sp" />
- <View
- android:layout_width="35dp"
- android:layout_height="3dp"
- android:layout_marginTop="20dp"
- android:background="@color/colorPrimaryDark"/>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentEnd="true"
- android:text="@string/viewall"
- android:textColor="@color/blue"
- android:textSize="13sp" />
- </RelativeLayout>
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:visibility="gone"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="0dp"
- android:background="@android:color/white"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:padding="10dp">
- <android.support.v7.widget.RecyclerView
- android:id="@+id/rv_list_promo_home2"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:nestedScrollingEnabled="false">
- </android.support.v7.widget.RecyclerView>
- </LinearLayout>
- <LinearLayout
- android:visibility="gone"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="10dp"
- android:background="@color/white"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:padding="10dp">
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="horizontal">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="0dp">
- <TextView
- android:id="@+id/tv_bottom_banner"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Promo of the month"
- android:textColor="@android:color/black"
- android:textSize="13sp" />
- <View
- android:layout_width="35dp"
- android:layout_height="3dp"
- android:layout_marginTop="20dp"
- android:background="@color/colorPrimaryDark"/>
- <!--<TextView-->
- <!--android:layout_width="wrap_content"-->
- <!--android:layout_height="wrap_content"-->
- <!--android:layout_alignParentEnd="true"-->
- <!--android:text="@string/viewall"-->
- <!--android:textAppearance="?android:attr/textAppearance"-->
- <!--android:textColor="@color/blue"-->
- <!--android:textSize="13sp" />-->
- </RelativeLayout>
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="0dp"
- android:background="@android:color/white"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:padding="10dp">
- <!--<android.support.v7.widget.RecyclerView-->
- <!--android:id="@+id/rv_list_promo_home2"-->
- <!--android:layout_width="match_parent"-->
- <!--android:layout_height="wrap_content"-->
- <!--android:nestedScrollingEnabled="false">-->
- <!--</android.support.v7.widget.RecyclerView>-->
- <ImageView
- android:id="@+id/img_top_promo"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:scaleType="centerCrop"
- android:adjustViewBounds="true"
- android:src="@drawable/placeholder220"
- android:layout_marginBottom="10dp"
- android:layout_marginTop="0dp"/>
- </LinearLayout>
- <!--<LinearLayout-->
- <!--android:layout_width="match_parent"-->
- <!--android:layout_height="wrap_content"-->
- <!--android:layout_marginTop="0dp"-->
- <!--android:background="@android:color/white"-->
- <!--android:gravity="center_vertical"-->
- <!--android:orientation="horizontal"-->
- <!--android:padding="10dp">-->
- <!--<android.support.v7.widget.CardView-->
- <!--android:layout_width="75dp"-->
- <!--android:layout_height="85dp"-->
- <!--android:layout_margin="4dp"-->
- <!--card_view:cardBackgroundColor="@color/white_pressed"-->
- <!--card_view:cardCornerRadius="2dp"-->
- <!--card_view:cardUseCompatPadding="false"-->
- <!--card_view:cardElevation="5dp">-->
- <!--<ImageView-->
- <!--android:layout_width="65dp"-->
- <!--android:layout_height="70dp"-->
- <!--android:layout_gravity="center"-->
- <!--android:contentDescription="@string/app_name"-->
- <!--android:scaleType="fitXY"-->
- <!--android:src="@drawable/img_merchant_1"/>-->
- <!--</android.support.v7.widget.CardView>-->
- <!--<android.support.v7.widget.CardView-->
- <!--android:layout_width="75dp"-->
- <!--android:layout_height="85dp"-->
- <!--android:layout_margin="4dp"-->
- <!--card_view:cardBackgroundColor="@color/white_pressed"-->
- <!--card_view:cardCornerRadius="2dp"-->
- <!--card_view:cardUseCompatPadding="false"-->
- <!--card_view:cardElevation="5dp">-->
- <!--<ImageView-->
- <!--android:layout_width="65dp"-->
- <!--android:layout_height="70dp"-->
- <!--android:layout_gravity="center"-->
- <!--android:contentDescription="@string/app_name"-->
- <!--android:scaleType="fitXY"-->
- <!--android:src="@drawable/img_merchant_2"/>-->
- <!--</android.support.v7.widget.CardView>-->
- <!--<android.support.v7.widget.CardView-->
- <!--android:layout_width="75dp"-->
- <!--android:layout_height="85dp"-->
- <!--android:layout_margin="4dp"-->
- <!--card_view:cardBackgroundColor="@color/white_pressed"-->
- <!--card_view:cardCornerRadius="2dp"-->
- <!--card_view:cardUseCompatPadding="false"-->
- <!--card_view:cardElevation="5dp">-->
- <!--<ImageView-->
- <!--android:layout_width="65dp"-->
- <!--android:layout_height="70dp"-->
- <!--android:layout_gravity="center"-->
- <!--android:contentDescription="@string/app_name"-->
- <!--android:scaleType="fitXY"-->
- <!--android:src="@drawable/img_merchant_3"/>-->
- <!--</android.support.v7.widget.CardView>-->
- <!--</LinearLayout>-->
- </LinearLayout>
- </android.support.v4.widget.NestedScrollView>
- <!--</android.support.v4.widget.SwipeRefreshLayout>-->
- </FrameLayout>
- </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement