0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 20:03:05 +02:00

Reviewer: Increase Left/Right Padding for Top Bar

Material design states we should have 16dp padding to the sides if in full screen.

OnePlus 7 Pro phones truncated the "new count", so this fixes the issue

Fixes 7854
This commit is contained in:
David Allison 2020-12-10 13:04:00 +00:00 committed by Mike Hardy
parent 4205d1d3cd
commit c7e588c331
2 changed files with 4 additions and 2 deletions

View File

@ -4,8 +4,8 @@
android:id="@+id/top_bar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="9dp"
android:paddingRight="10dp"
android:paddingLeft="@dimen/side_margin"
android:paddingRight="@dimen/side_margin"
android:paddingTop="2dp"
android:paddingBottom="3dp"
android:gravity="center_vertical"

View File

@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="UnusedResources">
<!-- Material UI side margin: http://web.archive.org/web/20180105203433if_/https://material.io/guidelines/layout/metrics-keylines.html#metrics-keylines-keylines-spacing -->
<dimen name="side_margin">16dp</dimen>
<dimen name="touch_target">48dp</dimen>
<dimen name="default_width">56dp</dimen>
<dimen name="keyline_1">16dp</dimen>