Skip to content

Commit

Permalink
materialize conversation item indicators
Browse files Browse the repository at this point in the history
// FREEBIE
  • Loading branch information
mcginty committed Nov 18, 2014
1 parent 0fc9ff7 commit 5ca8a6d
Show file tree
Hide file tree
Showing 24 changed files with 6,314 additions and 55 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.ai binary
6,254 changes: 6,254 additions & 0 deletions artwork/ic_check.ai

Large diffs are not rendered by default.

Binary file added artwork/ic_check_black_18dp.psd
Binary file not shown.
Binary file added artwork/ic_check_white_18dp.psd
Binary file not shown.
Binary file added artwork/ic_lock_black_18dp.psd
Binary file not shown.
Binary file added artwork/ic_lock_white_18dp.psd
Binary file not shown.
Binary file added res/drawable-hdpi/ic_check_black_18dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_check_white_18dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_lock_black_18dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_lock_white_18dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ic_check_black_18dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ic_check_white_18dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ic_lock_black_18dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ic_lock_white_18dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_check_black_18dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_check_white_18dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_lock_black_18dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_lock_white_18dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxhdpi/ic_check_black_18dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxhdpi/ic_check_white_18dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxhdpi/ic_lock_black_18dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxhdpi/ic_lock_white_18dp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
104 changes: 54 additions & 50 deletions res/layout/conversation_item_sent.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,60 +121,64 @@
android:paddingTop="0dip"
android:layout_gravity="right">

<ImageView android:id="@+id/delivered_indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingRight="3dip"
android:src="?conversation_delivered_indicator"
android:visibility="gone"
android:contentDescription="@string/conversation_item_sent__delivered_description"/>

<TextView android:id="@+id/group_message_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:linksClickable="false"
android:textAppearance="?android:attr/textAppearanceSmall"
android:layout_gravity="right"
android:textColor="?conversation_sent_text_secondary_color"
android:visibility="gone"
android:layout_marginRight="8dip"
android:paddingTop="1dip"/>

<TextView android:id="@+id/conversation_item_date"
android:autoLink="none"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minWidth="15sp"
android:linksClickable="false"
android:textAppearance="?android:attr/textAppearanceSmall"
android:layout_gravity="right"
android:fontFamily="sans-serif-light"
android:textColor="?conversation_sent_text_secondary_color"
android:paddingTop="1dip"
android:paddingBottom="5dp" />

<ImageView
android:id="@+id/sms_secure_indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|right"
android:src="?menu_lock_icon_small"
android:visibility="gone"
android:paddingLeft="4dp"
android:paddingBottom="3dp"
android:contentDescription="@string/conversation_item__secure_message_description" />

<TextView android:id="@+id/group_message_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:linksClickable="false"
android:textAppearance="?android:attr/textAppearanceSmall"
android:layout_gravity="right"
android:textColor="?conversation_sent_text_secondary_color"
android:visibility="gone"
android:layout_marginRight="8dip"
android:paddingTop="1dip"/>

<TextView android:id="@+id/conversation_item_date"
android:autoLink="none"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minWidth="15sp"
android:linksClickable="false"
android:textAppearance="?android:attr/textAppearanceSmall"
android:layout_gravity="right"
android:fontFamily="sans-serif-light"
android:textColor="?conversation_sent_text_secondary_color"
android:paddingTop="1dip"
android:paddingBottom="5dp" />

<LinearLayout android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_gravity="center_vertical|end"
android:gravity="center_vertical"
android:paddingBottom="3dp"
android:paddingLeft="3dp"
android:paddingStart="3dp">

<ImageView android:id="@+id/delivered_indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="?conversation_delivered_indicator"
android:visibility="gone"
android:paddingRight="1dp"
android:contentDescription="@string/conversation_item_sent__delivered_description" />

<ImageView android:id="@+id/sms_secure_indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="?menu_lock_icon_small"
android:visibility="gone"
android:contentDescription="@string/conversation_item__secure_message_description" />

</LinearLayout>
</LinearLayout>

</LinearLayout>

