mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-23 07:40:20 +01:00
allowing the expandable scrollbar to be hidden
This commit is contained in:
parent
a2f64177eb
commit
04d844b1a9
@ -40,11 +40,15 @@ abstract class ExpandableTextItem : VectorEpoxyModel<ExpandableTextItem.Holder>(
|
||||
@EpoxyAttribute(EpoxyAttribute.Option.DoNotHash)
|
||||
var movementMethod: MovementMethod? = null
|
||||
|
||||
@EpoxyAttribute
|
||||
var enableScrollBar = true
|
||||
|
||||
private var isExpanded = false
|
||||
private var expandedLines = 0
|
||||
|
||||
override fun bind(holder: Holder) {
|
||||
super.bind(holder)
|
||||
holder.content.isVerticalScrollBarEnabled = enableScrollBar
|
||||
holder.content.text = content
|
||||
holder.content.copyOnLongClick()
|
||||
holder.content.movementMethod = movementMethod
|
||||
|
Loading…
Reference in New Issue
Block a user