Skip to content

Commit

Permalink
fixing overlapping room image and title
Browse files Browse the repository at this point in the history
- the room title was missing constraints for the different types of leading icons
  • Loading branch information
ouchadam committed Mar 9, 2022
1 parent 2048b85 commit 7b4598f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/5468.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixing room titles overlapping the room image in the room toolbar
9 changes: 8 additions & 1 deletion vector/src/main/res/layout/view_room_detail_toolbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@
tools:ignore="MissingConstraints"
tools:visibility="invisible" />

<androidx.constraintlayout.widget.Barrier
android:id="@+id/imageGroupBarrier"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:barrierDirection="end"
app:constraint_referenced_ids="roomToolbarDecorationImageView,roomToolbarAvatarImageView,roomToolbarPresenceImageView,roomToolbarPublicImageView" />

<TextView
android:id="@+id/roomToolbarTitleView"
android:layout_width="0dp"
Expand All @@ -72,7 +79,7 @@
app:layout_constraintBottom_toBottomOf="@id/roomToolbarAvatarImageView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toEndOf="@id/roomToolbarDecorationImageView"
app:layout_constraintStart_toEndOf="@id/imageGroupBarrier"
app:layout_constraintTop_toTopOf="@id/roomToolbarAvatarImageView"
app:layout_constraintVertical_chainStyle="packed"
app:layout_goneMarginStart="7dp"
Expand Down

0 comments on commit 7b4598f

Please sign in to comment.