Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.77 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.v7.widget.CardView
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. android:layout_width="match_parent"
  7. android:layout_height="wrap_content">
  8. <android.support.constraint.ConstraintLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content">
  11. <TextView
  12. android:id="@+id/fuelTypeTextView"
  13. android:layout_width="wrap_content"
  14. android:layout_height="wrap_content"
  15. android:text="Gas 97"
  16. app:layout_constraintTop_toTopOf="parent"
  17. android:layout_marginTop="8dp"
  18. android:layout_marginLeft="8dp"
  19. app:layout_constraintLeft_toLeftOf="parent" />
  20. <TextView
  21. android:id="@+id/gallonsTextView"
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:textSize="48sp"
  25. android:textStyle="bold"
  26. android:textColor="@color/colorAccent"
  27. android:text="8.7"
  28. android:layout_marginLeft="8dp"
  29. app:layout_constraintLeft_toLeftOf="parent"
  30. android:layout_marginBottom="8dp"
  31. app:layout_constraintBottom_toTopOf="@+id/contextTextView"
  32. android:layout_marginTop="8dp"
  33. app:layout_constraintTop_toBottomOf="@+id/fuelTypeTextView"
  34. app:layout_constraintVertical_bias="1.0" />
  35. <TextView
  36. android:id="@+id/unitTextView"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:text="Gallons"
  40. android:layout_marginBottom="8dp"
  41. app:layout_constraintBottom_toTopOf="@+id/contextTextView"
  42. app:layout_constraintLeft_toRightOf="@+id/gallonsTextView"
  43. android:layout_marginLeft="8dp" />
  44. <TextView
  45. android:id="@+id/currencyTextView"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:text="$"
  49. app:layout_constraintRight_toLeftOf="@+id/priceTextView"
  50. android:layout_marginRight="8dp"
  51. app:layout_constraintTop_toTopOf="parent"
  52. android:layout_marginTop="8dp" />
  53. <TextView
  54. android:id="@+id/priceTextView"
  55. android:layout_width="wrap_content"
  56. android:layout_height="wrap_content"
  57. android:textSize="48sp"
  58. android:textColor="@color/colorAccent"
  59. android:text="48.5"
  60. android:layout_marginRight="7dp"
  61. app:layout_constraintRight_toRightOf="parent"
  62. android:layout_marginBottom="8dp"
  63. app:layout_constraintBottom_toTopOf="@+id/contextTextView"
  64. android:layout_marginEnd="8dp"
  65. app:layout_constraintTop_toTopOf="parent"
  66. android:layout_marginTop="8dp" />
  67.  
  68. <TextView
  69. android:id="@+id/contextTextView"
  70. android:layout_width="0dp"
  71. android:layout_height="wrap_content"
  72. android:layout_marginBottom="7dp"
  73. android:layout_marginLeft="16dp"
  74. android:layout_marginRight="16dp"
  75. android:text="Sample text 1"
  76. app:layout_constraintBottom_toBottomOf="parent"
  77. app:layout_constraintHorizontal_bias="0.501"
  78. app:layout_constraintLeft_toLeftOf="parent"
  79. app:layout_constraintRight_toRightOf="parent"
  80. android:layout_marginStart="16dp"
  81. android:layout_marginEnd="16dp" />
  82. </android.support.constraint.ConstraintLayout>
  83. </android.support.v7.widget.CardView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement