add some border around the "Internal" at the filepicker dialog
This commit is contained in:
parent
3376e5f223
commit
60422256ec
4 changed files with 17 additions and 4 deletions
|
@ -128,7 +128,15 @@ class Breadcrumbs(context: Context, attrs: AttributeSet) : LinearLayout(context,
|
||||||
mInflater.inflate(R.layout.breadcrumb_item, null, false).apply {
|
mInflater.inflate(R.layout.breadcrumb_item, null, false).apply {
|
||||||
var textToAdd = item.name
|
var textToAdd = item.name
|
||||||
if (addPrefix)
|
if (addPrefix)
|
||||||
textToAdd = " -> $textToAdd"
|
textToAdd = "/ $textToAdd"
|
||||||
|
|
||||||
|
if (childCount == 0) {
|
||||||
|
resources.apply {
|
||||||
|
background = getDrawable(R.drawable.breadcrumb_gradient)
|
||||||
|
val medium = getDimension(R.dimen.medium_margin).toInt()
|
||||||
|
setPadding(medium, medium, medium, medium)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
breadcrumb_text.text = textToAdd
|
breadcrumb_text.text = textToAdd
|
||||||
breadcrumb_text.setTextColor(mTextColor)
|
breadcrumb_text.setTextColor(mTextColor)
|
||||||
|
|
BIN
commons/src/main/res/drawable/breadcrumb_gradient.9.png
Normal file
BIN
commons/src/main/res/drawable/breadcrumb_gradient.9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 358 B |
|
@ -4,5 +4,7 @@
|
||||||
android:id="@+id/breadcrumb_text"
|
android:id="@+id/breadcrumb_text"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingBottom="@dimen/tiny_margin"
|
android:paddingBottom="@dimen/medium_margin"
|
||||||
android:paddingTop="@dimen/tiny_margin"/>
|
android:paddingLeft="@dimen/small_margin"
|
||||||
|
android:paddingRight="@dimen/small_margin"
|
||||||
|
android:paddingTop="@dimen/medium_margin"/>
|
||||||
|
|
|
@ -16,7 +16,10 @@
|
||||||
android:id="@+id/filepicker_breadcrumbs"
|
android:id="@+id/filepicker_breadcrumbs"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="@dimen/activity_margin"/>
|
android:paddingBottom="@dimen/medium_margin"
|
||||||
|
android:paddingLeft="@dimen/activity_margin"
|
||||||
|
android:paddingRight="@dimen/activity_margin"
|
||||||
|
android:paddingTop="@dimen/activity_margin"/>
|
||||||
|
|
||||||
<android.support.v7.widget.RecyclerView
|
<android.support.v7.widget.RecyclerView
|
||||||
android:id="@+id/filepicker_list"
|
android:id="@+id/filepicker_list"
|
||||||
|
|
Loading…
Reference in a new issue