Advertisement
ricky_yulianto

Untitled

Apr 9th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.14 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. tools:context="codelabs.ambarrukmo.activity.PaymentMethodActivity">
  8.  
  9. <android.support.v7.widget.Toolbar
  10. android:id="@+id/toolbar"
  11. android:layout_width="match_parent"
  12. android:layout_height="?attr/actionBarSize"
  13. android:background="@android:color/transparent"
  14. android:layout_marginTop="20dp"
  15. app:contentInsetLeft="0dp"
  16. app:contentInsetStart="0dp"
  17. app:layout_constraintEnd_toEndOf="parent"
  18. app:layout_constraintStart_toStartOf="parent"
  19. app:layout_constraintTop_toTopOf="parent">
  20.  
  21. <RelativeLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="match_parent"
  24. android:gravity="center_vertical"
  25. android:paddingLeft="@dimen/activity_horizontal_margin"
  26. android:paddingRight="@dimen/activity_horizontal_margin">
  27.  
  28. <ImageView
  29. android:id="@+id/iv_back"
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:layout_alignParentTop="true"
  33. android:src="@drawable/ic_chevron_left"
  34. android:tint="@color/grey500" />
  35.  
  36. <TextView
  37. android:id="@+id/tv_toolbar_title"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:layout_alignParentTop="true"
  41. android:layout_centerInParent="true"
  42. android:layout_centerHorizontal="true"
  43. android:layout_marginTop="0dp"
  44. android:text="Payment Method"
  45. android:textColor="@color/grey500"
  46. android:textSize="16sp"
  47. android:textStyle="bold" />
  48.  
  49. </RelativeLayout>
  50.  
  51. </android.support.v7.widget.Toolbar>
  52.  
  53. <!--<include layout="@layout/error"/>-->
  54. <!--<include layout="@layout/loading"/>-->
  55.  
  56.  
  57. <!--<FrameLayout-->
  58. <!--android:id="@+id/container_content"-->
  59. <!--android:layout_width="match_parent"-->
  60. <!--android:layout_height="match_parent"-->
  61. <!--app:layout_behavior="@string/appbar_scrolling_view_behavior">-->
  62.  
  63.  
  64. <android.support.v4.widget.NestedScrollView
  65. android:id="@+id/scrollView"
  66. android:layout_width="match_parent"
  67. android:layout_height="0dp"
  68. app:layout_constraintBottom_toBottomOf="parent"
  69. app:layout_constraintEnd_toEndOf="parent"
  70. app:layout_constraintStart_toStartOf="parent"
  71. app:layout_constraintTop_toBottomOf="@+id/toolbar">
  72.  
  73.  
  74. <android.support.constraint.ConstraintLayout
  75. android:layout_width="match_parent"
  76. android:layout_height="match_parent">
  77.  
  78.  
  79. <android.support.v7.widget.CardView
  80. android:id="@+id/card_totalPay"
  81. android:layout_width="0dp"
  82. android:layout_height="wrap_content"
  83. android:layout_marginTop="16dp"
  84. android:layout_marginEnd="16dp"
  85. android:layout_marginStart="16dp"
  86. app:layout_constraintEnd_toEndOf="parent"
  87. app:layout_constraintStart_toStartOf="parent"
  88. app:layout_constraintTop_toTopOf="parent">
  89.  
  90. <RelativeLayout
  91. android:layout_width="match_parent"
  92. android:layout_height="wrap_content"
  93. android:padding="16dp">
  94.  
  95. <TextView
  96. android:id="@+id/tv_total_payment"
  97. android:layout_width="wrap_content"
  98. android:layout_height="wrap_content"
  99. android:textColor="@android:color/black"
  100. android:textSize="14sp"
  101. android:textStyle="bold"
  102. android:text="Rp 789.000" />
  103.  
  104. <TextView
  105. android:id="@+id/tv_billing_detail"
  106. android:layout_width="wrap_content"
  107. android:layout_height="wrap_content"
  108. android:layout_alignParentEnd="true"
  109. android:textColor="@color/colorPrimary"
  110. android:text="Billing Details"
  111. android:textSize="13sp"
  112. android:textStyle="bold" />
  113. </RelativeLayout>
  114.  
  115.  
  116. </android.support.v7.widget.CardView>
  117.  
  118.  
  119. </android.support.constraint.ConstraintLayout>
  120. </android.support.v4.widget.NestedScrollView>
  121.  
  122. <!--</FrameLayout>-->
  123.  
  124. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement