Home
last modified time | relevance | path

Searched refs:color2 (Results 1 – 6 of 6) sorted by relevance

/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/view/
DSlidingTabStrip.java178 private static int blendColors(int color1, int color2, float ratio) { in blendColors() argument
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); in blendColors()
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors()
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation); in blendColors()
/development/samples/browseable/SlidingTabsColors/src/com.example.android.common/view/
DSlidingTabStrip.java178 private static int blendColors(int color1, int color2, float ratio) { in blendColors() argument
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); in blendColors()
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors()
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation); in blendColors()
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/view/
DSlidingTabStrip.java178 private static int blendColors(int color1, int color2, float ratio) { in blendColors() argument
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); in blendColors()
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors()
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation); in blendColors()
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/view/
DSlidingTabStrip.java178 private static int blendColors(int color1, int color2, float ratio) { in blendColors() argument
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); in blendColors()
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors()
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation); in blendColors()
/development/samples/browseable/BasicTransition/src/com.example.android.common/view/
DSlidingTabStrip.java178 private static int blendColors(int color1, int color2, float ratio) { in blendColors() argument
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); in blendColors()
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors()
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation); in blendColors()
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.common/view/
DSlidingTabStrip.java178 private static int blendColors(int color1, int color2, float ratio) { in blendColors() argument
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); in blendColors()
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors()
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation); in blendColors()