|
|
@@ -1,6 +1,7 @@
|
|
|
package kr.co.zumo.app.lifeplus.view.custom;
|
|
|
|
|
|
import android.content.Context;
|
|
|
+import android.graphics.drawable.StateListDrawable;
|
|
|
import android.util.AttributeSet;
|
|
|
import android.view.LayoutInflater;
|
|
|
|
|
|
@@ -35,6 +36,15 @@ public class CustomCircleCheckBox extends CustomCheckBox {
|
|
|
inflater.inflate(R.layout.custom_circle_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.icon_radiobutton_on));
|
|
|
+
|
|
|
+ stateListDrawable.addState(new int[]{-android.R.attr.state_checked},
|
|
|
+ context.getResources().getDrawable(R.drawable.icon_radiobutton_off));
|
|
|
+ checkBox.setButtonDrawable(stateListDrawable);
|
|
|
+
|
|
|
checkBox.setOnClickListener(view -> {
|
|
|
if (null != listener) {
|
|
|
listener.onClick(this);
|