mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 03:12:15 +00:00
Update: Margins to sections selector (more like a dialog)
This commit is contained in:
parent
3e503dad99
commit
f64edf4cd1
@ -278,6 +278,8 @@ class TabsFragment : ScreenFragment() {
|
||||
setBackgroundResource(R.drawable.background_border)
|
||||
elevation = resources.sizeScaled(4).toFloat()
|
||||
content.addView(this, FrameLayout.LayoutParams.MATCH_PARENT, 0)
|
||||
val margins = resources.sizeScaled(8)
|
||||
(layoutParams as ViewGroup.MarginLayoutParams).setMargins(margins, margins, margins, 0)
|
||||
visibility = View.GONE
|
||||
}
|
||||
sectionsList.backgroundTintList = context?.getColorFromAttr(R.attr.colorSurface)
|
||||
@ -436,7 +438,7 @@ class TabsFragment : ScreenFragment() {
|
||||
val sectionsList = sectionsList!!
|
||||
val value = if (sectionsList.visibility != View.VISIBLE) 0f else
|
||||
sectionsList.height.toFloat() / (sectionsList.parent as View).height
|
||||
val target = if (showSections) 1f else 0f
|
||||
val target = if (showSections) 0.98f else 0f
|
||||
sectionsAnimator?.cancel()
|
||||
sectionsAnimator = null
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user