diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java | 1 | ||||
-rw-r--r-- | src/main/res/layout/activity_muc_details.xml | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java index fab8c5ea7..e31eba559 100644 --- a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java +++ b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java @@ -552,6 +552,7 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers updateView(); } } + this.binding.detailsMucAvatar.setImageBitmap(avatarService().get(mConversation, getPixel(Config.AVATAR_SIZE))); } private void updateView() { diff --git a/src/main/res/layout/activity_muc_details.xml b/src/main/res/layout/activity_muc_details.xml index 523e2b53c..35fe03f16 100644 --- a/src/main/res/layout/activity_muc_details.xml +++ b/src/main/res/layout/activity_muc_details.xml @@ -34,6 +34,7 @@ <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" + android:gravity="center_horizontal" android:orientation="vertical" android:padding="@dimen/card_padding_regular"> @@ -49,6 +50,17 @@ android:textIsSelectable="false" android:textStyle="bold" /> + <ImageView + android:id="@+id/details_muc_avatar" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:adjustViewBounds="true" + android:background="@drawable/message_border" + android:maxHeight="384dp" + android:maxWidth="384dp" + android:padding="1dp" + android:scaleType="centerCrop" /> + <RelativeLayout android:id="@+id/muc_settings" android:layout_width="fill_parent" |