Images can be sent throught conversation system

This commit is contained in:
Pierre
2017-12-25 13:08:03 +01:00
parent b45c7d1fd9
commit bae12c79dc
6 changed files with 212 additions and 9 deletions

View File

@ -27,10 +27,18 @@
android:layout_height="wrap_content"
android:hint="@string/fragment_conversation_new_message_placeholder"/>
<ImageButton
android:id="@+id/fragment_conversation_newmessage_pickimage"
android:layout_width="@dimen/fragment_conversation_buttons_width"
android:layout_height="@dimen/fragment_conversation_buttons_height"
android:src="@android:drawable/ic_menu_gallery"
android:scaleType="fitCenter"
android:contentDescription="@string/conversation_message_add_image"/>
<ImageButton
android:id="@+id/fragment_conversation_newmessage_send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="@dimen/fragment_conversation_buttons_width"
android:layout_height="@dimen/fragment_conversation_buttons_height"
android:src="@android:drawable/ic_menu_send"
android:contentDescription="@string/conversation_message_send"/>

View File

@ -6,4 +6,8 @@
<!-- Dimensions for the conversation list -->
<dimen name="fragment_conversations_list_icon_width">20dp</dimen>
<dimen name="fragment_conversations_list_icon_height">20dp</dimen>
<!-- Dimension for the conversation fragment -->
<dimen name="fragment_conversation_buttons_height">50dp</dimen>
<dimen name="fragment_conversation_buttons_width">50dp</dimen>
</resources>

View File

@ -32,7 +32,7 @@
<string name="action_friends_respond_request">Respond request</string>
<string name="action_friends_deny_request">Deny</string>
<string name="popup_respond_friendship_request_title">Respond to the request</string>
<string name="popup_respond_friendship_request_message">Do you want to accept or deny this friendship request ?</string>
<string name="popup_respond_friendship_request_message">Do you want to accept or deny this friendship request ?</string>
<string name="fragment_conversationslist_err_get_list">An error occurred while retrieving conversations list !</string>
<string name="conversations_members_number">%d members</string>
<string name="date_now">now</string>
@ -54,7 +54,12 @@
<string name="fragment_conversation_err_load_message">Could not load messages!</string>
<string name="fragment_conversation_message_image">Conversation message image</string>
<string name="conversation_message_send">Send</string>
<string name="conversation_message_err_too_short">The length of the message is too short !</string>
<string name="conversation_message_err_too_short">The message is too short !</string>
<string name="conversation_message_err_send">The message could not be sent! Please check your message and try again…</string>
<string name="fragment_conversation_new_message_placeholder">New message…</string>
<string name="conversation_message_add_image">Add an image</string>
<string name="conversation_message_remove_image_popup_title">Remove image</string>
<string name="conversation_message_remove_image_popup_message">Do you want to remove selected image ?</string>
<string name="conversation_message_remove_image_popup_confirm">Yes</string>
<string name="conversation_message_remove_image_popup_cancel">No</string>
</resources>