Guest User

Untitled

a guest
Jul 12th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:orientation="vertical">
  6.  
  7. <include layout="@layout/toolbar_layout" />
  8.  
  9. <android.support.v7.widget.RecyclerView
  10. android:id="@+id/recyclerViewCart"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:layout_margin="10dp"/>
  14.  
  15. <LinearLayout
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:layout_gravity="bottom" //----> not working
  19. android:orientation="horizontal">
  20.  
  21. <LinearLayout
  22. android:layout_width="0dp"
  23. android:layout_height="wrap_content"
  24. android:layout_margin="20dp"
  25. android:layout_weight="1"
  26. android:orientation="vertical">
  27.  
  28. <TextView
  29. android:layout_width="match_parent"
  30. android:layout_height="wrap_content"
  31. android:text="@string/total"
  32. android:textStyle="bold" />
  33.  
  34. <TextView
  35. android:id="@+id/textViewTotalPrice"
  36. android:layout_width="match_parent"
  37. android:layout_height="wrap_content"
  38. android:text="$23.00" />
  39. </LinearLayout>
  40.  
  41. <Button
  42. android:id="@+id/buttonCheckout"
  43. android:layout_width="0dp"
  44. android:layout_height="wrap_content"
  45. android:layout_gravity="center"
  46. android:layout_marginEnd="20dp"
  47. android:layout_weight="1"
  48. android:background="@color/colorPrimary"
  49. android:drawableEnd="@drawable/ic_arrow_forward"
  50. android:paddingEnd="15dp"
  51. android:text="@string/checkout"
  52. android:textColor="@color/white" />
  53. </LinearLayout>
Add Comment
Please, Sign In to add comment