|
@@ -12,7 +12,7 @@ import android.view.View.OnClickListener
|
|
|
import android.view.animation.AccelerateDecelerateInterpolator
|
|
|
import android.widget.ImageButton
|
|
|
import com.kdanmobile.reader.R
|
|
|
-import com.kdanmobile.reader.screen.reader.mediabox.common.TitleButton
|
|
|
+import com.kdanmobile.reader.screen.reader.mediabox.common.MediaBoxHeader
|
|
|
import com.kdanmobile.reader.screen.reader.mediabox.shape.ShapeTabView
|
|
|
import com.kdanmobile.reader.screen.reader.mediabox.signature.SignatureTabView
|
|
|
import com.kdanmobile.reader.screen.reader.mediabox.stamp.StampTabView
|
|
@@ -192,7 +192,7 @@ class ViewerEditView @JvmOverloads constructor(
|
|
|
val textBoxTabView = TextBoxTabView(context)
|
|
|
val params = ConstraintLayout.LayoutParams(ConstraintLayout.LayoutParams.MATCH_PARENT, ConstraintLayout.LayoutParams.MATCH_PARENT)
|
|
|
viewEdit_layout_tab_content.addView(textBoxTabView, params)
|
|
|
- textBoxTabView.onTitleButtonClickListener = object: TitleButton.OnTitleButtonClickListener {
|
|
|
+ textBoxTabView.onMediaBoxHeaderClickListener = object: MediaBoxHeader.OnTitleButtonClickListener {
|
|
|
override fun onTitleButtonClick() {
|
|
|
onViewerEditTabAddButtonClickListener?.onTabTextBoxAddButtonClick(textBoxTabView)
|
|
|
}
|
|
@@ -206,7 +206,7 @@ class ViewerEditView @JvmOverloads constructor(
|
|
|
val signatureTabView = SignatureTabView(context)
|
|
|
val params = ConstraintLayout.LayoutParams(ConstraintLayout.LayoutParams.MATCH_PARENT, ConstraintLayout.LayoutParams.MATCH_PARENT)
|
|
|
viewEdit_layout_tab_content.addView(signatureTabView, params)
|
|
|
- signatureTabView.onTitleButtonClickListener = object: TitleButton.OnTitleButtonClickListener {
|
|
|
+ signatureTabView.onMediaBoxHeaderClickListener = object: MediaBoxHeader.OnTitleButtonClickListener {
|
|
|
override fun onTitleButtonClick() {
|
|
|
onViewerEditTabAddButtonClickListener?.onTabSignatureAddButtonClick(signatureTabView)
|
|
|
}
|
|
@@ -220,7 +220,7 @@ class ViewerEditView @JvmOverloads constructor(
|
|
|
val stampTabView = StampTabView(context)
|
|
|
val params = ConstraintLayout.LayoutParams(ConstraintLayout.LayoutParams.MATCH_PARENT, ConstraintLayout.LayoutParams.MATCH_PARENT)
|
|
|
viewEdit_layout_tab_content.addView(stampTabView, params)
|
|
|
- stampTabView.onTitleButtonClickListener = object: TitleButton.OnTitleButtonClickListener {
|
|
|
+ stampTabView.onMediaBoxHeaderClickListener = object: MediaBoxHeader.OnTitleButtonClickListener {
|
|
|
override fun onTitleButtonClick() {
|
|
|
onViewerEditTabAddButtonClickListener?.onTabStampAddButtonClick(stampTabView)
|
|
|
}
|
|
@@ -234,7 +234,7 @@ class ViewerEditView @JvmOverloads constructor(
|
|
|
val shapeTabView = ShapeTabView(context)
|
|
|
val params = ConstraintLayout.LayoutParams(ConstraintLayout.LayoutParams.MATCH_PARENT, ConstraintLayout.LayoutParams.MATCH_PARENT)
|
|
|
viewEdit_layout_tab_content.addView(shapeTabView, params)
|
|
|
- shapeTabView.onTitleButtonClickListener = object: TitleButton.OnTitleButtonClickListener {
|
|
|
+ shapeTabView.onMediaBoxHeaderClickListener = object: MediaBoxHeader.OnTitleButtonClickListener {
|
|
|
override fun onTitleButtonClick() {
|
|
|
onViewerEditTabAddButtonClickListener?.onTabShapeAddButtonClick(shapeTabView)
|
|
|
}
|