-
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the attachment background the same as the input bar background (#…
…3477) * Make the attachment background the same as the input bar background Two different users recently complained that they find drafting images confusing. One of them thought that they had already sent it, the other one didn't know how to send it (both of them figured it out after ~10s, but still, it's nicer to avoid such confusion). In both cases, the problem was that the background of the attached file is the same as the chat background, not the same as the input bar, even though the attached file belongs to the input bar and not to the chat. * Add a stroke around the to-be attachment
- Loading branch information
Showing
4 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/main/res/drawable-ldrtl/message_bubble_background_sent_alone_with_border.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?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"> | ||
<stroke android:width="1dp" android:color="#55888888" /> | ||
<corners | ||
android:topLeftRadius="@dimen/message_corner_radius" | ||
android:topRightRadius="@dimen/message_corner_radius" | ||
android:bottomRightRadius="@dimen/message_corner_radius" /> | ||
<solid android:color="?attr/conversation_item_incoming_bubble_color" /> | ||
</shape> | ||
</item> | ||
</layer-list> |
16 changes: 16 additions & 0 deletions
16
src/main/res/drawable/message_bubble_background_sent_alone_with_border.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?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"> | ||
<stroke android:width="1dp" android:color="#55888888" /> | ||
<corners | ||
android:topLeftRadius="@dimen/message_corner_radius" | ||
android:topRightRadius="@dimen/message_corner_radius" | ||
android:bottomLeftRadius="@dimen/message_corner_radius" /> | ||
<solid android:color="?attr/conversation_item_incoming_bubble_color" /> | ||
</shape> | ||
</item> | ||
</layer-list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters