reduce the alpha of the Send Message button, if unavailable

This commit is contained in:
tibbi 2020-04-05 12:17:37 +02:00
parent 1c1ccb7a4b
commit 2c1482ebdd
2 changed files with 2 additions and 1 deletions

View File

@ -76,6 +76,7 @@ class ThreadActivity : SimpleActivity() {
thread_send_message.isClickable = false
thread_type_message.onTextChangeListener {
thread_send_message.isClickable = it.isNotEmpty()
thread_send_message.alpha = if (it.isEmpty()) 0.4f else 0.9f
}
}

View File

@ -60,7 +60,7 @@
android:layout_alignParentBottom="true"
android:layout_marginTop="@dimen/small_margin"
android:layout_marginEnd="@dimen/small_margin"
android:alpha="0.9"
android:alpha="0.4"
android:background="?selectableItemBackgroundBorderless"
android:clickable="false"
android:padding="@dimen/medium_margin"