make checkmark icon more material

This commit is contained in:
Daniel Gultsch 2020-01-05 13:30:26 +01:00
parent 0ddfc51d6c
commit 83e1d0d0a5
21 changed files with 25 additions and 27 deletions

View file

@ -208,6 +208,8 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie
break; break;
case Message.STATUS_SEND_RECEIVED: case Message.STATUS_SEND_RECEIVED:
case Message.STATUS_SEND_DISPLAYED: case Message.STATUS_SEND_DISPLAYED:
viewHolder.indicatorReceived.setImageResource(darkBackground ? R.drawable.ic_done_white_18dp : R.drawable.ic_done_black_18dp);
viewHolder.indicatorReceived.setAlpha(darkBackground ? 0.7f : 0.57f);
viewHolder.indicatorReceived.setVisibility(View.VISIBLE); viewHolder.indicatorReceived.setVisibility(View.VISIBLE);
break; break;
case Message.STATUS_SEND_FAILED: case Message.STATUS_SEND_FAILED:

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 560 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 402 B

View file

Before

Width:  |  Height:  |  Size: 177 B

After

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 188 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 717 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1,016 B

View file

Before

Width:  |  Height:  |  Size: 227 B

After

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

View file

@ -1,49 +1,48 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:paddingBottom="3dp" android:paddingLeft="8dp"
android:paddingLeft="8dp" android:paddingTop="3dp"
android:paddingRight="8dp" android:paddingRight="8dp"
android:paddingTop="3dp"> android:paddingBottom="3dp">
<LinearLayout <LinearLayout
android:id="@+id/message_photo_box" android:id="@+id/message_photo_box"
android:orientation="vertical"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentRight="true"> android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:orientation="vertical">
<com.makeramen.roundedimageview.RoundedImageView <com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/message_photo" android:id="@+id/message_photo"
android:layout_width="48dp" android:layout_width="48dp"
android:layout_height="48dp" android:layout_height="48dp"
android:scaleType="fitXY" android:scaleType="fitXY"
app:riv_corner_radius="2dp" /> app:riv_corner_radius="2dp" />
<View <View
android:id="@+id/placeholder" android:id="@+id/placeholder"
android:layout_height="3dp"
android:layout_width="48dp" android:layout_width="48dp"
/> android:layout_height="3dp" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/message_box" android:id="@+id/message_box"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_marginLeft="-4dp"
android:layout_toLeftOf="@+id/message_photo_box" android:layout_toLeftOf="@+id/message_photo_box"
android:background="?attr/message_bubble_sent" android:background="?attr/message_bubble_sent"
android:minHeight="53dp" android:longClickable="true"
android:layout_marginLeft="-4dp" android:minHeight="53dp">
android:longClickable="true">
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -52,7 +51,7 @@
android:orientation="vertical" android:orientation="vertical"
android:padding="2dp"> android:padding="2dp">
<include layout="@layout/message_content"/> <include layout="@layout/message_content" />
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -66,16 +65,17 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_marginEnd="4sp"
android:layout_marginRight="4sp"
android:gravity="center_vertical" android:gravity="center_vertical"
android:text="@string/sending" android:text="@string/sending"
android:textAppearance="@style/TextAppearance.Conversations.Caption"/> android:textAppearance="@style/TextAppearance.Conversations.Caption" />
<ImageView <ImageView
android:id="@+id/security_indicator" android:id="@+id/security_indicator"
android:layout_width="?attr/TextSizeCaption" android:layout_width="?attr/TextSizeCaption"
android:layout_height="?attr/TextSizeCaption" android:layout_height="?attr/TextSizeCaption"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_marginLeft="4sp"
android:alpha="0.54" android:alpha="0.54"
android:gravity="center_vertical" android:gravity="center_vertical"
android:src="@drawable/ic_lock_black_18dp" /> android:src="@drawable/ic_lock_black_18dp" />
@ -85,7 +85,6 @@
android:layout_width="?attr/TextSizeCaption" android:layout_width="?attr/TextSizeCaption"
android:layout_height="?attr/TextSizeCaption" android:layout_height="?attr/TextSizeCaption"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_marginLeft="4sp"
android:alpha="0.54" android:alpha="0.54"
android:gravity="center_vertical" android:gravity="center_vertical"
android:src="@drawable/ic_mode_edit_black_18dp" /> android:src="@drawable/ic_mode_edit_black_18dp" />
@ -95,10 +94,9 @@
android:layout_width="?attr/TextSizeCaption" android:layout_width="?attr/TextSizeCaption"
android:layout_height="?attr/TextSizeCaption" android:layout_height="?attr/TextSizeCaption"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_marginLeft="4sp"
android:alpha="0.54" android:alpha="0.54"
android:gravity="center_vertical" android:gravity="center_vertical"
android:src="@drawable/ic_received_indicator" /> android:src="@drawable/ic_done_black_18dp" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

View file

@ -87,7 +87,6 @@
<item type="reference" name="icon_edit">@drawable/ic_edit_white_24dp</item> <item type="reference" name="icon_edit">@drawable/ic_edit_white_24dp</item>
<item type="reference" name="icon_edit_body">@drawable/ic_edit_black_24dp</item> <item type="reference" name="icon_edit_body">@drawable/ic_edit_black_24dp</item>
<item type="reference" name="icon_save">@drawable/ic_save_black_24dp</item> <item type="reference" name="icon_save">@drawable/ic_save_black_24dp</item>
<item type="reference" name="icon_done">@drawable/ic_done_black_24dp</item>
<item type="reference" name="icon_group">@drawable/ic_group_white_24dp</item> <item type="reference" name="icon_group">@drawable/ic_group_white_24dp</item>
<item type="reference" name="icon_new">@drawable/ic_add_white_24dp</item> <item type="reference" name="icon_new">@drawable/ic_add_white_24dp</item>
<item type="reference" name="icon_quote">@drawable/ic_reply_white_24dp</item> <item type="reference" name="icon_quote">@drawable/ic_reply_white_24dp</item>
@ -202,7 +201,6 @@
<item type="reference" name="icon_edit">@drawable/ic_edit_white_24dp</item> <item type="reference" name="icon_edit">@drawable/ic_edit_white_24dp</item>
<item type="reference" name="icon_edit_body">@drawable/ic_edit_white_24dp</item> <item type="reference" name="icon_edit_body">@drawable/ic_edit_white_24dp</item>
<item type="reference" name="icon_save">@drawable/ic_save_white_24dp</item> <item type="reference" name="icon_save">@drawable/ic_save_white_24dp</item>
<item type="reference" name="icon_done">@drawable/ic_done_black_24dp</item>
<item type="reference" name="icon_group">@drawable/ic_group_white_24dp</item> <item type="reference" name="icon_group">@drawable/ic_group_white_24dp</item>
<item type="reference" name="icon_new">@drawable/ic_add_white_24dp</item> <item type="reference" name="icon_new">@drawable/ic_add_white_24dp</item>
<item type="reference" name="icon_quote">@drawable/ic_reply_white_24dp</item> <item type="reference" name="icon_quote">@drawable/ic_reply_white_24dp</item>