|
@@ -227,10 +227,15 @@ class DrawActivity : AppCompatActivity() , FileUtils.OnSaveActorImage{
|
|
|
// }
|
|
|
|
|
|
private fun createPopupView(): View{
|
|
|
+ popupView.tv_set_color_r.text = popupView.sb_set_color_r.progress.toString()
|
|
|
+ popupView.tv_set_color_g.text = popupView.sb_set_color_g.progress.toString()
|
|
|
+ popupView.tv_set_color_b.text = popupView.sb_set_color_b.progress.toString()
|
|
|
+ popupView.tv_set_color_a.text = popupView.sb_set_color_a.progress.toString()
|
|
|
|
|
|
popupView.sb_set_color_r.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener {
|
|
|
override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
|
|
|
if (fromUser) onColorRValueChanged(progress)
|
|
|
+ popupView.tv_set_color_r.text = progress.toString()
|
|
|
}
|
|
|
|
|
|
override fun onStartTrackingTouch(seekBar: SeekBar?) {}
|
|
@@ -240,6 +245,7 @@ class DrawActivity : AppCompatActivity() , FileUtils.OnSaveActorImage{
|
|
|
popupView.sb_set_color_g.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener {
|
|
|
override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
|
|
|
if (fromUser) onColorGValueChanged(progress)
|
|
|
+ popupView.tv_set_color_g.text = progress.toString()
|
|
|
}
|
|
|
|
|
|
override fun onStartTrackingTouch(seekBar: SeekBar?) {}
|
|
@@ -250,6 +256,7 @@ class DrawActivity : AppCompatActivity() , FileUtils.OnSaveActorImage{
|
|
|
popupView.sb_set_color_b.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener {
|
|
|
override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
|
|
|
if (fromUser) onColorBValueChanged(progress)
|
|
|
+ popupView.tv_set_color_b.text = progress.toString()
|
|
|
}
|
|
|
|
|
|
override fun onStartTrackingTouch(seekBar: SeekBar?) {}
|
|
@@ -260,6 +267,7 @@ class DrawActivity : AppCompatActivity() , FileUtils.OnSaveActorImage{
|
|
|
popupView.sb_set_color_a.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener {
|
|
|
override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
|
|
|
if (fromUser) onColorAValueChanged(progress)
|
|
|
+ popupView.tv_set_color_a.text = progress.toString()
|
|
|
}
|
|
|
|
|
|
override fun onStartTrackingTouch(seekBar: SeekBar?) {}
|