give poll result backgrounds a rounded shape (#1626)

* give poll result backgrounds a rounded shape

* fix rtl layout of poll options
This commit is contained in:
Konrad Pozniak 2020-01-07 19:38:32 +01:00 committed by GitHub
parent 441a1c1f95
commit b87a1711f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -3,4 +3,4 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/poll_option_shape" android:drawable="@drawable/poll_option_shape"
android:clipOrientation="horizontal" android:clipOrientation="horizontal"
android:gravity="left|clip_horizontal|fill_vertical"/> android:gravity="start|clip_horizontal|fill_vertical"/>

View File

@ -2,5 +2,6 @@
<shape <shape
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"> android:shape="rectangle">
<corners android:radius="6dp"/>
<solid android:color="?attr/pollOptionBackgroundColor" /> <solid android:color="?attr/pollOptionBackgroundColor" />
</shape> </shape>

View File

@ -17,6 +17,7 @@
android:paddingTop="2dp" android:paddingTop="2dp"
android:paddingEnd="6dp" android:paddingEnd="6dp"
android:paddingBottom="2dp" android:paddingBottom="2dp"
android:textAlignment="viewStart"
android:textColor="?android:attr/textColorPrimary" android:textColor="?android:attr/textColorPrimary"
android:textSize="?attr/status_text_medium" android:textSize="?attr/status_text_medium"
tools:text="40%" /> tools:text="40%" />