Searched refs:mSelectionOffset (Results 1 – 6 of 6) sorted by relevance
/development/samples/browseable/BasicTransition/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 52 private float mSelectionOffset; field in SlidingTabStrip 112 mSelectionOffset = positionOffset; in onViewPagerPageChanged() 132 if (mSelectionOffset > 0f && mSelectedPosition < (getChildCount() - 1)) { in onDraw() 135 color = blendColors(nextColor, color, mSelectionOffset); in onDraw() 140 left = (int) (mSelectionOffset * nextTitle.getLeft() + in onDraw() 141 (1.0f - mSelectionOffset) * left); in onDraw() 142 right = (int) (mSelectionOffset * nextTitle.getRight() + in onDraw() 143 (1.0f - mSelectionOffset) * right); in onDraw()
|
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 52 private float mSelectionOffset; field in SlidingTabStrip 112 mSelectionOffset = positionOffset; in onViewPagerPageChanged() 132 if (mSelectionOffset > 0f && mSelectedPosition < (getChildCount() - 1)) { in onDraw() 135 color = blendColors(nextColor, color, mSelectionOffset); in onDraw() 140 left = (int) (mSelectionOffset * nextTitle.getLeft() + in onDraw() 141 (1.0f - mSelectionOffset) * left); in onDraw() 142 right = (int) (mSelectionOffset * nextTitle.getRight() + in onDraw() 143 (1.0f - mSelectionOffset) * right); in onDraw()
|
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 52 private float mSelectionOffset; field in SlidingTabStrip 112 mSelectionOffset = positionOffset; in onViewPagerPageChanged() 132 if (mSelectionOffset > 0f && mSelectedPosition < (getChildCount() - 1)) { in onDraw() 135 color = blendColors(nextColor, color, mSelectionOffset); in onDraw() 140 left = (int) (mSelectionOffset * nextTitle.getLeft() + in onDraw() 141 (1.0f - mSelectionOffset) * left); in onDraw() 142 right = (int) (mSelectionOffset * nextTitle.getRight() + in onDraw() 143 (1.0f - mSelectionOffset) * right); in onDraw()
|
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 52 private float mSelectionOffset; field in SlidingTabStrip 112 mSelectionOffset = positionOffset; in onViewPagerPageChanged() 132 if (mSelectionOffset > 0f && mSelectedPosition < (getChildCount() - 1)) { in onDraw() 135 color = blendColors(nextColor, color, mSelectionOffset); in onDraw() 140 left = (int) (mSelectionOffset * nextTitle.getLeft() + in onDraw() 141 (1.0f - mSelectionOffset) * left); in onDraw() 142 right = (int) (mSelectionOffset * nextTitle.getRight() + in onDraw() 143 (1.0f - mSelectionOffset) * right); in onDraw()
|
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 52 private float mSelectionOffset; field in SlidingTabStrip 112 mSelectionOffset = positionOffset; in onViewPagerPageChanged() 132 if (mSelectionOffset > 0f && mSelectedPosition < (getChildCount() - 1)) { in onDraw() 135 color = blendColors(nextColor, color, mSelectionOffset); in onDraw() 140 left = (int) (mSelectionOffset * nextTitle.getLeft() + in onDraw() 141 (1.0f - mSelectionOffset) * left); in onDraw() 142 right = (int) (mSelectionOffset * nextTitle.getRight() + in onDraw() 143 (1.0f - mSelectionOffset) * right); in onDraw()
|
/development/samples/browseable/SlidingTabsColors/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 52 private float mSelectionOffset; field in SlidingTabStrip 112 mSelectionOffset = positionOffset; in onViewPagerPageChanged() 132 if (mSelectionOffset > 0f && mSelectedPosition < (getChildCount() - 1)) { in onDraw() 135 color = blendColors(nextColor, color, mSelectionOffset); in onDraw() 140 left = (int) (mSelectionOffset * nextTitle.getLeft() + in onDraw() 141 (1.0f - mSelectionOffset) * left); in onDraw() 142 right = (int) (mSelectionOffset * nextTitle.getRight() + in onDraw() 143 (1.0f - mSelectionOffset) * right); in onDraw()
|