Advertisement
Guest User

Untitled

a guest
Mar 13th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 6.88 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3.     <com.softdesign.mvpauth.ui.screens.product.ProductView
  4.         xmlns:android="http://schemas.android.com/apk/res/android"
  5.         xmlns:app="http://schemas.android.com/apk/res-auto"
  6.         android:layout_width="match_parent"
  7.         android:layout_height="match_parent"
  8.         android:orientation="vertical">
  9.  
  10.         <android.support.v7.widget.CardView
  11.             android:id="@+id/product_card"
  12.             style="@style/CustomCard.ProductCard">
  13.  
  14.             <LinearLayout
  15.                 android:layout_width="match_parent"
  16.                 android:layout_height="match_parent"
  17.                 android:gravity="center"
  18.                 android:orientation="vertical">
  19.  
  20.                 <ImageView
  21.                     android:layout_width="96dp"
  22.                     android:layout_height="96dp"
  23.                     app:srcCompat="@drawable/ic_shopping_basket_black_24dp"/>
  24.  
  25.                 <TextView
  26.                     style="@style/ProductText.ProductTitle"
  27.                     android:text="Товар добавлен в корзину"
  28.                     android:textColor="@color/colorPrimaryDark"/>
  29.  
  30.             </LinearLayout>
  31.  
  32.             <LinearLayout
  33.                 android:id="@+id/product_wrapper"
  34.                 android:layout_width="match_parent"
  35.                 android:layout_height="wrap_content"
  36.                 android:background="@android:color/white"
  37.                 android:foreground="@color/transparent"
  38.                 android:orientation="vertical">
  39.  
  40.                 <LinearLayout
  41.                     android:layout_width="match_parent"
  42.                     android:layout_height="wrap_content"
  43.                     android:orientation="vertical"
  44.                     android:paddingBottom="@dimen/padding_8dp"
  45.                     android:paddingLeft="@dimen/marginTop_16dp"
  46.                     android:paddingRight="@dimen/marginTop_16dp"
  47.                     android:paddingTop="@dimen/marginTop_16dp">
  48.  
  49.  
  50.                     <TextView
  51.                         android:id="@+id/product_name_txt"
  52.                         style="@style/ProductText.ProductTitle"
  53.                         android:text="1"/>
  54.  
  55.                     <TextView
  56.                         android:id="@+id/product_description_txt"
  57.                         style="@style/ProductText.ProductDescription"
  58.                         android:text="1"/>
  59.                 </LinearLayout>
  60.  
  61.                 <com.softdesign.mvpauth.utils.AspectRatioImage
  62.                     android:id="@+id/product_image"
  63.                     android:layout_width="match_parent"
  64.                     android:layout_height="180dp"
  65.                     android:layout_marginLeft="16dp"
  66.                     android:layout_marginRight="16dp"
  67.                     android:scaleType="centerCrop"
  68.                     app:aspect_ratio="1.78"/>
  69.  
  70.                 <View
  71.                     style="@style/LL_crop"/>
  72.  
  73.                 <LinearLayout
  74.                     android:id="@+id/product_vav_wrap"
  75.                     android:layout_width="match_parent"
  76.                     android:layout_height="match_parent"
  77.                     android:orientation="horizontal"
  78.                     android:padding="16dp">
  79.  
  80.                     <LinearLayout
  81.                         android:layout_width="match_parent"
  82.                         android:layout_height="match_parent"
  83.                         android:layout_weight="1"
  84.                         android:gravity="center"
  85.                         android:orientation="vertical">
  86.  
  87.                         <TextView
  88.                             style="@style/ProductText.LabelPrice"
  89.                             android:text="Количество"/>
  90.  
  91.                         <LinearLayout
  92.                             android:layout_width="match_parent"
  93.                             android:layout_height="wrap_content"
  94.                             android:gravity="center"
  95.                             android:orientation="horizontal">
  96.  
  97.                             <ImageButton
  98.                                 android:id="@+id/minus_btn"
  99.                                 style="@style/CountBtn"
  100.                                 app:srcCompat="@drawable/ic_remove_black_24dp"/>
  101.  
  102.                             <TextView
  103.                                 android:id="@+id/product_count_txt"
  104.                                 style="@style/ProductText.ValuePrice"
  105.                                 android:text="1"/>
  106.  
  107.                             <ImageButton
  108.                                 android:id="@+id/plus_btn"
  109.                                 style="@style/CountBtn"
  110.                                 app:srcCompat="@drawable/ic_add_black_24dp"/>
  111.  
  112.  
  113.                         </LinearLayout>
  114.                     </LinearLayout>
  115.  
  116.                     <LinearLayout
  117.                         android:layout_width="match_parent"
  118.                         android:layout_height="match_parent"
  119.                         android:layout_weight="1"
  120.                         android:gravity="center"
  121.                         android:orientation="vertical">
  122.  
  123.                         <TextView
  124.                             style="@style/ProductText.LabelPrice"
  125.                             android:text="Стоимость"/>
  126.  
  127.                         <TextView
  128.                             android:id="@+id/product_price_txt"
  129.                             style="@style/ProductText.ValuePrice"
  130.                             android:text="234234"/>
  131.  
  132.                     </LinearLayout>
  133.                 </LinearLayout>
  134.  
  135.                 <RelativeLayout
  136.                     android:layout_width="match_parent"
  137.                     android:layout_height="wrap_content"
  138.                     android:paddingLeft="8dp"
  139.                     android:paddingRight="16dp">
  140.  
  141.                     <CheckBox
  142.                         android:id="@+id/favorite_btn"
  143.                         android:layout_width="wrap_content"
  144.                         android:layout_height="wrap_content"
  145.                         android:layout_alignParentRight="true"
  146.                         android:layout_centerVertical="true"
  147.                         android:button="@drawable/favorite_selector_btn"/>
  148.  
  149.                     <Button
  150.                         android:id="@+id/show_more_btn"
  151.                         style="?attr/borderlessButtonStyle"
  152.                         android:layout_width="wrap_content"
  153.                         android:layout_height="wrap_content"
  154.                         android:layout_alignParentLeft="true"
  155.                         android:layout_alignParentTop="true"
  156.                         android:text="Подробнее"
  157.                         android:textAllCaps="true"
  158.                         android:textColor="@color/colorAccent"/>
  159.                 </RelativeLayout>
  160.             </LinearLayout>
  161.  
  162.         </android.support.v7.widget.CardView>
  163.     </com.softdesign.mvpauth.ui.screens.product.ProductView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement