some style update at breadcrumbs
This commit is contained in:
parent
fc949c57df
commit
849d124d53
1 changed files with 10 additions and 9 deletions
|
@ -125,17 +125,18 @@ class Breadcrumbs(context: Context, attrs: AttributeSet) : LinearLayout(context,
|
|||
}
|
||||
|
||||
private fun addBreadcrumb(item: FileDirItem, addPrefix: Boolean) {
|
||||
val view = mInflater.inflate(R.layout.breadcrumb_item, null, false)
|
||||
mInflater.inflate(R.layout.breadcrumb_item, null, false).apply {
|
||||
var textToAdd = item.name
|
||||
if (addPrefix)
|
||||
textToAdd = " -> " + textToAdd
|
||||
textToAdd = " -> $textToAdd"
|
||||
|
||||
view.breadcrumb_text.text = textToAdd
|
||||
view.breadcrumb_text.setTextColor(mTextColor)
|
||||
addView(view)
|
||||
view.setOnClickListener(this)
|
||||
breadcrumb_text.text = textToAdd
|
||||
breadcrumb_text.setTextColor(mTextColor)
|
||||
addView(this)
|
||||
setOnClickListener(this@Breadcrumbs)
|
||||
|
||||
view.tag = item
|
||||
tag = item
|
||||
}
|
||||
}
|
||||
|
||||
fun removeBreadcrumb() {
|
||||
|
|
Loading…
Reference in a new issue