mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
8f551c8b32
In particular, there were many issues with drawing corners. Unfortunately, there's no pretty way to get masking working on every Android version, so we have to switch back to using custom backgrounds and then using multiple masking methods depending on Android version. Also, I had to remove attr references in drawables. They crash on 4.x.
18 lines
635 B
XML
18 lines
635 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layer-list
|
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<item
|
|
android:top="2px"
|
|
android:bottom="2px">
|
|
|
|
<shape android:shape="rectangle">
|
|
<corners
|
|
android:topLeftRadius="@dimen/message_corner_collapse_radius"
|
|
android:topRightRadius="@dimen/message_corner_radius"
|
|
android:bottomRightRadius="@dimen/message_corner_radius"
|
|
android:bottomLeftRadius="@dimen/message_corner_radius" />
|
|
<solid android:color="@color/white" />
|
|
</shape>
|
|
</item>
|
|
</layer-list>
|