add some border around the "Internal" at the filepicker dialog

This commit is contained in:
tibbi 2017-07-01 13:43:11 +02:00
parent 3376e5f223
commit 60422256ec
4 changed files with 17 additions and 4 deletions

View file

@ -128,7 +128,15 @@ class Breadcrumbs(context: Context, attrs: AttributeSet) : LinearLayout(context,
mInflater.inflate(R.layout.breadcrumb_item, null, false).apply {
var textToAdd = item.name
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.setTextColor(mTextColor)

Binary file not shown.

After

Width:  |  Height:  |  Size: 358 B

View file

@ -4,5 +4,7 @@
android:id="@+id/breadcrumb_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/tiny_margin"
android:paddingTop="@dimen/tiny_margin"/>
android:paddingBottom="@dimen/medium_margin"
android:paddingLeft="@dimen/small_margin"
android:paddingRight="@dimen/small_margin"
android:paddingTop="@dimen/medium_margin"/>

View file

@ -16,7 +16,10 @@
android:id="@+id/filepicker_breadcrumbs"
android:layout_width="match_parent"
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:id="@+id/filepicker_list"