diff --git a/app/src/main/java/kale/selectorinjection/ImageFragment.java b/app/src/main/java/kale/selectorinjection/ImageFragment.java index 8d53ddf..75250b7 100644 --- a/app/src/main/java/kale/selectorinjection/ImageFragment.java +++ b/app/src/main/java/kale/selectorinjection/ImageFragment.java @@ -11,7 +11,7 @@ import kale.injection.SelectorInjection; import kale.ui.view.ISelectorView; -import kale.ui.view.SelectorImageView; +import kale.ui.view.SelectorImageButton; /** * @author Kale @@ -50,7 +50,7 @@ public void onClick(View v) { findCbAndSetListener(root, R.id.isSmart_cb); findCbAndSetListener(root, R.id.show_ripple_cb); - final SelectorImageView imageView = root.findViewById(R.id.check_iv); + final SelectorImageButton imageView = root.findViewById(R.id.check_iv); imageView.setOnClickListener(new View.OnClickListener() { @Override @@ -59,9 +59,9 @@ public void onClick(View v) { } }); - imageView.setOnCheckedChangeListener(new SelectorImageView.OnCheckedChangeListener() { + imageView.setOnCheckedChangeListener(new SelectorImageButton.OnCheckedChangeListener() { @Override - public void onCheckedChanged(SelectorImageView view, boolean isChecked) { + public void onCheckedChanged(SelectorImageButton view, boolean isChecked) { Toast.makeText(getActivity(), "" + isChecked, Toast.LENGTH_SHORT).show(); } }); diff --git a/app/src/main/res/layout/image_layout.xml b/app/src/main/res/layout/image_layout.xml index facfec4..eabeca5 100644 --- a/app/src/main/res/layout/image_layout.xml +++ b/app/src/main/res/layout/image_layout.xml @@ -14,7 +14,7 @@ android:orientation="vertical" > - - - - - - - - - +