mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Use AppCompatTextView
This commit is contained in:
parent
f90ee45d8c
commit
e7146f251b
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user