activity_post.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout 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/birthday_constraint"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. tools:context=".activities.PostActivity">
  9. <LinearLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:orientation="vertical">
  13. <androidx.cardview.widget.CardView
  14. android:layout_width="match_parent"
  15. android:layout_height="?actionBarSize"
  16. tools:ignore="MissingConstraints">
  17. <LinearLayout
  18. android:layout_width="match_parent"
  19. android:layout_height="match_parent"
  20. android:background="@color/backgroundColor"
  21. android:orientation="horizontal">
  22. <ImageView
  23. android:id="@+id/back"
  24. android:layout_width="0dp"
  25. android:layout_height="match_parent"
  26. android:layout_marginTop="15dp"
  27. android:layout_marginBottom="15dp"
  28. android:layout_weight="1"
  29. android:src="@drawable/back_black" />
  30. <TextView
  31. android:layout_width="0dp"
  32. android:layout_height="match_parent"
  33. android:layout_gravity="center"
  34. android:layout_weight="4"
  35. android:fontFamily="@font/unifrakturcook"
  36. android:gravity="center"
  37. android:text="@string/name"
  38. android:textAlignment="center"
  39. android:textColor="@color/textColor"
  40. android:textSize="25sp" />
  41. <ImageView
  42. android:layout_width="0dp"
  43. android:layout_height="match_parent"
  44. android:layout_marginTop="20dp"
  45. android:layout_marginBottom="20dp"
  46. android:layout_weight="1"
  47. android:alpha="0.6"
  48. android:src="#00FFFFFF" />
  49. </LinearLayout>
  50. </androidx.cardview.widget.CardView>
  51. <androidx.core.widget.NestedScrollView
  52. android:layout_width="match_parent"
  53. android:layout_height="match_parent">
  54. <RelativeLayout
  55. android:layout_width="match_parent"
  56. android:layout_height="match_parent">
  57. <com.facebook.shimmer.ShimmerFrameLayout
  58. android:id="@+id/shimmer_view_container"
  59. android:layout_width="match_parent"
  60. android:layout_height="match_parent"
  61. app:shimmer_auto_start="false">
  62. <LinearLayout
  63. android:layout_width="match_parent"
  64. android:layout_height="wrap_content"
  65. android:orientation="vertical">
  66. <include layout="@layout/shimmer_post_detail" />
  67. </LinearLayout>
  68. </com.facebook.shimmer.ShimmerFrameLayout>
  69. <WebView
  70. android:id="@+id/webview"
  71. android:layout_width="match_parent"
  72. android:layout_height="wrap_content"
  73. android:layout_below="@+id/shimmer_view_container"
  74. android:nestedScrollingEnabled="true" />
  75. <TextView
  76. android:id="@+id/txtview"
  77. android:layout_width="match_parent"
  78. android:layout_height="wrap_content"
  79. android:layout_below="@+id/webview"
  80. android:layout_margin="10dp"
  81. android:textColor="@color/textColor"
  82. android:textSize="25sp"
  83. android:visibility="gone" />
  84. <androidx.recyclerview.widget.RecyclerView
  85. android:id="@+id/recyclerComment"
  86. android:layout_width="wrap_content"
  87. android:layout_height="wrap_content"
  88. android:layout_below="@id/txtview"
  89. android:visibility="gone" />
  90. </RelativeLayout>
  91. </androidx.core.widget.NestedScrollView>
  92. </LinearLayout>
  93. </LinearLayout>