<View android:id="@+id/triangle_tick"
android:background="?conversation_item_sent_triangle_background"
android:layout_width="12dp"
android:layout_height="15dp"
android:layout_marginTop="12dp"
android:layout_alignParentRight="true"
/>
android:layout_width="12dp"
android:layout_height="15dp"
android:layout_alignParentRight="true"
android:layout_marginTop="12dp"
android:background="?conversation_item_sent_triangle_background" />

<TextView android:id="@+id/indicator_text"
android:layout_width="wrap_content"
Expand Down
10 changes: 5 additions & 5 deletions res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<item name="conversation_group_member_name">#99000000</item>
<item name="conversation_sent_text_primary_color">#ffeeeeee</item>
<item name="conversation_sent_text_secondary_color">#44000000</item>
<item name="conversation_sent_text_secondary_color">#55000000</item>
<item name="conversation_received_text_primary_color">#ff111111</item>
<item name="conversation_received_text_secondary_color">#33000000</item>

Expand All @@ -43,7 +43,7 @@
<item name="conversation_send_button_push">@drawable/ic_send_push</item>
<item name="conversation_send_button_sms_secure">@drawable/ic_send_sms_secure</item>
<item name="conversation_send_button_sms_insecure">@drawable/ic_send_sms_insecure</item>
<item name="conversation_delivered_indicator">@drawable/ic_sms_mms_delivered_light</item>
<item name="conversation_delivered_indicator">@drawable/ic_check_black_18dp</item>
<item name="conversation_emoji_toggle">@drawable/ic_emoji_dark</item>
<item name="conversation_keyboard_toggle">@drawable/ic_ime_dark</item>

Expand All @@ -69,7 +69,7 @@
<item name="menu_call_icon">@drawable/ic_menu_call_holo_light</item>
<item name="menu_unlock_icon">@drawable/ic_menu_unlock_holo_light</item>
<item name="menu_lock_icon">@drawable/ic_menu_lock_holo_light</item>
<item name="menu_lock_icon_small">@drawable/ic_menu_lock_small_holo_light</item>

This comment has been minimized.

Copy link
@set0912

set0912 May 24, 2018

Отправлено

<item name="menu_lock_icon_small">@drawable/ic_lock_black_18dp</item>
<item name="menu_trash_icon">@drawable/ic_menu_trash_holo_light</item>
<item name="menu_selectall_icon">@drawable/ic_menu_selectall_holo_light</item>
<item name="menu_split_icon">@drawable/ic_menu_split_holo_light</item>
Expand Down Expand Up @@ -134,7 +134,7 @@
<item name="conversation_send_button_push">@drawable/ic_send_push</item>
<item name="conversation_send_button_sms_secure">@drawable/ic_send_sms_secure</item>
<item name="conversation_send_button_sms_insecure">@drawable/ic_send_sms_insecure_dark</item>
<item name="conversation_delivered_indicator">@drawable/ic_sms_mms_delivered_dark</item>
<item name="conversation_delivered_indicator">@drawable/ic_check_white_18dp</item>
<item name="conversation_emoji_toggle">@drawable/ic_emoji_light</item>
<item name="conversation_keyboard_toggle">@drawable/ic_ime_light</item>

Expand All @@ -145,7 +145,7 @@
<item name="menu_call_icon">@drawable/ic_menu_call_holo_dark</item>
<item name="menu_unlock_icon">@drawable/ic_menu_unlock_holo_dark</item>
<item name="menu_lock_icon">@drawable/ic_menu_lock_holo_dark</item>
<item name="menu_lock_icon_small">@drawable/ic_menu_lock_small_holo_dark</item>
<item name="menu_lock_icon_small">@drawable/ic_lock_white_18dp</item>
<item name="menu_trash_icon">@drawable/ic_menu_trash_holo_dark</item>
<item name="menu_selectall_icon">@drawable/ic_menu_selectall_holo_dark</item>
<item name="menu_split_icon">@drawable/ic_menu_split_holo_dark</item>
Expand Down

0 comments on commit 5ca8a6d

Please sign in to comment.