mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-04 22:06:54 +01:00
Renames ids for clarity
This commit is contained in:
parent
2e189a1ab0
commit
32573881e4
@ -31,7 +31,8 @@ import javax.inject.Inject
|
||||
class TypingMessageView @JvmOverloads constructor(
|
||||
context: Context,
|
||||
attrs: AttributeSet? = null,
|
||||
defStyleAttr: Int = 0) : ConstraintLayout(context, attrs, defStyleAttr) {
|
||||
defStyleAttr: Int = 0
|
||||
) : ConstraintLayout(context, attrs, defStyleAttr) {
|
||||
|
||||
val views: TypingMessageLayoutBinding
|
||||
|
||||
@ -44,8 +45,8 @@ class TypingMessageView @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
fun render(typingUsers: List<SenderInfo>, avatarRenderer: AvatarRenderer) {
|
||||
views.usersName.text = typingHelper.getNotificationTypingMessage(typingUsers)
|
||||
views.avatars.render(typingUsers, avatarRenderer)
|
||||
views.typingUserText.text = typingHelper.getNotificationTypingMessage(typingUsers)
|
||||
views.typingUserAvatars.render(typingUsers, avatarRenderer)
|
||||
}
|
||||
|
||||
override fun onDetachedFromWindow() {
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
<!-- This is a LinearLayout which will contain avatars of the typing users -->
|
||||
<im.vector.app.core.ui.views.TypingMessageAvatar
|
||||
android:id="@+id/avatars"
|
||||
android:id="@+id/typingUserAvatars"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/typing_avatar_size"
|
||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
||||
@ -17,7 +17,7 @@
|
||||
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="wrap_content"
|
||||
@ -25,18 +25,18 @@
|
||||
android:gravity="center"
|
||||
android:textColor="?vctr_content_secondary"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/avatars"
|
||||
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="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:gravity="center"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/users_name"
|
||||
app:layout_constraintStart_toEndOf="@id/typingUserText"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
Loading…
Reference in New Issue
Block a user