mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2025-07-07 18:42:53 +00:00
Can display friendship status.
This commit is contained in:
96
app/src/main/res/layout/fragment_user_access_denied.xml
Normal file
96
app/src/main/res/layout/fragment_user_access_denied.xml
Normal file
@ -0,0 +1,96 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<!-- Basic account information -->
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:layout_marginTop="16dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/user_account_image"
|
||||
android:layout_width="@dimen/account_image_default_width"
|
||||
android:layout_height="@dimen/account_image_default_height"
|
||||
android:src="@drawable/default_account_image"
|
||||
android:contentDescription="@string/user_image_description"
|
||||
android:layout_marginEnd="10dp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/user_account_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
tools:text="User account name"
|
||||
android:layout_gravity="center_vertical"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
<!-- Available actions -->
|
||||
<LinearLayout
|
||||
android:id="@+id/buttons_list"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:layout_marginTop="0dp">
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_send_request"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/button_send_friend_request"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_cancel_request"
|
||||
style="@style/Widget.AppCompat.Button.Colored"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/button_cancel_friend_request"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/button_send_request" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_accept_request"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/button_accept_friend_request"
|
||||
app:layout_constraintTop_toBottomOf="@+id/button_cancel_request"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_reject_request"
|
||||
style="@style/Widget.AppCompat.Button.Colored"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/button_reject_friend_request"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/button_accept_request" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Account private notice -->
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:text="@string/notice_user_page_private"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@id/buttons_list"
|
||||
android:layout_marginBottom="8dp" />
|
||||
|
||||
</android.support.constraint.ConstraintLayout>
|
@ -7,7 +7,7 @@
|
||||
<color name="holo_green_dark">#ff669900</color>
|
||||
<color name="darker_gray">#aaa</color>
|
||||
<color name="darker_darker_gray">#5b5b5b</color>
|
||||
<color name="dark_blue">#303F9F</color>
|
||||
<color name="dark_blue">#303f9f</color>
|
||||
|
||||
<!-- Conversation messages -->
|
||||
<color name="conversation_user_messages_background">#3F51B5</color>
|
||||
|
@ -50,7 +50,7 @@
|
||||
<string name="date_m">m</string>
|
||||
<string name="date_s">s</string>
|
||||
<string name="date_hours">date_hours</string>
|
||||
<string name="err_get_user_info">Couldn\'t get user information !</string>
|
||||
<string name="err_get_user_info">Could not get user information !</string>
|
||||
<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>
|
||||
@ -166,4 +166,10 @@
|
||||
<string name="notif_on_user_page">on %1$s\'s page</string>
|
||||
<string name="action_delete_notification">Delete</string>
|
||||
<string name="err_delete_notification">An error occurred while trying to delete the notification!</string>
|
||||
<string name="notice_user_page_private">This account is private.</string>
|
||||
<string name="button_send_friend_request">Send request</string>
|
||||
<string name="button_cancel_friend_request">Cancel request</string>
|
||||
<string name="button_accept_friend_request">Accept request</string>
|
||||
<string name="button_reject_friend_request">Reject request</string>
|
||||
<string name="err_get_friendship_status">An error occurred while retrieving friendship status!</string>
|
||||
</resources>
|
||||
|
Reference in New Issue
Block a user