Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.79 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView 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:id="@+id/scrollView"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:layout_marginBottom="8dp"
  9. android:layout_marginEnd="16dp"
  10. android:layout_marginStart="16dp"
  11. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  12. tools:context="com.asiawisata.android.ui.notification_detail.NotificationDetailActivity"
  13. tools:showIn="@layout/activity_notification_detail">
  14.  
  15. <androidx.constraintlayout.widget.ConstraintLayout
  16. android:layout_width="match_parent"
  17. android:layout_height="match_parent">
  18.  
  19. <ImageView
  20. android:id="@+id/promoImage"
  21. android:layout_width="0dp"
  22. android:layout_height="180dp"
  23. android:contentDescription="@string/image_promo"
  24. android:scaleType="centerCrop"
  25. app:layout_constraintEnd_toEndOf="parent"
  26. app:layout_constraintStart_toStartOf="parent"
  27. app:layout_constraintTop_toTopOf="parent"
  28. tools:srcCompat="@drawable/banner_ibe_app_umrah_ramadhan_15_hari" />
  29.  
  30. <LinearLayout
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:orientation="vertical"
  34. app:layout_constraintBottom_toTopOf="@+id/linearLayout"
  35. app:layout_constraintEnd_toEndOf="parent"
  36. app:layout_constraintHorizontal_bias="0.0"
  37. app:layout_constraintStart_toStartOf="parent"
  38. app:layout_constraintTop_toBottomOf="@+id/promoImage">
  39.  
  40. <TextView
  41. android:id="@+id/promoTitle"
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content"
  44. android:layout_marginTop="8dp"
  45. android:textSize="18sp"
  46. android:textStyle="bold"
  47. tools:text="Judul Promo" />
  48.  
  49. <TextView
  50. android:id="@+id/promoDate"
  51. android:layout_width="match_parent"
  52. android:layout_height="wrap_content"
  53. android:textSize="12sp"
  54. tools:text="Tanggal promo" />
  55.  
  56. <TextView
  57. android:id="@+id/promoDetail"
  58. android:layout_width="match_parent"
  59. android:layout_height="wrap_content"
  60. android:layout_marginTop="8dp"
  61. tools:text="Detail promo" />
  62.  
  63. <TextView
  64. android:id="@+id/txtLink"
  65. android:visibility="gone"
  66. android:layout_width="match_parent"
  67. android:layout_height="wrap_content"
  68. android:textColor="@color/colorAccent"
  69. android:text="Selengkapnya klik disini"/>
  70. </LinearLayout>
  71.  
  72. <LinearLayout
  73. android:id="@+id/linearLayout"
  74. android:layout_width="0dp"
  75. android:layout_height="wrap_content"
  76. android:orientation="horizontal"
  77. android:padding="16dp"
  78. app:layout_constraintBottom_toBottomOf="parent"
  79. app:layout_constraintEnd_toEndOf="parent"
  80. app:layout_constraintStart_toStartOf="parent">
  81.  
  82. <Button
  83. android:id="@+id/notificationDetailBtn"
  84. style="@style/ButtonCyan"
  85. android:layout_width="0dp"
  86. android:layout_height="wrap_content"
  87. android:layout_marginEnd="8dp"
  88. android:layout_marginStart="8dp"
  89. android:layout_weight="1"
  90. android:textColor="@color/white"
  91. app:layout_constraintEnd_toEndOf="parent"
  92. app:layout_constraintHorizontal_bias="0.0"
  93. app:layout_constraintStart_toStartOf="parent"
  94. tools:layout_editor_absoluteY="283dp"
  95. tools:text="Cari TIket Pesawat" />
  96. </LinearLayout>
  97.  
  98. <ProgressBar
  99. android:id="@+id/progressBar"
  100. style="?android:attr/progressBarStyle"
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content"
  103. android:layout_marginBottom="8dp"
  104. android:layout_marginEnd="8dp"
  105. android:layout_marginStart="8dp"
  106. android:layout_marginTop="8dp"
  107. app:layout_constraintBottom_toBottomOf="parent"
  108. app:layout_constraintEnd_toEndOf="parent"
  109. app:layout_constraintStart_toStartOf="parent"
  110. app:layout_constraintTop_toTopOf="@+id/promoImage" />
  111. </androidx.constraintlayout.widget.ConstraintLayout>
  112.  
  113. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement