SHARE
TWEET

Untitled

a guest Aug 22nd, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private SeekBar seekBarA,seekBarR,seekBarG,seekBarB;
  2.     private TextView tvRGB,tvHex,tvColor;
  3.  
  4.     int a=255,r=255,g=255,b=255;
  5.    
  6.         //實做
  7.         initView();
  8.  
  9.     private void initView() {
  10.         seekBarA = findViewById(R.id.seekBarA);
  11.         seekBarR = findViewById(R.id.seekBarR);
  12.         seekBarG = findViewById(R.id.seekBarG);
  13.         seekBarB = findViewById(R.id.seekBarB);
  14.         seekBarA.setOnSeekBarChangeListener(this);
  15.         seekBarR.setOnSeekBarChangeListener(this);
  16.         seekBarG.setOnSeekBarChangeListener(this);
  17.         seekBarB.setOnSeekBarChangeListener(this);
  18.  
  19.         tvRGB = findViewById(R.id.tvRGB);
  20.         tvHex = findViewById(R.id.tvHex);
  21.         tvColor = findViewById(R.id.tvColor);
  22.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top