forked from upstream-mirrors/quik
Linkify message text
This commit is contained in:
@@ -39,7 +39,10 @@ open class QkTextView @JvmOverloads constructor(context: Context, attrs: Attribu
|
|||||||
super.onAttachedToWindow()
|
super.onAttachedToWindow()
|
||||||
|
|
||||||
textColorObservable?.let { observable ->
|
textColorObservable?.let { observable ->
|
||||||
disposables += observable.subscribe { color -> setTextColor(color) }
|
disposables += observable.subscribe { color ->
|
||||||
|
setTextColor(color)
|
||||||
|
setLinkTextColor(color)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout 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"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
||||||
android:background="@drawable/ripple"
|
android:background="@drawable/ripple"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:paddingBottom="16dp">
|
android:paddingBottom="16dp">
|
||||||
@@ -45,6 +45,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="start"
|
android:layout_gravity="start"
|
||||||
|
android:autoLink="all"
|
||||||
android:background="@drawable/message_only"
|
android:background="@drawable/message_only"
|
||||||
android:gravity="start|center_vertical"
|
android:gravity="start|center_vertical"
|
||||||
android:minHeight="36dp"
|
android:minHeight="36dp"
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="end"
|
android:layout_gravity="end"
|
||||||
|
android:autoLink="all"
|
||||||
android:background="@drawable/message_only"
|
android:background="@drawable/message_only"
|
||||||
android:gravity="start|center_vertical"
|
android:gravity="start|center_vertical"
|
||||||
android:minHeight="36dp"
|
android:minHeight="36dp"
|
||||||
|
|||||||
Reference in New Issue
Block a user