Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Color Blending on Android(JP)

Shohei Kawano
October 25, 2017

Color Blending on Android(JP)

Sometimes you would like to blend two colors into one, dynamically; for example as ViewPager gets scrolled, you want one color to dynamically change to the other color smoothly.

In this case, ColorUtils would be helpful.

In this talk I talked about how I used ColorUtis to achieve the desired UI by giving example of the implementation detail for Torte application.

See also:
ColorUtils | Android Developers
https://developer.android.com/reference/android/support/v4/graphics/ColorUtils.html

shaunkawano/android-color-blending-sample: Sample Android application demonstrating how color blending can be achieved on Android
https://github.com/shaunkawano/android-color-blending-sample

Shohei Kawano

October 25, 2017
Tweet

More Decks by Shohei Kawano

Other Decks in Technology

Transcript

  1. JUBEE0O1BHF$IBOHF-JTUFOFS  ʜ PWFSSJEFGVOPO1BHF4DSPMMFE QPTJUJPO*OU P⒎TFU'MPBU P⒎TFU1JYFMT*OU \ ʜ JG

    QPTJUJPO \ WBMSBUJPQPTJUJPO QPTJUJPO0⒎TFU WBMCMFOEFE$PMPS$PMPS6UJMTCMFOE"3(# EFGBVMU$PMPS $PMPS8)*5& SBUJP  CJOEJOHUJUMF5FYUTFU5FYU$PMPS CMFOEFE$PMPS  CJOEJOHIPNF"T6Q*OEJDBUPS5FYUTFU5FYU$PMPS CMFOEFE$PMPS  CJOEJOHCMVS-BZPVUBMQIBSBUJP ^ ʜ
  2. JUBEE0O1BHF$IBOHF-JTUFOFS  ʜ PWFSSJEFGVOPO1BHF4DSPMMFE QPTJUJPO*OU P⒎TFU'MPBU P⒎TFU1JYFMT*OU \ ʜ JG

    QPTJUJPO \ WBMSBUJPQPTJUJPO QPTJUJPO0⒎TFU WBMCMFOEFE$PMPS$PMPS6UJMTCMFOE"3(# EFGBVMU$PMPS $PMPS8)*5& SBUJP  CJOEJOHUJUMF5FYUTFU5FYU$PMPS CMFOEFE$PMPS  CJOEJOHIPNF"T6Q*OEJDBUPS5FYUTFU5FYU$PMPS CMFOEFE$PMPS  CJOEJOHCMVS-BZPVUBMQIBSBUJP ^ ʜ