Skip to content

Commit

Permalink
Add the theme attributes preferenceActivityToolbarStyle and preferenc…
Browse files Browse the repository at this point in the history
…eActivityInvertedToolbarStyle.
  • Loading branch information
michael-rapp committed May 13, 2019
1 parent c7dd9f7 commit 7c71caf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
A minor release, which introduces the following changes:

- Added the theme attribute `categoryPreferenceStyle`.
- Added the theme attribute `preferenceActivityToolbarStyle` and `preferenceActivityInvertedToolbarStyle`.

## Version 7.0.2 (Feb. 23th 2019)

Expand Down
1 change: 1 addition & 0 deletions library/src/main/res/layout/preference_activity_phone.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ License.

<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
style="?attr/preferenceActivityToolbarStyle"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
Expand Down
2 changes: 2 additions & 0 deletions library/src/main/res/layout/preference_activity_tablet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ License.

<de.mrapp.android.preference.activity.view.ToolbarLarge
android:id="@+id/large_toolbar"
style="?attr/preferenceActivityToolbarStyle"
android:layout_width="match_parent"
android:layout_height="@dimen/toolbar_large_height"
android:theme="?attr/toolbarTheme"
Expand Down Expand Up @@ -75,6 +76,7 @@ License.

<androidx.appcompat.widget.Toolbar
android:id="@+id/bread_crumb_toolbar"
style="?attr/preferenceActivityInvertedToolbarStyle"
android:layout_width="match_parent"
android:layout_height="@dimen/toolbar_height"
android:background="@drawable/breadcrumb_background"
Expand Down
2 changes: 2 additions & 0 deletions library/src/main/res/layout/toolbar_large.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ License.

<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
style="?attr/preferenceActivityToolbarStyle"
android:layout_width="match_parent"
android:layout_height="@dimen/toolbar_height"
android:layout_alignParentTop="true"
Expand All @@ -32,6 +33,7 @@ License.

<androidx.appcompat.widget.Toolbar
android:id="@+id/navigation_toolbar"
style="?attr/preferenceActivityToolbarStyle"
android:layout_width="@dimen/navigation_width"
android:layout_height="@dimen/toolbar_height"
android:layout_alignParentBottom="true"
Expand Down
2 changes: 2 additions & 0 deletions library/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ License.
<!-- PreferenceActivity -->
<attr name="toolbarTheme" format="reference"/>
<attr name="toolbarPopupTheme" format="reference"/>
<attr name="preferenceActivityToolbarStyle" format="reference"/>
<attr name="invertedToolbarTheme" format="reference"/>
<attr name="invertedToolbarPopupTheme" format="reference"/>
<attr name="preferenceActivityInvertedToolbarStyle" format="reference"/>
<attr name="useSplitScreen" format="boolean"/>
<attr name="navigationWidth" format="dimension"/>
<attr name="hideNavigation" format="boolean"/>
Expand Down

0 comments on commit 7c71caf

Please sign in to comment.