|
@@ -22,6 +22,7 @@ import androidx.annotation.Nullable;
|
|
|
import com.compdfkit.tools.R;
|
|
|
import com.compdfkit.tools.common.interfaces.COnTextChangedListener;
|
|
|
import com.compdfkit.tools.common.utils.view.CEditText;
|
|
|
+import com.compdfkit.tools.common.utils.viewutils.CViewUtils;
|
|
|
|
|
|
|
|
|
public class CSignStylePositionView extends FrameLayout {
|
|
@@ -58,6 +59,7 @@ public class CSignStylePositionView extends FrameLayout {
|
|
|
etPosition.setVisibility(isChecked ? VISIBLE : GONE);
|
|
|
line.setVisibility(isChecked ? VISIBLE : GONE);
|
|
|
if (!isChecked){
|
|
|
+ hideKeyboard();
|
|
|
etPosition.setText("");
|
|
|
}
|
|
|
if (checkedChangeListener != null) {
|
|
@@ -79,6 +81,10 @@ public class CSignStylePositionView extends FrameLayout {
|
|
|
return etPosition.getText();
|
|
|
}
|
|
|
|
|
|
+ public void hideKeyboard(){
|
|
|
+ CViewUtils.hideKeyboard(etPosition);
|
|
|
+ }
|
|
|
+
|
|
|
public void setCheckedChangeListener(CompoundButton.OnCheckedChangeListener checkedChangeListener) {
|
|
|
this.checkedChangeListener = checkedChangeListener;
|
|
|
}
|
|
@@ -86,4 +92,5 @@ public class CSignStylePositionView extends FrameLayout {
|
|
|
public void setTextChangedListener(COnTextChangedListener textChangedListener) {
|
|
|
this.textChangedListener = textChangedListener;
|
|
|
}
|
|
|
+
|
|
|
}
|