activity_wall_post.xml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.coordinatorlayout.widget.CoordinatorLayout 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:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:fitsSystemWindows="true"
  8. tools:context=".ui.activities.WallPostActivity">
  9. <com.google.android.material.appbar.AppBarLayout
  10. android:id="@+id/app_bar"
  11. android:layout_width="match_parent"
  12. android:layout_height="256dp"
  13. android:fitsSystemWindows="true"
  14. android:theme="@style/Theme.KTC.AppBarOverlay">
  15. <com.google.android.material.appbar.CollapsingToolbarLayout
  16. android:id="@+id/toolbar_layout"
  17. style="@style/Widget.MaterialComponents.Toolbar.Primary"
  18. android:layout_width="match_parent"
  19. android:layout_height="match_parent"
  20. android:fitsSystemWindows="true"
  21. app:contentScrim="?android:statusBarColor"
  22. app:layout_scrollFlags="scroll|exitUntilCollapsed"
  23. app:toolbarId="@+id/toolbar">
  24. <ImageView
  25. android:id="@+id/toolbar_image"
  26. android:layout_width="match_parent"
  27. android:layout_height="match_parent"
  28. android:fitsSystemWindows="true"
  29. app:layout_collapseMode="parallax"
  30. tools:ignore="ContentDescription,ImageContrastCheck" />
  31. <androidx.appcompat.widget.Toolbar
  32. android:id="@+id/toolbar"
  33. android:layout_width="match_parent"
  34. android:layout_height="?actionBarSize"
  35. app:layout_collapseMode="pin"
  36. app:popupTheme="@style/Theme.KTC.PopupOverlay" />
  37. <ImageView
  38. android:id="@+id/album_back_button"
  39. android:layout_width="54dp"
  40. android:layout_height="48dp"
  41. app:layout_collapseMode="pin"
  42. app:srcCompat="@drawable/ic_angle_circle_left"
  43. app:tint="?android:textColorPrimary"
  44. tools:tint="?android:textColorPrimary"
  45. tools:ignore="ContentDescription" />
  46. </com.google.android.material.appbar.CollapsingToolbarLayout>
  47. </com.google.android.material.appbar.AppBarLayout>
  48. <include
  49. android:id="@+id/content"
  50. layout="@layout/activity_wall_post_content"
  51. android:background="?cardBackgroundColor" />
  52. </androidx.coordinatorlayout.widget.CoordinatorLayout>