Advertisement
Guest User

list_product_variant_single_row_view.xml

a guest
May 8th, 2015
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 7.26 KB | None | 0 0
  1.  <?xml version="1.0" encoding="utf-8"?>
  2.     <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.         android:id="@+id/productChildView"
  4.         android:layout_width="wrap_content"
  5.         android:layout_height="wrap_content"
  6.         android:layout_margin="5dp"
  7.         android:gravity="center_vertical"
  8.         android:paddingBottom="5dp"
  9.         android:paddingRight="5dp" >
  10.    
  11.         <LinearLayout
  12.             android:id="@+id/layoutProductStockDiscountView"
  13.             android:layout_width="wrap_content"
  14.             android:layout_height="wrap_content"
  15.             android:layout_alignParentLeft="true"
  16.             android:layout_marginBottom="3dp"
  17.             android:layout_marginTop="3dp"
  18.             android:baselineAligned="false"
  19.             android:gravity="center_vertical"
  20.             android:paddingLeft="5dp"
  21.             android:paddingRight="5dp" >
  22.    
  23.             <TextView
  24.                 android:id="@+id/productStockTextView"
  25.                 android:layout_width="wrap_content"
  26.                 android:layout_height="wrap_content"
  27.                 android:layout_marginRight="4dp"
  28.                 android:singleLine="true"
  29.                 android:text="@string/stock_"
  30.                 android:textColor="@color/gray"
  31.                 android:textSize="@dimen/common_fontsize_small" />
  32.    
  33.             <TextView
  34.                 android:id="@+id/productOfferDiscountTextViewValue"
  35.                 android:layout_width="wrap_content"
  36.                 android:layout_height="wrap_content"
  37.                 android:layout_marginRight="4dp"
  38.                 android:background="@drawable/order_offer_disc_bg"
  39.                 android:gravity="center_horizontal"
  40.                 android:paddingLeft="3dp"
  41.                 android:paddingRight="3dp"
  42.                 android:singleLine="true"
  43.                 android:text="10% off"
  44.                 android:textColor="@android:color/white"
  45.                 android:textSize="@dimen/common_fontsize_small" />
  46.    
  47.             <TextView
  48.                 android:id="@+id/productBundleQtyTextViewValue"
  49.                 android:layout_width="wrap_content"
  50.                 android:layout_height="wrap_content"
  51.                 android:text="@string/quantity"
  52.                 android:textColor="@color/gray"
  53.                 android:textSize="@dimen/common_fontsize_small" />
  54.         </LinearLayout>
  55.    
  56.         <LinearLayout
  57.             android:id="@+id/productEditTextViewAbove"
  58.             android:layout_width="wrap_content"
  59.             android:layout_height="wrap_content"
  60.             android:layout_below="@+id/layoutProductStockDiscountView"
  61.             android:baselineAligned="false"
  62.             android:paddingLeft="5dp"
  63.             android:paddingRight="5dp" >
  64.    
  65.             <TextView
  66.                 android:id="@+id/productPriceTagTitle"
  67.                 android:layout_width="0dp"
  68.                 android:layout_height="0dp" />
  69.    
  70.             <TextView
  71.                 android:id="@+id/productRsLable"
  72.                 android:layout_width="wrap_content"
  73.                 android:layout_height="wrap_content"
  74.                 android:text="@string/rs_"
  75.                 android:textColor="@android:color/holo_blue_dark"
  76.                 android:textSize="@dimen/product_edit_text_size" />
  77.    
  78.             <TextView
  79.                 android:id="@+id/productRateValue"
  80.                 android:layout_width="wrap_content"
  81.                 android:layout_height="wrap_content"
  82.                 android:text="@string/price_"
  83.                 android:textColor="@android:color/holo_blue_dark"
  84.                 android:textSize="@dimen/product_edit_text_size" />
  85.    
  86.             <LinearLayout
  87.                 android:id="@+id/productViewMiddle"
  88.                 android:layout_width="wrap_content"
  89.                 android:layout_height="wrap_content"
  90.                 android:layout_gravity="bottom" >
  91.    
  92.                 <TextView
  93.                     android:id="@+id/productOriginalRateValue"
  94.                     android:layout_width="wrap_content"
  95.                     android:layout_height="wrap_content"
  96.                     android:layout_marginLeft="4dp"
  97.                     android:text="@string/price_"
  98.                     android:textColor="@color/gray"
  99.                     android:textSize="@dimen/product_text_size_small" />
  100.    
  101.                 <TextView
  102.                     android:id="@+id/productDiscountValue"
  103.                     android:layout_width="wrap_content"
  104.                     android:layout_height="wrap_content"
  105.                     android:layout_marginLeft="4dp"
  106.                     android:text="@string/disc"
  107.                     android:textColor="@android:color/holo_red_dark"
  108.                     android:textSize="@dimen/product_text_size_small" />
  109.             </LinearLayout>
  110.         </LinearLayout>
  111.    
  112.         <LinearLayout
  113.             android:id="@+id/productEditTextViewBelow"
  114.             android:layout_width="fill_parent"
  115.             android:layout_height="wrap_content"
  116.             android:layout_below="@+id/productEditTextViewAbove"
  117.             android:baselineAligned="false"
  118.             android:gravity="center_vertical"
  119.             android:paddingLeft="5dp"
  120.             android:paddingRight="5dp" >
  121.    
  122.             <LinearLayout
  123.                 android:id="@+id/productQuantityLayout"
  124.                 android:layout_width="0dp"
  125.                 android:layout_height="wrap_content"
  126.                 android:layout_weight="1" >
  127.    
  128.                 <TextView
  129.                     android:id="@+id/productQuantityTitle"
  130.                     android:layout_width="wrap_content"
  131.                     android:layout_height="match_parent"
  132.                     android:gravity="center"
  133.                     android:text="@string/qty_"
  134.                     android:textColor="@android:color/black"
  135.                     android:textSize="@dimen/product_edit_text_size" />
  136.    
  137.                 <EditText
  138.                     android:id="@+id/productQuantityValue"
  139.                     android:layout_width="match_parent"
  140.                     android:layout_height="wrap_content"
  141.                     android:layout_marginRight="5dp"
  142.                     android:hint="@string/hint_quantity"
  143.                     android:imeOptions="actionDone"
  144.                     android:inputType="numberDecimal"
  145.                     android:maxLength="8"
  146.                     android:textColor="@android:color/black"
  147.                     android:textSize="@dimen/product_edit_text_size" />
  148.             </LinearLayout>
  149.    
  150.             <LinearLayout
  151.                 android:id="@+id/productAmountLayout"
  152.                 android:layout_width="0dp"
  153.                 android:layout_height="wrap_content"
  154.                 android:layout_weight="1" >
  155.    
  156.                 <TextView
  157.                     android:id="@+id/productAmountValue"
  158.                     android:layout_width="match_parent"
  159.                     android:layout_height="wrap_content"
  160.                     android:lines="1"
  161.                     android:maxLines="1"
  162.                     android:text="@string/amt"
  163.                     android:textColor="@android:color/black"
  164.                     android:textSize="@dimen/product_edit_text_size" />
  165.             </LinearLayout>
  166.         </LinearLayout>
  167.    
  168.     </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement