Skip to content

Commit 648abed

Browse files
committed
activity_session_detail: Apply padding to scroll view for edge-to-edge display
Signed-off-by: Aayush Gupta <[email protected]>
1 parent 60e54e9 commit 648abed

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

app/src/main/res/layout/activity_session_detail.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
android:layout_height="@dimen/app_bar_height"
1313
android:fitsSystemWindows="true"
1414
android:theme="@style/AppTheme.AppBarOverlay"
15-
app:layout_behavior=".ui.sessiondetail.ScrollingControlAppBarLayoutBehavior">
15+
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$Behavior">
1616

1717
<com.google.android.material.appbar.CollapsingToolbarLayout
1818
android:id="@+id/toolbar_layout"

app/src/main/res/layout/content_session_detail.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
<LinearLayout
1212
android:layout_width="match_parent"
1313
android:layout_height="match_parent"
14-
android:orientation="vertical">
14+
android:orientation="vertical"
15+
android:paddingBottom="@dimen/padding_safe_area">
1516

1617
<androidx.cardview.widget.CardView
1718
android:layout_width="match_parent"

app/src/main/res/values/dimens.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
<dimen name="fab_margin">16dp</dimen>
88
<dimen name="text_margin">16dp</dimen>
99
<dimen name="icon_size">24dp</dimen>
10+
<dimen name="padding_safe_area">100dp</dimen>
1011
</resources>

0 commit comments

Comments
 (0)