diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-12-14 21:45:44 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-12-14 21:45:44 +0100 |
commit | 7df333bf2a8aad44f082ac6a6a9ee49948ce36d7 (patch) | |
tree | 2644764ba3a29806d599dfbcfd0143a4bc4a318c /src/main/res/layout/message_sent.xml | |
parent | 6c6d3caea00810df9fb89de599386a93e8dbc4d4 (diff) |
Reduce `minSdkVersion` to 16, fix issues reported by lint
This further reduces the minimum API level to 16, which should encompass
most users stuck on older versions of Android (mainly BlackBerry OS and
Jolla users).
Several issues reported by code analysis were fixed, mainly around issues
with layouts.
Diffstat (limited to '')
-rw-r--r-- | src/main/res/layout/message_sent.xml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/main/res/layout/message_sent.xml b/src/main/res/layout/message_sent.xml index a0defa5a6..295a231b3 100644 --- a/src/main/res/layout/message_sent.xml +++ b/src/main/res/layout/message_sent.xml @@ -4,18 +4,18 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" - android:paddingBottom="3dp" android:paddingLeft="8dp" + android:paddingTop="3dp" android:paddingRight="8dp" - android:paddingTop="3dp"> + android:paddingBottom="3dp"> <LinearLayout android:id="@+id/message_photo_box" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentBottom="true" android:layout_alignParentEnd="true" android:layout_alignParentRight="true" + android:layout_alignParentBottom="true" android:orientation="vertical"> <com.makeramen.roundedimageview.RoundedImageView @@ -38,8 +38,8 @@ android:layout_alignParentBottom="true" android:layout_marginLeft="4dp" android:layout_marginRight="4dp" - android:layout_toLeftOf="@+id/message_photo_box" android:layout_toStartOf="@+id/message_photo_box" + android:layout_toLeftOf="@+id/message_photo_box" android:background="@drawable/message_bubble_sent" android:longClickable="true" android:minHeight="48dp"> @@ -81,6 +81,7 @@ android:layout_width="?attr/TextSizeCaption" android:layout_height="?attr/TextSizeCaption" android:layout_gravity="center_vertical" + android:layout_marginStart="4sp" android:layout_marginLeft="4sp" android:alpha="0.54" android:gravity="center_vertical" @@ -91,6 +92,7 @@ android:layout_width="?attr/TextSizeCaption" android:layout_height="?attr/TextSizeCaption" android:layout_gravity="center_vertical" + android:layout_marginStart="4sp" android:layout_marginLeft="4sp" android:alpha="0.54" android:gravity="center_vertical" @@ -101,6 +103,7 @@ android:layout_width="?attr/TextSizeCaption" android:layout_height="?attr/TextSizeCaption" android:layout_gravity="center_vertical" + android:layout_marginStart="4sp" android:layout_marginLeft="4sp" android:gravity="center_vertical" android:src="@drawable/ic_received_indicator" /> @@ -110,6 +113,7 @@ android:layout_width="?attr/TextSizeCaption" android:layout_height="?attr/TextSizeCaption" android:layout_gravity="center_vertical" + android:layout_marginStart="-8sp" android:layout_marginLeft="-8sp" android:adjustViewBounds="false" android:gravity="center_vertical" |