|
@@ -5,6 +5,7 @@ import android.graphics.Typeface
|
|
import android.support.constraint.ConstraintLayout
|
|
import android.support.constraint.ConstraintLayout
|
|
import android.util.AttributeSet
|
|
import android.util.AttributeSet
|
|
import android.view.LayoutInflater
|
|
import android.view.LayoutInflater
|
|
|
|
+import android.widget.SeekBar
|
|
import com.kdanmobile.reader.R
|
|
import com.kdanmobile.reader.R
|
|
import com.kdanmobile.reader.screen.data.TextBoxAttribute
|
|
import com.kdanmobile.reader.screen.data.TextBoxAttribute
|
|
import com.kdanmobile.reader.screen.reader.mediabox.common.MediaBoxHeader
|
|
import com.kdanmobile.reader.screen.reader.mediabox.common.MediaBoxHeader
|
|
@@ -62,6 +63,18 @@ open class TextBoxTabView : ConstraintLayout {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ seekBar_textBox_textSize.onSeekBarChangeListener = object : SeekBar.OnSeekBarChangeListener {
|
|
|
|
+ override fun onProgressChanged(seekBar: SeekBar, progress: Int, fromUser: Boolean) {
|
|
|
|
+ tv_preview.textSize = progress.toFloat()
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ override fun onStartTrackingTouch(seekBar: SeekBar) {
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ override fun onStopTrackingTouch(seekBar: SeekBar) {
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
colorChooser_textBox.onColorSelectedListener = object : ColorSelectView.OnColorSelectedListener {
|
|
colorChooser_textBox.onColorSelectedListener = object : ColorSelectView.OnColorSelectedListener {
|
|
override fun onColorSelected(color: Int) {
|
|
override fun onColorSelected(color: Int) {
|
|
tv_preview.setTextColor(color)
|
|
tv_preview.setTextColor(color)
|