Guest User

Untitled

a guest
Feb 18th, 2021
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout
  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. app:behavior_hideable="false"
  9. app:behavior_peekHeight="64dp"
  10. app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"
  11. tools:context="com.example.coincurrently.MainActivity">
  12.  
  13. <androidx.constraintlayout.widget.ConstraintLayout
  14. android:layout_width="match_parent"
  15. android:layout_height="wrap_content"
  16. android:background="@drawable/news_background"
  17. app:layout_constraintBottom_toTopOf="@+id/support_view">
  18.  
  19. <View
  20. android:id="@+id/news_drag_handle"
  21. android:layout_width="40dp"
  22. android:layout_height="4dp"
  23. android:background="@drawable/news_handle_rounded_rectangle"
  24. app:layout_constraintTop_toTopOf="parent"
  25. app:layout_constraintLeft_toLeftOf="parent"
  26. app:layout_constraintRight_toRightOf="parent"
  27. android:layout_marginTop="10dp">
  28. </View>
  29.  
  30. <TextView
  31. android:id="@+id/txt_crypto_news"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:text="Crypto News"
  35. android:textColor="#FFFFFF"
  36. android:textSize="24sp"
  37. android:fontFamily="sans-serif-black"
  38. android:layout_marginTop="10dp"
  39. android:layout_marginLeft="15dp"
  40. app:layout_constraintLeft_toLeftOf="parent"
  41. app:layout_constraintTop_toBottomOf="@id/news_drag_handle">
  42. </TextView>
  43.  
  44. <View
  45. android:id="@+id/news_top_separator"
  46. android:layout_width="match_parent"
  47. android:layout_height="1dp"
  48. android:background="#525252"
  49. android:layout_marginTop="10dp"
  50. app:layout_constraintTop_toBottomOf="@id/txt_crypto_news">
  51. </View>
  52.  
  53. <androidx.recyclerview.widget.RecyclerView
  54. android:id="@+id/rv_news"
  55. android:layout_width="match_parent"
  56. android:layout_height="180dp"
  57. android:paddingStart="-25dp"
  58. android:paddingEnd="15dp"
  59. android:clipToPadding="false"
  60. android:orientation="horizontal"
  61. app:layout_constraintBottom_toBottomOf="parent"
  62. app:layout_constraintHorizontal_bias="0.0"
  63. app:layout_constraintLeft_toLeftOf="parent"
  64. app:layout_constraintRight_toRightOf="parent"
  65. app:layout_constraintTop_toBottomOf="@id/news_top_separator"
  66. app:layout_constraintVertical_bias="0.0"
  67. tools:listitem="@layout/news_card">
  68. </androidx.recyclerview.widget.RecyclerView>
  69.  
  70. </androidx.constraintlayout.widget.ConstraintLayout>
  71.  
  72. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment