Skip to content

Commit

Permalink
Make reader announcement card scrollable as part of the post list
Browse files Browse the repository at this point in the history
  • Loading branch information
RenanLukas committed May 22, 2024
1 parent 681ab48 commit 7587b30
Showing 1 changed file with 15 additions and 36 deletions.
51 changes: 15 additions & 36 deletions WordPress/src/main/res/layout/reader_fragment_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,47 +16,26 @@
android:layout_height="wrap_content"
app:layout_scrollFlags="scroll|enterAlways" />

</com.google.android.material.appbar.AppBarLayout>

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="56dp"
app:layout_behavior="@string/appbar_scrolling_view_behavior">

<FrameLayout
android:id="@+id/container"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@+id/reader_announcement_card_compose_view" />

<androidx.compose.ui.platform.ComposeView
android:id="@+id/reader_announcement_card_compose_view"
android:layout_width="0dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
app:layout_scrollFlags="scroll|enterAlways" />

<FrameLayout
android:id="@+id/interests_fragment_container"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</com.google.android.material.appbar.AppBarLayout>

<include
android:id="@+id/jetpack_banner"
layout="@layout/jetpack_banner"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>

</androidx.constraintlayout.widget.ConstraintLayout>
<include
android:id="@+id/jetpack_banner"
layout="@layout/jetpack_banner" />

<FrameLayout
android:id="@+id/interests_fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>

0 comments on commit 7587b30

Please sign in to comment.