Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <com.softdesign.mvpauth.ui.screens.product.ProductView
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <android.support.v7.widget.CardView
- android:id="@+id/product_card"
- style="@style/CustomCard.ProductCard">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:gravity="center"
- android:orientation="vertical">
- <ImageView
- android:layout_width="96dp"
- android:layout_height="96dp"
- app:srcCompat="@drawable/ic_shopping_basket_black_24dp"/>
- <TextView
- style="@style/ProductText.ProductTitle"
- android:text="Товар добавлен в корзину"
- android:textColor="@color/colorPrimaryDark"/>
- </LinearLayout>
- <LinearLayout
- android:id="@+id/product_wrapper"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@android:color/white"
- android:foreground="@color/transparent"
- android:orientation="vertical">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:paddingBottom="@dimen/padding_8dp"
- android:paddingLeft="@dimen/marginTop_16dp"
- android:paddingRight="@dimen/marginTop_16dp"
- android:paddingTop="@dimen/marginTop_16dp">
- <TextView
- android:id="@+id/product_name_txt"
- style="@style/ProductText.ProductTitle"
- android:text="1"/>
- <TextView
- android:id="@+id/product_description_txt"
- style="@style/ProductText.ProductDescription"
- android:text="1"/>
- </LinearLayout>
- <com.softdesign.mvpauth.utils.AspectRatioImage
- android:id="@+id/product_image"
- android:layout_width="match_parent"
- android:layout_height="180dp"
- android:layout_marginLeft="16dp"
- android:layout_marginRight="16dp"
- android:scaleType="centerCrop"
- app:aspect_ratio="1.78"/>
- <View
- style="@style/LL_crop"/>
- <LinearLayout
- android:id="@+id/product_vav_wrap"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="horizontal"
- android:padding="16dp">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:gravity="center"
- android:orientation="vertical">
- <TextView
- style="@style/ProductText.LabelPrice"
- android:text="Количество"/>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center"
- android:orientation="horizontal">
- <ImageButton
- android:id="@+id/minus_btn"
- style="@style/CountBtn"
- app:srcCompat="@drawable/ic_remove_black_24dp"/>
- <TextView
- android:id="@+id/product_count_txt"
- style="@style/ProductText.ValuePrice"
- android:text="1"/>
- <ImageButton
- android:id="@+id/plus_btn"
- style="@style/CountBtn"
- app:srcCompat="@drawable/ic_add_black_24dp"/>
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:gravity="center"
- android:orientation="vertical">
- <TextView
- style="@style/ProductText.LabelPrice"
- android:text="Стоимость"/>
- <TextView
- android:id="@+id/product_price_txt"
- style="@style/ProductText.ValuePrice"
- android:text="234234"/>
- </LinearLayout>
- </LinearLayout>
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingLeft="8dp"
- android:paddingRight="16dp">
- <CheckBox
- android:id="@+id/favorite_btn"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:button="@drawable/favorite_selector_btn"/>
- <Button
- android:id="@+id/show_more_btn"
- style="?attr/borderlessButtonStyle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_alignParentTop="true"
- android:text="Подробнее"
- android:textAllCaps="true"
- android:textColor="@color/colorAccent"/>
- </RelativeLayout>
- </LinearLayout>
- </android.support.v7.widget.CardView>
- </com.softdesign.mvpauth.ui.screens.product.ProductView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement