Guest User

Untitled

a guest
Nov 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <shape xmlns:android="http://schemas.android.com/apk/res/android">
  3.  
  4. <gradient android:angle="90" android:startColor="#121212"
  5. android:endColor="00000000" />
  6.  
  7. </shape>
  8.  
  9. <?xml version="1.0" encoding="utf-8"?>
  10. <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  11. xmlns:app="http://schemas.android.com/apk/res-auto"
  12. xmlns:tools="http://schemas.android.com/tools"
  13. android:layout_width="match_parent"
  14. android:layout_height="250dp">
  15.  
  16. <ImageView
  17. android:id="@+id/card_background"
  18. android:layout_width="match_parent"
  19. android:layout_height="match_parent"
  20. app:layout_constraintBottom_toBottomOf="parent"
  21. app:layout_constraintEnd_toEndOf="parent"
  22. app:layout_constraintStart_toStartOf="parent"
  23. app:layout_constraintTop_toTopOf="parent"
  24. app:srcCompat="#e6e6e6" />
  25.  
  26. <Button
  27. android:background="@drawable/btn_news_style"
  28. android:id="@+id/btn_news"
  29. android:layout_width="wrap_content"
  30. android:layout_height="wrap_content"
  31. android:layout_marginEnd="16dp"
  32. android:layout_marginRight="16dp"
  33. android:layout_marginBottom="16dp"
  34. android:text="News And Highlight"
  35. app:layout_constraintBottom_toBottomOf="parent"
  36. app:layout_constraintEnd_toEndOf="parent" />
  37.  
  38. <ImageView
  39. android:id="@+id/imageView2"
  40. android:layout_width="match_parent"
  41. android:layout_height="102dp"
  42. app:layout_constraintBottom_toBottomOf="parent"
  43. app:srcCompat="@drawable/black_gradient"
  44. tools:layout_editor_absoluteX="175dp"
  45. tools:ignore="MissingConstraints" />
  46.  
  47. <ImageView
  48. android:id="@+id/news_img"
  49. android:layout_width="48dp"
  50. android:layout_height="68dp"
  51. android:layout_marginStart="16dp"
  52. android:layout_marginLeft="16dp"
  53. android:layout_marginBottom="16dp"
  54. app:layout_constraintBottom_toBottomOf="parent"
  55. app:layout_constraintStart_toStartOf="parent"
  56. app:srcCompat="@mipmap/ic_launcher_round" />
  57.  
  58. <TextView
  59. android:id="@+id/card_title"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:layout_marginStart="24dp"
  63. android:layout_marginLeft="24dp"
  64. android:layout_marginBottom="56dp"
  65. android:text="Title"
  66. android:textColor="#fff"
  67. android:textStyle="bold"
  68. app:layout_constraintBottom_toBottomOf="parent"
  69. app:layout_constraintStart_toEndOf="@+id/news_img" />
  70.  
  71. </android.support.constraint.Constrain
Add Comment
Please, Sign In to add comment