Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement