|
|
@@ -2,6 +2,7 @@ package kr.co.zumo.app.lifeplus.view.custom;
|
|
|
|
|
|
import android.content.Context;
|
|
|
import android.content.res.TypedArray;
|
|
|
+import android.graphics.drawable.StateListDrawable;
|
|
|
import android.util.AttributeSet;
|
|
|
import android.view.LayoutInflater;
|
|
|
|
|
|
@@ -36,6 +37,17 @@ public class CustomSquareArrowCheckBox extends CustomCheckBox {
|
|
|
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
|
|
inflater.inflate(R.layout.custom_square_arrow_check_box, this);
|
|
|
checkBox = findViewById(R.id.check_box);
|
|
|
+
|
|
|
+ StateListDrawable stateListDrawable = new StateListDrawable();
|
|
|
+// stateListDrawable.addState(new int[]{android.R.attr.state_checked},
|
|
|
+// context.getResources().getDrawable(R.drawable.custom_rectangle_radio_on));
|
|
|
+//
|
|
|
+// stateListDrawable.addState(new int[]{-android.R.attr.state_checked},
|
|
|
+// context.getResources().getDrawable(R.drawable.custom_rectangle_radio_off));
|
|
|
+ checkBox.setButtonDrawable(stateListDrawable);
|
|
|
+
|
|
|
+
|
|
|
+ checkBox.setButtonDrawable(new StateListDrawable());
|
|
|
checkBox.setClickable(false);
|
|
|
checkBox.setOnClickListener(view -> {
|
|
|
if (null != listener) {
|