Home
last modified time | relevance | path

Searched refs:mSelectionOffset (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Dialer/java/com/android/contacts/common/list/
DViewPagerTabStrip.java34 private float mSelectionOffset; field in ViewPagerTabStrip
62 mSelectionOffset = positionOffset; in onPageScrolled()
85 if ((mSelectionOffset > 0.0f) && hasNextTab) { in onDraw()
92 (int) (mSelectionOffset * nextLeft + (1.0f - mSelectionOffset) * selectedLeft); in onDraw()
94 (int) (mSelectionOffset * nextRight + (1.0f - mSelectionOffset) * selectedRight); in onDraw()
/packages/apps/Messaging/src/com/android/messaging/ui/
DViewPagerTabStrip.java35 private float mSelectionOffset; field in ViewPagerTabStrip
65 mSelectionOffset = positionOffset; in onPageScrolled()
81 if ((mSelectionOffset > 0.0f) && hasNextTab) { in onDraw()
87 selectedLeft = (int) (mSelectionOffset * nextLeft + in onDraw()
88 (1.0f - mSelectionOffset) * selectedLeft); in onDraw()
89 selectedRight = (int) (mSelectionOffset * nextRight + in onDraw()
90 (1.0f - mSelectionOffset) * selectedRight); in onDraw()
/packages/apps/Settings/src/com/android/settings/widget/
DSlidingTabLayout.java44 private float mSelectionOffset; field in SlidingTabLayout
121 mSelectionOffset = positionOffset; in onViewPagerPageChanged()
145 if (mSelectionOffset > 0f && mSelectedPosition < (getChildCount() - 1)) { in getIndicatorLeft()
147 left = (int) (mSelectionOffset * nextTitle.getLeft() in getIndicatorLeft()
148 + (1.0f - mSelectionOffset) * left); in getIndicatorLeft()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DSlidingTabLayout.java44 private float mSelectionOffset; field in SlidingTabLayout
121 mSelectionOffset = positionOffset; in onViewPagerPageChanged()
145 if (mSelectionOffset > 0f && mSelectedPosition < (getChildCount() - 1)) { in getIndicatorLeft()
147 left = (int) (mSelectionOffset * nextTitle.getLeft() in getIndicatorLeft()
148 + (1.0f - mSelectionOffset) * left); in getIndicatorLeft()