Skip to content

Commit

Permalink
Support snackbars in PreferencesActivity
Browse files Browse the repository at this point in the history
  • Loading branch information
oakkitten committed Dec 28, 2024
1 parent fc7058d commit ed9e4f1
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions app/src/main/res/layout/preferences.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/coordinator_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="0dp"
android:orientation="vertical"
android:padding="0dp"
android:id="@+id/preferences">
android:layout_height="match_parent">

<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary" />
android:layout_height="match_parent"
android:layout_margin="0dp"
android:orientation="vertical"
android:padding="0dp"
android:id="@+id/preferences">

<!-- preference fragment will be inserted here programmatically -->
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary" />

</LinearLayout>
<!-- preference fragment will be inserted here programmatically -->

</LinearLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

0 comments on commit ed9e4f1

Please sign in to comment.