diff options
author | Christian Schneppe <christian@pix-art.de> | 2019-01-27 14:56:20 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2019-01-27 14:56:20 +0100 |
commit | 71f8e656db044a3b3e28cb82a954521699fe9602 (patch) | |
tree | c65950352826fad22fa90e03773f9f72c5007391 /src/main/res | |
parent | 712c6d32d205fb12bf8b61b3ee544a451dd117ca (diff) |
refactored group chat members into seperate screen
Diffstat (limited to '')
-rw-r--r-- | src/main/res/layout/account_row.xml | 2 | ||||
-rw-r--r-- | src/main/res/layout/activity_muc_details.xml | 38 | ||||
-rw-r--r-- | src/main/res/layout/activity_muc_users.xml | 33 | ||||
-rw-r--r-- | src/main/res/layout/contact.xml | 2 | ||||
-rw-r--r-- | src/main/res/layout/user_preview.xml | 17 | ||||
-rw-r--r-- | src/main/res/values/dimens.xml | 1 | ||||
-rw-r--r-- | src/main/res/values/strings.xml | 2 |
7 files changed, 86 insertions, 9 deletions
diff --git a/src/main/res/layout/account_row.xml b/src/main/res/layout/account_row.xml index f99f6c0dd..e3f3d99e1 100644 --- a/src/main/res/layout/account_row.xml +++ b/src/main/res/layout/account_row.xml @@ -5,7 +5,7 @@ <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?android:selectableItemBackground" + android:background="?selectableItemBackground" android:paddingStart="8dp" android:paddingLeft="8dp" android:paddingTop="8dp" diff --git a/src/main/res/layout/activity_muc_details.xml b/src/main/res/layout/activity_muc_details.xml index c29d78c26..b8da6f213 100644 --- a/src/main/res/layout/activity_muc_details.xml +++ b/src/main/res/layout/activity_muc_details.xml @@ -463,8 +463,8 @@ </android.support.v7.widget.CardView> <android.support.v7.widget.CardView - android:id="@+id/muc_more_details" - android:layout_width="match_parent" + android:id="@+id/users_wrapper" + android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginStart="@dimen/activity_horizontal_margin" android:layout_marginLeft="@dimen/activity_horizontal_margin" @@ -489,16 +489,40 @@ android:layout_marginBottom="24dp" android:text="@string/invite_contact" /> - <LinearLayout - android:id="@+id/muc_members" + <android.support.v7.widget.RecyclerView + android:id="@+id/users" android:layout_width="fill_parent" android:layout_height="0dp" + android:layout_marginStart="-2dp" + android:layout_marginEnd="-2dp" android:layout_weight="1" android:divider="?android:dividerHorizontal" - android:orientation="vertical" - android:showDividers="middle" /> - </LinearLayout> + android:orientation="horizontal" + android:paddingStart="@dimen/card_padding_regular" + android:paddingTop="@dimen/card_padding_regular" + android:paddingEnd="@dimen/card_padding_regular" + android:paddingBottom="@dimen/card_padding_list" /> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_gravity="end" + android:orientation="horizontal"> + <Button + android:id="@+id/show_users" + style="@style/Widget.Conversations.Button.Borderless" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:minWidth="0dp" + android:paddingStart="16dp" + android:paddingLeft="16dp" + android:paddingEnd="16dp" + android:paddingRight="16dp" + android:text="@string/view_users" + android:textColor="?attr/colorAccent" /> + </LinearLayout> + </LinearLayout> </android.support.v7.widget.CardView> </LinearLayout> </ScrollView> diff --git a/src/main/res/layout/activity_muc_users.xml b/src/main/res/layout/activity_muc_users.xml new file mode 100644 index 000000000..d6bdf8435 --- /dev/null +++ b/src/main/res/layout/activity_muc_users.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<layout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto"> + + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:background="?attr/color_background_tertiary" + android:orientation="vertical"> + + <include + android:id="@+id/toolbar" + layout="@layout/toolbar" /> + + + <android.support.design.widget.CoordinatorLayout + android:id="@+id/coordinator" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="?attr/color_background_tertiary"> + + <android.support.v7.widget.RecyclerView + android:id="@+id/list" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="?attr/color_background_tertiary" + android:orientation="vertical" + app:layoutManager="android.support.v7.widget.LinearLayoutManager" /> + </android.support.design.widget.CoordinatorLayout> + + </LinearLayout> +</layout>
\ No newline at end of file diff --git a/src/main/res/layout/contact.xml b/src/main/res/layout/contact.xml index d7d8956ec..e5b71d743 100644 --- a/src/main/res/layout/contact.xml +++ b/src/main/res/layout/contact.xml @@ -5,7 +5,7 @@ <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?attr/list_item_background" + android:background="?selectableItemBackground" android:padding="@dimen/list_padding"> <com.makeramen.roundedimageview.RoundedImageView diff --git a/src/main/res/layout/user_preview.xml b/src/main/res/layout/user_preview.xml new file mode 100644 index 000000000..ecc05e623 --- /dev/null +++ b/src/main/res/layout/user_preview.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<layout xmlns:android="http://schemas.android.com/apk/res/android"> + + <de.pixart.messenger.ui.widget.SquareFrameLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="?selectableItemBackground" + android:padding="2dp"> + + <ImageView + android:id="@+id/avatar" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/black54" + android:scaleType="centerInside" /> + </de.pixart.messenger.ui.widget.SquareFrameLayout> +</layout>
\ No newline at end of file diff --git a/src/main/res/values/dimens.xml b/src/main/res/values/dimens.xml index 969d1c8c2..211066fd6 100644 --- a/src/main/res/values/dimens.xml +++ b/src/main/res/values/dimens.xml @@ -31,4 +31,5 @@ <dimen name="avatar">48dp</dimen> <dimen name="avatar_on_conversation_overview">56dp</dimen> <dimen name="avatar_on_status_message">32dp</dimen> + <dimen name="avatar_big">480dp</dimen> </resources> diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 188fc764c..3920b7eeb 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -870,4 +870,6 @@ <string name="unable_to_decrypt_backup">Unable to decrypt backup. Is the password correct?</string> <string name="pref_prefer_xmpp_avatar_summary">Prefer the users XMPP avatar instead of the one from your address book</string> <string name="pref_prefer_xmpp_avatar">Prefer XMPP avatar</string> + <string name="view_users">View members</string> + <string name="group_chat_members">Group chat members</string> </resources> |