* Make image in BackgroundMessageView adapt to the height, fix #1618 * Hide filters panel when showing status view in notifications
This commit is contained in:
parent
d9c802982e
commit
656644b7cb
6 changed files with 29 additions and 7 deletions
|
|
@ -39,7 +39,7 @@ class BackgroundMessageView @JvmOverloads constructor(
|
|||
fun setup(@DrawableRes imageRes: Int, @StringRes messageRes: Int,
|
||||
clickListener: ((v: View) -> Unit)? = null) {
|
||||
messageTextView.setText(messageRes)
|
||||
messageTextView.setCompoundDrawablesWithIntrinsicBounds(0, imageRes, 0, 0)
|
||||
imageView.setImageResource(imageRes)
|
||||
button.setOnClickListener(clickListener)
|
||||
button.visible(clickListener != null)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue