Linkify message text

This commit is contained in:
Moez Bhatti
2017-12-15 21:30:28 -05:00
parent 1773f7ed35
commit 51b9579572
3 changed files with 7 additions and 2 deletions
@@ -39,7 +39,10 @@ open class QkTextView @JvmOverloads constructor(context: Context, attrs: Attribu
super.onAttachedToWindow()
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"?>
<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"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@drawable/ripple"
android:orientation="vertical"
android:paddingBottom="16dp">
@@ -45,6 +45,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="start"
android:autoLink="all"
android:background="@drawable/message_only"
android:gravity="start|center_vertical"
android:minHeight="36dp"
@@ -38,6 +38,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:autoLink="all"
android:background="@drawable/message_only"
android:gravity="start|center_vertical"
android:minHeight="36dp"