mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-27 03:49:04 +03:00
allowing the expandable scrollbar to be hidden
This commit is contained in:
parent
a2f64177eb
commit
04d844b1a9
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue