Use AppCompatTextView

This commit is contained in:
Benoit Marty 2021-06-14 23:10:04 +02:00
parent f90ee45d8c
commit e7146f251b
3 changed files with 6 additions and 6 deletions

View File

@ -18,9 +18,9 @@ package im.vector.app.core.ui.views
import android.content.Context
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatTextView
import com.google.android.material.textview.MaterialTextView
class NonScrollingTextView : AppCompatTextView {
class NonScrollingTextView : MaterialTextView {
constructor(context: Context) : super(context)
constructor(context: Context, attrs: AttributeSet) : super(context, attrs)
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super(context, attrs, defStyleAttr)

View File

@ -18,10 +18,10 @@ package im.vector.app.features.home.room.list
import android.content.Context
import android.util.AttributeSet
import android.view.View
import androidx.appcompat.widget.AppCompatTextView
import com.google.android.material.textview.MaterialTextView
import im.vector.app.R
class UnreadCounterBadgeView : AppCompatTextView {
class UnreadCounterBadgeView : MaterialTextView {
constructor(context: Context) : super(context)

View File

@ -38,13 +38,13 @@
<im.vector.app.features.home.room.list.UnreadCounterBadgeView
android:id="@+id/breadcrumbsUnreadCounterBadgeView"
style="@style/VectorTextView.Micro"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:minWidth="18dp"
android:minHeight="18dp"
android:textColor="?colorOnError"
android:textSize="11sp"
android:visibility="gone"
app:layout_constraintCircle="@+id/breadcrumbsImageView"
app:layout_constraintCircleAngle="45"
@ -56,6 +56,7 @@
<TextView
android:id="@+id/breadcrumbsTypingView"
style="@style/VectorTextView.Micro"
android:layout_width="20dp"
android:layout_height="20dp"
android:background="@drawable/circle"
@ -63,7 +64,6 @@
android:gravity="center"
android:text="@string/ellipsis"
android:textColor="?colorOnPrimary"
android:textSize="11sp"
android:textStyle="bold"
android:visibility="gone"
app:layout_constraintCircle="@+id/breadcrumbsImageView"