Skip to content

Commit

Permalink
Merge pull request #18070 from wordpress-mobile/Remove-large-titles
Browse files Browse the repository at this point in the history
Remove large titles
  • Loading branch information
ravishanker authored Mar 13, 2023
2 parents 40028b9 + 191babb commit 06704ed
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 28 deletions.
13 changes: 2 additions & 11 deletions WordPress/src/main/res/layout/notifications_list_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,15 @@
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/app_bar"
android:layout_width="match_parent"
android:layout_height="@dimen/prominent_toolbar_with_tabs_height">

<com.google.android.material.appbar.CollapsingToolbarLayout
android:id="@+id/collapsing_toolbar"
style="@style/WordPress.CollapsedToolbarLayout"
android:layout_width="match_parent"
app:layout_scrollFlags="scroll|enterAlways|enterAlwaysCollapsed"
android:layout_height="@dimen/prominent_toolbar_height">
android:layout_height="wrap_content">

<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar_main"
android:layout_width="match_parent"
android:layout_height="@dimen/toolbar_height"
app:layout_collapseMode="pin"
app:layout_scrollFlags="scroll|enterAlways"
app:theme="@style/WordPress.ActionBar" />

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

<com.google.android.material.tabs.TabLayout
android:id="@+id/tab_layout"
android:layout_width="match_parent"
Expand Down
13 changes: 2 additions & 11 deletions WordPress/src/main/res/layout/reader_fragment_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,15 @@
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/app_bar"
android:layout_width="match_parent"
android:layout_height="@dimen/prominent_toolbar_with_tabs_height">

<com.google.android.material.appbar.CollapsingToolbarLayout
android:id="@+id/collapsing_toolbar"
style="@style/WordPress.CollapsedToolbarLayout"
android:layout_width="match_parent"
app:layout_scrollFlags="scroll|exitUntilCollapsed"
android:layout_height="@dimen/prominent_toolbar_height">
android:layout_height="wrap_content">

<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
app:layout_collapseMode="pin"
app:layout_scrollFlags="scroll|enterAlways"
android:layout_height="@dimen/toolbar_height"
app:theme="@style/WordPress.ActionBar" />

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

<com.google.android.material.tabs.TabLayout
android:id="@+id/tab_layout"
android:layout_width="match_parent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/margin_medium_large"
android:layout_marginStart="@dimen/margin_medium_large"
android:src="@drawable/ic_cog_white_24dp"
android:src="@drawable/ic_reader_following_white_24dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand Down
2 changes: 0 additions & 2 deletions WordPress/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
<dimen name="me_menu_width">64dp</dimen>
<dimen name="me_menu_avatar_end_offset">11dp</dimen>
<dimen name="toolbar_height">56dp</dimen>
<dimen name="prominent_toolbar_height">112dp</dimen>
<dimen name="prominent_toolbar_with_tabs_height">168dp</dimen>
<dimen name="toolbar_content_offset">72dp</dimen>
<dimen name="toolbar_content_offset_end">0dp</dimen>
<dimen name="collapsible_toolbar_expanded_bottom_margin">28dp</dimen>
Expand Down
3 changes: 0 additions & 3 deletions WordPress/src/main/res/values/styles_toolbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,16 @@

<!-- TextAppearance -->
<style name="TextAppearance.App.Toolbar.Title" parent="TextAppearance.MaterialComponents.Headline6">
<item name="fontFamily">serif</item>
<item name="android:textStyle">bold</item>
</style>

<style name="TextAppearance.App.CollapsingToolbar.Expanded" parent="TextAppearance.MaterialComponents.Headline4">
<item name="android:textColor">?attr/colorOnSurface</item>
<item name="fontFamily">serif</item>
<item name="android:textStyle">bold</item>
</style>

<style name="TextAppearance.App.CollapsingToolbar.Collapsed" parent="TextAppearance.MaterialComponents.Headline6">
<item name="android:textColor">?attr/colorOnSurface</item>
<item name="fontFamily">serif</item>
<item name="android:textStyle">bold</item>
</style>

Expand Down

0 comments on commit 06704ed

Please sign in to comment.