-
Notifications
You must be signed in to change notification settings - Fork 907
Feature/bma/fix typing #6072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/bma/fix typing #6072
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,13 +37,6 @@ | |
|
|
||
| </com.google.android.material.appbar.AppBarLayout> | ||
|
|
||
| <androidx.constraintlayout.widget.Barrier | ||
| android:id="@+id/timelineRecyclerViewBarrier" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| app:barrierDirection="top" | ||
| app:constraint_referenced_ids="composerLayout,notificationAreaView,failedMessagesWarningStub" /> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this was duplicated code with |
||
|
|
||
| <im.vector.app.features.sync.widget.SyncStateView | ||
| android:id="@+id/syncStateView" | ||
| android:layout_width="0dp" | ||
|
|
@@ -68,17 +61,16 @@ | |
| android:layout_height="wrap_content" | ||
| android:background="?android:colorBackground" | ||
| android:minHeight="54dp" | ||
| android:visibility="visible" | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| app:layout_constraintEnd_toEndOf="parent" | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| app:layout_constraintTop_toBottomOf="@id/locationLiveStatusIndicator" /> | ||
|
|
||
| <androidx.recyclerview.widget.RecyclerView | ||
| android:id="@+id/timelineRecyclerView" | ||
| android:layout_width="0dp" | ||
| android:layout_height="0dp" | ||
| android:overScrollMode="always" | ||
| app:layout_constraintBottom_toTopOf="@id/timelineRecyclerViewBarrier" | ||
| app:layout_constraintBottom_toTopOf="@id/typingMessageView" | ||
| app:layout_constraintEnd_toEndOf="parent" | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| app:layout_constraintTop_toBottomOf="@id/removeJitsiWidgetView" | ||
|
|
@@ -103,14 +95,13 @@ | |
| <im.vector.app.core.ui.views.TypingMessageView | ||
| android:id="@+id/typingMessageView" | ||
| android:layout_width="0dp" | ||
| android:layout_height="20dp" | ||
| android:layout_height="wrap_content" | ||
| android:paddingStart="20dp" | ||
| android:paddingEnd="20dp" | ||
| app:layout_constraintBottom_toTopOf="@id/composerLayout" | ||
| app:layout_constraintBottom_toTopOf="@id/bottomBarrier" | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This view is now on top of the barrier, and the timeline is now on top of this view. |
||
| app:layout_constraintEnd_toEndOf="parent" | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| app:layout_constraintTop_toBottomOf="@id/timelineRecyclerView" | ||
| tools:visibility="visible" /> | ||
| app:layout_constraintTop_toBottomOf="@id/timelineRecyclerView" /> | ||
|
|
||
| <im.vector.app.core.ui.views.NotificationAreaView | ||
| android:id="@+id/notificationAreaView" | ||
|
|
@@ -130,7 +121,8 @@ | |
| android:layout="@layout/view_stub_failed_message_warning_layout" | ||
| app:layout_constraintBottom_toTopOf="@id/composerLayout" | ||
| app:layout_constraintEnd_toEndOf="parent" | ||
| app:layout_constraintStart_toStartOf="parent" /> | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| tools:layout_height="300dp" /> | ||
|
|
||
| <im.vector.app.features.home.room.detail.composer.MessageComposerView | ||
| android:id="@+id/composerLayout" | ||
|
|
@@ -142,7 +134,8 @@ | |
| android:visibility="gone" | ||
| app:layout_constraintBottom_toBottomOf="parent" | ||
| app:layout_constraintEnd_toEndOf="parent" | ||
| app:layout_constraintStart_toStartOf="parent" /> | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| tools:visibility="visible" /> | ||
|
|
||
| <im.vector.app.features.home.room.detail.composer.voice.VoiceMessageRecorderView | ||
| android:id="@+id/voiceMessageRecorderView" | ||
|
|
@@ -166,11 +159,11 @@ | |
| app:layout_constraintTop_toBottomOf="@id/appBarLayout" /> | ||
|
|
||
| <androidx.constraintlayout.widget.Barrier | ||
| android:id="@+id/badgeBarrier" | ||
| android:id="@+id/bottomBarrier" | ||
| android:layout_width="0dp" | ||
| android:layout_height="0dp" | ||
| app:barrierDirection="top" | ||
| app:constraint_referenced_ids="composerLayout,notificationAreaView, failedMessagesWarningStub" /> | ||
| app:constraint_referenced_ids="composerLayout,notificationAreaView,failedMessagesWarningStub" /> | ||
|
|
||
| <im.vector.app.core.platform.BadgeFloatingActionButton | ||
| android:id="@+id/jumpToBottomView" | ||
|
|
@@ -184,7 +177,7 @@ | |
| app:badgeTextColor="?colorOnPrimary" | ||
| app:badgeTextPadding="2dp" | ||
| app:badgeTextSize="10sp" | ||
| app:layout_constraintBottom_toTopOf="@id/badgeBarrier" | ||
| app:layout_constraintBottom_toTopOf="@id/bottomBarrier" | ||
| app:layout_constraintEnd_toEndOf="parent" | ||
| app:tint="@android:color/black" /> | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,38 +1,42 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <androidx.constraintlayout.widget.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="wrap_content"> | ||
| android:layout_height="wrap_content" | ||
| android:paddingTop="2dp"> | ||
|
|
||
| <!-- This is a LinearLayout which will contain avatars of the typing users --> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this comment feels like it could be replaced by renaming the id to
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point, done
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (I keep the comment since I added it for clarity when looking at the layout. Since there is no avatar preview) |
||
| <im.vector.app.core.ui.views.TypingMessageAvatar | ||
| android:id="@+id/avatars" | ||
| android:id="@+id/typingUserAvatars" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_height="@dimen/typing_avatar_size" | ||
| app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" | ||
| app:layout_constraintBottom_toBottomOf="parent" | ||
| app:layout_constraintStart_toStartOf="parent" | ||
| app:layout_constraintTop_toTopOf="parent" /> | ||
|
|
||
| <androidx.appcompat.widget.AppCompatTextView | ||
| android:id="@+id/users_name" | ||
| android:id="@+id/typingUserText" | ||
| style="@style/Widget.Vector.TextView.Body" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="0dp" | ||
| android:layout_height="wrap_content" | ||
| android:layout_marginStart="8dp" | ||
| android:gravity="center" | ||
| android:textColor="?vctr_content_secondary" | ||
| app:layout_constraintBottom_toBottomOf="@id/avatars" | ||
| app:layout_constraintStart_toEndOf="@id/avatars" | ||
| app:layout_constraintTop_toTopOf="@id/avatars" /> | ||
| app:layout_constraintBottom_toBottomOf="parent" | ||
| app:layout_constraintStart_toEndOf="@id/typingUserAvatars" | ||
| app:layout_constraintTop_toTopOf="parent" | ||
| tools:text="@sample/users.json/data/displayName" /> | ||
|
|
||
| <im.vector.app.core.ui.views.TypingMessageDotsView | ||
| android:id="@+id/viewDots" | ||
| android:id="@+id/typingUserDots" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="0dp" | ||
| android:layout_height="wrap_content" | ||
| android:layout_marginStart="8dp" | ||
| android:gravity="center" | ||
| android:visibility="visible" | ||
| app:layout_constraintBottom_toBottomOf="@id/users_name" | ||
| app:layout_constraintStart_toEndOf="@id/users_name" | ||
| app:layout_constraintTop_toTopOf="@id/users_name" /> | ||
| app:layout_constraintBottom_toBottomOf="parent" | ||
| app:layout_constraintStart_toEndOf="@id/typingUserText" | ||
| app:layout_constraintTop_toTopOf="parent" /> | ||
|
|
||
| </androidx.constraintlayout.widget.ConstraintLayout> | ||
| </androidx.constraintlayout.widget.ConstraintLayout> | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if
renderis always called from the main thread we could use the unsafe lazy initializer to avoid a synchronised call