reduce the alpha of the Send Message button, if unavailable
This commit is contained in:
parent
1c1ccb7a4b
commit
2c1482ebdd
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue