design part 2

This commit is contained in:
cimenmus
2017-11-03 00:20:16 +03:00
parent cc8a845098
commit 2002a3c7f0
27 changed files with 439 additions and 145 deletions

View File

@@ -18,30 +18,38 @@
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="12dp">
android:background="@color/cart_dialog_background">
<ImageView
android:id="@+id/productImageView"
android:layout_width="144dp"
android:layout_height="144dp"
android:layout_marginTop="-48dp"
android:layout_marginBottom="36dp"
android:layout_marginLeft="12dp"
android:layout_marginStart="12dp"
android:layout_marginRight="12dp"
android:layout_marginEnd="12dp"
android:layout_gravity="center_horizontal" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="144dp"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginRight="12dp"
android:layout_toRightOf="@+id/productImageView"
android:layout_toEndOf="@+id/productImageView">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="48dp">
android:layout_height="48dp"
android:background="@drawable/background_cart_dialog_price">
<TextView
android:id="@+id/productNameTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@color/navigation_drawer_background"
android:textColor="@color/navy"
android:textSize="18sp"
android:text="Pizza Formaggio"
fontPath="fonts/Quicksand-Bold.ttf"
@@ -60,7 +68,7 @@
android:id="@+id/productPriceTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@color/navigation_drawer_background"
android:textColor="@color/red"
android:text="CHF 25.00"
android:textSize="16sp"
android:paddingBottom="12dp"
@@ -75,23 +83,17 @@
</RelativeLayout>
<Button
android:id="@+id/addToCartButton"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginLeft="12dp"
android:layout_marginStart="12dp"
android:text="@string/add_to_cart"
style="@style/PizzalinkButtonWithoutMargin" />
</LinearLayout>
</RelativeLayout>
<View
<Button
android:id="@+id/addToCartButton"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@drawable/shadow"/>
android:layout_height="48dp"
android:layout_marginTop="-24dp"
android:text="@string/add_to_cart"
style="@style/PizzalinkRedButton" />
<LinearLayout
android:layout_width="match_parent"
@@ -119,9 +121,9 @@
android:paddingRight="12dp"
android:paddingEnd="12dp"
android:textSize="16sp"
android:textColor="@color/navigation_drawer_background"/>
android:textColor="@color/navy"/>
<LinearLayout
<RelativeLayout
android:id="@+id/ProductCountLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -133,18 +135,24 @@
android:layout_width="24dp"
android:layout_height="24dp"
android:padding="4dp"
android:layout_gravity="center_vertical"
android:src="@drawable/ic_decrease"
android:layout_marginRight="4dp"
android:layout_marginEnd="4dp"/>
android:layout_marginEnd="4dp"
android:layout_alignParentBottom="true"/>
<TextView
android:id="@+id/productCountTextView"
android:layout_width="wrap_content"
android:layout_width="24dp"
android:gravity="center"
android:layout_height="wrap_content"
android:text="1"
android:textSize="18sp"
android:layout_gravity="center_vertical"
android:includeFontPadding="false"
android:lineSpacingExtra="0dp"
android:textSize="24sp"
fontPath="fonts/Quicksand-Bold.ttf"
android:layout_toRightOf="@+id/deccreaseProductCountImageView"
android:layout_toEndOf="@+id/deccreaseProductCountImageView"
android:layout_alignParentBottom="true"
android:textColor="@color/navy"/>
<ImageView
@@ -153,16 +161,23 @@
android:layout_height="24dp"
android:padding="4dp"
android:layout_gravity="center_vertical"
android:layout_toRightOf="@+id/productCountTextView"
android:layout_toEndOf="@+id/productCountTextView"
android:src="@drawable/ic_increase"
android:layout_alignParentBottom="true"
android:layout_marginLeft="4dp"
android:layout_marginStart="4dp" />
</LinearLayout>
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@drawable/shadow"/>
android:layout_height="0.5dp"
android:background="@color/navy"
android:layout_marginLeft="12dp"
android:layout_marginStart="12dp"
android:layout_marginRight="12dp"
android:layout_marginEnd="12dp"/>
<TextView
android:id="@+id/radioRecyclerHeaderTextView"
@@ -173,7 +188,7 @@
android:visibility="gone"
android:text="Size"
android:textSize="16sp"
android:textColor="@color/navigation_drawer_background"/>
android:textColor="@color/navy"/>
<android.support.v7.widget.RecyclerView
android:id="@+id/radioRecyclerView"
@@ -183,8 +198,12 @@
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@drawable/shadow"/>
android:layout_height="0.5dp"
android:background="@color/navy"
android:layout_marginLeft="12dp"
android:layout_marginStart="12dp"
android:layout_marginRight="12dp"
android:layout_marginEnd="12dp"/>
<TextView
android:id="@+id/checkboxRecyclerHeaderTextView"
@@ -194,7 +213,7 @@
android:padding="12dp"
android:visibility="gone"
android:textSize="16sp"
android:textColor="@color/navigation_drawer_background"/>
android:textColor="@color/navy"/>
<android.support.v7.widget.RecyclerView
android:id="@+id/checkboxRecyclerView"