reducing the first breadcrumbs elevation to avoid some visual glitches

This commit is contained in:
tibbi 2021-11-22 10:53:00 +01:00
parent 10890285d2
commit 6eb890b43b

View file

@ -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)