mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-02-26 08:27:39 +01:00
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…
x
Reference in New Issue
Block a user