reducing the first breadcrumbs elevation to avoid some visual glitches
This commit is contained in:
parent
10890285d2
commit
6eb890b43b
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,7 @@ package com.simplemobiletools.commons.views
|
|||
|
||||
import android.content.Context
|
||||
import android.content.res.ColorStateList
|
||||
import android.graphics.drawable.ColorDrawable
|
||||
import android.util.AttributeSet
|
||||
import android.util.TypedValue
|
||||
import android.view.LayoutInflater
|
||||
|
@ -182,7 +183,8 @@ class Breadcrumbs(context: Context, attrs: AttributeSet) : HorizontalScrollView(
|
|||
resources.apply {
|
||||
breadcrumb_text.background = ContextCompat.getDrawable(context, R.drawable.button_background)
|
||||
breadcrumb_text.background.applyColorFilter(textColor)
|
||||
elevation = getDimension(R.dimen.medium_margin)
|
||||
elevation = 1f
|
||||
background = ColorDrawable(context.baseConfig.backgroundColor)
|
||||
val medium = getDimension(R.dimen.medium_margin).toInt()
|
||||
breadcrumb_text.setPadding(medium, medium, medium, medium)
|
||||
setPadding(rootStartPadding, 0, 0, 0)
|
||||
|
|
Loading…
Reference in a new issue