Skip to content

Commit

Permalink
Fixes #4586: Improve text scaling according to screen reader (#4695)
Browse files Browse the repository at this point in the history
## Explanation
Fixes #4586: Changed layout_width to sp instead of dp as per this
[comment](#4586 (comment)).
This actually solves the problem of text scaling. Improved text scaling
by setting layout_height and layout_width to wrap_content and setting
min_height = 48dp and min_width = 48dp (may vary in some cases).
Introduced a tests which will make sure that width is set in SP not in
DP.

Note: In accessibility scanner it still shows to improve text scaling
but visually or practically this solution looks accurate.

## Essential Checklist
<!-- Please tick the relevant boxes by putting an "x" in them. -->
- [x] The PR title and explanation each start with "Fix #bugnum: " (If
this PR fixes part of an issue, prefix the title with "Fix part of
#bugnum: ...".)
- [x] Any changes to
[scripts/assets](https://github.com/oppia/oppia-android/tree/develop/scripts/assets)
files have their rationale included in the PR explanation.
- [x] The PR follows the [style
guide](https://github.com/oppia/oppia-android/wiki/Coding-style-guide).
- [x] The PR does not contain any unnecessary code changes from Android
Studio
([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#undo-unnecessary-changes)).
- [x] The PR is made from a branch that's **not** called "develop" and
is up-to-date with "develop".
- [x] The PR is **assigned** to the appropriate reviewers
([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#clarification-regarding-assignees-and-reviewers-section)).

## Screenshots For Mobile (Promoted Story Card)

Default Fonts          |  Large Fonts
:-------------------------:|:-------------------------:
![Screenshot from 2022-11-05
01-27-47](https://user-images.githubusercontent.com/43074241/200065857-3408aca5-7cac-484b-bef8-91aac6a35047.png)
| ![Screenshot from 2022-11-05
01-28-36](https://user-images.githubusercontent.com/43074241/200065890-89013801-4b13-4fec-a53c-e77b802eedde.png)
![Screenshot from 2022-11-05
01-30-00](https://user-images.githubusercontent.com/43074241/200066086-30a9b533-5a29-4f86-919d-a0fdc3ab8e9b.png)
| ![Screenshot from 2022-11-05
01-29-23](https://user-images.githubusercontent.com/43074241/200066127-8718ce6c-d22f-4d7d-96b4-9f2698bc3185.png)

## Screenshots for Tablet (Promoted Story Card)
Default Fonts          |  Large Fonts
:-------------------------:|:-------------------------:
![Screenshot from 2022-11-05
01-31-14](https://user-images.githubusercontent.com/43074241/200066306-d0ebedeb-af87-43e4-9509-a7a50e95d77e.png)
| ![Screenshot from 2022-11-05
01-31-36](https://user-images.githubusercontent.com/43074241/200066339-6f52bd98-012a-42c7-ab44-ea6ca1593554.png)
![Screenshot from 2022-11-05
01-24-34](https://user-images.githubusercontent.com/43074241/200066489-10dcf823-b6bd-4704-9dba-9bdc6d0cf44e.png)
| ![Screenshot from 2022-11-05
01-25-16](https://user-images.githubusercontent.com/43074241/200066530-6c43a78e-8465-4693-8cdf-7438b23e8b3a.png)

Failing robolectric tests when we change the width in dp. 
![Screenshot from 2022-11-07
14-39-57](https://user-images.githubusercontent.com/43074241/200274329-2040e1bc-ae14-465f-a0a2-3c562e53fb66.png)
  • Loading branch information
vrajdesai78 authored Nov 9, 2022
1 parent d296554 commit 69c9a2b
Show file tree
Hide file tree
Showing 44 changed files with 121 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/faq_single_activity_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="@color/component_color_faq_single_activity_toolbar_color"
android:fontFamily="sans-serif"
android:minHeight="?attr/actionBarSize"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:baselineAligned="false">
android:baselineAligned="false"
android:orientation="horizontal">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="0dp"
Expand Down Expand Up @@ -47,8 +47,8 @@
<ScrollView
android:layout_width="0dp"
android:layout_height="match_parent"
android:background="@color/component_color_resume_lesson_activity_background_color"
android:layout_weight="1">
android:layout_weight="1"
android:background="@color/component_color_resume_lesson_activity_background_color">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
Expand Down Expand Up @@ -117,6 +117,5 @@
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>

</LinearLayout>
</layout>
7 changes: 4 additions & 3 deletions app/src/main/res/layout-sw600dp/help_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
android:background="@color/component_color_help_activity_background_color"
android:contentDescription="@string/help_activity_back_arrow_description"
android:padding="12dp"
app:srcCompat="@drawable/ic_arrow_back_black_24_dp"
android:visibility="gone"
app:layout_constraintStart_toEndOf="@id/multipane_guideline"
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_arrow_back_black_24_dp" />

<TextView
android:id="@+id/help_multipane_options_title_textview"
Expand Down Expand Up @@ -101,9 +101,10 @@
<fragment
android:id="@+id/help_activity_fragment_navigation_drawer"
android:name="org.oppia.android.app.drawer.NavigationDrawerFragment"
android:layout_width="@dimen/navigation_drawer_width"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:minWidth="@dimen/navigation_drawer_width"
app:layout="@layout/drawer_fragment"
tools:layout="@layout/drawer_fragment" />
</androidx.drawerlayout.widget.DrawerLayout>
3 changes: 2 additions & 1 deletion app/src/main/res/layout-sw600dp/option_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@
<fragment
android:id="@+id/options_activity_fragment_navigation_drawer"
android:name="org.oppia.android.app.drawer.NavigationDrawerFragment"
android:layout_width="@dimen/navigation_drawer_width"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:minWidth="@dimen/navigation_drawer_width"
app:layout="@layout/drawer_fragment"
tools:layout="@layout/drawer_fragment" />
</androidx.drawerlayout.widget.DrawerLayout>
2 changes: 1 addition & 1 deletion app/src/main/res/layout-sw600dp/story_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/story_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="@color/component_color_story_activity_toolbar_color"
android:fontFamily="sans-serif"
android:gravity="center_vertical"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/admin_auth_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/admin_auth_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="@color/component_color_admin_auth_activity_toolbar_color"
android:fontFamily="sans-serif"
android:minHeight="?attr/actionBarSize"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/administrator_controls_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@
<fragment
android:id="@+id/administrator_controls_activity_fragment_navigation_drawer"
android:name="org.oppia.android.app.drawer.NavigationDrawerFragment"
android:layout_width="@dimen/navigation_drawer_width"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:minWidth="@dimen/navigation_drawer_width"
app:layout="@layout/drawer_fragment"
tools:layout="@layout/drawer_fragment" />
</androidx.drawerlayout.widget.DrawerLayout>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/app_language_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/app_language_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:fontFamily="sans-serif"
android:minHeight="?attr/actionBarSize"
Expand Down
5 changes: 3 additions & 2 deletions app/src/main/res/layout/app_version_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/app_version_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="@color/component_color_app_version_activity_toolbar_color"
android:minHeight="?attr/actionBarSize"
android:textSize="20sp"
app:navigationContentDescription="@string/navigate_up"
app:navigationIcon="?attr/homeAsUpIndicator"
Expand All @@ -35,8 +36,8 @@
android:layout_height="4dp"
android:layout_gravity="top"
android:background="@drawable/toolbar_drop_shadow"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/app_version_app_bar_layout" />

<FrameLayout
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/audio_language_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/audio_language_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:fontFamily="sans-serif"
android:minHeight="?attr/actionBarSize"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/completed_story_list_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/completed_story_list_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="@color/component_color_completed_progress_activity_toolbar_color"
android:fontFamily="sans-serif"
android:minHeight="?attr/actionBarSize"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/developer_options_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@
<fragment
android:id="@+id/developer_options_activity_fragment_navigation_drawer"
android:name="org.oppia.android.app.drawer.NavigationDrawerFragment"
android:layout_width="@dimen/navigation_drawer_width"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:minWidth="@dimen/navigation_drawer_width"
app:layout="@layout/drawer_fragment"
tools:layout="@layout/drawer_fragment" />
</androidx.drawerlayout.widget.DrawerLayout>
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/layout/exploration_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/exploration_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="@color/component_color_exploration_activity_toolbar_color"
android:minHeight="?attr/actionBarSize"
android:theme="@style/Widget.AppCompat.ActionBar"
Expand Down Expand Up @@ -73,7 +73,6 @@
android:minWidth="48dp"
android:minHeight="48dp"
android:scaleType="center" />

</LinearLayout>
</androidx.appcompat.widget.Toolbar>
</com.google.android.material.appbar.AppBarLayout>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/faq_single_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/faq_single_activity_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="@color/component_color_faq_single_activity_toolbar_color"
android:fontFamily="sans-serif"
android:minHeight="?attr/actionBarSize"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/force_network_type_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/force_network_type_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="@color/oppia_primary"
android:minHeight="?attr/actionBarSize"
android:textSize="20sp"
app:navigationContentDescription="@string/navigate_up"
app:navigationIcon="?attr/homeAsUpIndicator"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/help_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@
<fragment
android:id="@+id/help_activity_fragment_navigation_drawer"
android:name="org.oppia.android.app.drawer.NavigationDrawerFragment"
android:layout_width="@dimen/navigation_drawer_width"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:minWidth="@dimen/navigation_drawer_width"
app:layout="@layout/drawer_fragment"
tools:layout="@layout/drawer_fragment" />
</androidx.drawerlayout.widget.DrawerLayout>
2 changes: 1 addition & 1 deletion app/src/main/res/layout/hints_and_solution_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/hints_and_solution_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="@color/color_def_oppia_dark_blue"
android:fontFamily="sans-serif"
android:minHeight="?attr/actionBarSize"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/home_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@
<fragment
android:id="@+id/home_activity_fragment_navigation_drawer"
android:name="org.oppia.android.app.drawer.NavigationDrawerFragment"
android:layout_width="@dimen/navigation_drawer_width"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:minWidth="@dimen/navigation_drawer_width"
app:layout="@layout/drawer_fragment"
tools:layout="@layout/drawer_fragment" />
</androidx.drawerlayout.widget.DrawerLayout>
6 changes: 4 additions & 2 deletions app/src/main/res/layout/license_text_viewer_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/license_text_viewer_activity_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:fontFamily="sans-serif"
android:minHeight="?attr/actionBarSize"
Expand All @@ -28,6 +28,8 @@
android:id="@+id/license_text_viewer_activity_marquee_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="20dp"
android:minHeight="48dp"
app:animationDelay="500"
app:animationSpeed="10">

Expand All @@ -40,7 +42,7 @@
</asia.ivity.android.marqueeview.MarqueeView>
</androidx.appcompat.widget.Toolbar>
</com.google.android.material.appbar.AppBarLayout>

<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/mark_chapters_completed_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/mark_chapters_completed_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="@color/component_color_mark_chapters_completed_primary_toolbar_color"
android:minHeight="?attr/actionBarSize"
android:textSize="20sp"
app:navigationContentDescription="@string/navigate_up"
app:navigationIcon="?attr/homeAsUpIndicator"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/mark_stories_completed_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/mark_stories_completed_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="@color/component_color_mark_stories_completed_primary_toolbar_color"
android:minHeight="?attr/actionBarSize"
android:textSize="20sp"
app:navigationContentDescription="@string/navigate_up"
app:navigationIcon="?attr/homeAsUpIndicator"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/mark_topics_completed_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/mark_topics_completed_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="@color/component_color_mark_topics_completed_primary_toolbar_color"
android:minHeight="?attr/actionBarSize"
android:textSize="20sp"
app:navigationContentDescription="@string/navigate_up"
app:navigationIcon="?attr/homeAsUpIndicator"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/math_expression_parser_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/math_expression_parser_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="@color/oppia_primary"
android:minHeight="?attr/actionBarSize"
android:textSize="20sp"
app:navigationContentDescription="@string/navigate_up"
app:navigationIcon="?attr/homeAsUpIndicator"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/my_downloads_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/my_downloads_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="@color/oppia_primary"
android:minHeight="?attr/actionBarSize"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:title="@string/my_downloads_activity_title"
app:titleTextAppearance="@style/ToolbarTextAppearance"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/ongoing_topic_list_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/ongoing_topic_list_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="@color/component_color_ongoing_progress_activity_toolbar_color"
android:fontFamily="sans-serif"
android:minHeight="?attr/actionBarSize"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/option_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@
<fragment
android:id="@+id/options_activity_fragment_navigation_drawer"
android:name="org.oppia.android.app.drawer.NavigationDrawerFragment"
android:layout_width="@dimen/navigation_drawer_width"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:minWidth="@dimen/navigation_drawer_width"
app:layout="@layout/drawer_fragment"
tools:layout="@layout/drawer_fragment" />
</androidx.drawerlayout.widget.DrawerLayout>
4 changes: 2 additions & 2 deletions app/src/main/res/layout/pin_password_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/pin_password_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="@color/component_color_pin_password_activity_toolbar_color"
android:fontFamily="sans-serif"
android:minHeight="?attr/actionBarSize"
Expand Down Expand Up @@ -106,7 +106,7 @@
android:id="@+id/pin_password_input_pin"
style="@style/TextInputLayout"
android:layout_width="0dp"
android:layout_height="56dp"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:hint="@{viewModel.profile.isAdmin ? @string/input_pin_password_as_admin : @string/input_pin_password_as_user}"
app:errorMessage="@{viewModel.errorMessage}"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/profile_and_device_id_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/profile_and_device_id_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="@color/oppia_primary"
android:minHeight="?attr/actionBarSize"
android:textSize="20sp"
app:navigationContentDescription="@string/navigate_up"
app:navigationIcon="?attr/homeAsUpIndicator"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/profile_edit_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/profile_edit_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="@color/oppia_primary"
android:minHeight="?attr/actionBarSize"
android:textSize="20sp"
app:navigationContentDescription="@string/navigate_up"
app:navigationIcon="?attr/homeAsUpIndicator"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/profile_list_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/profile_list_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:fontFamily="sans-serif"
android:minHeight="?attr/actionBarSize"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/profile_picture_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/profile_picture_activity_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_height="wrap_content"
android:background="@color/oppia_primary"
android:minHeight="?attr/actionBarSize"
android:textSize="20sp"
app:navigationContentDescription="@string/navigate_up"
app:navigationIcon="?attr/homeAsUpIndicator"
Expand Down
Loading

0 comments on commit 69c9a2b

Please sign in to comment.