Answers for "how to use setonclicklistener from custom view in android"

0

how to use setonclicklistener from custom view in android

View view = inflate(getContext(), R.layout.layout_my_custom_view, this);

view.findViewById(R.id.theparent).setOnClickListener(new OnClickListener() {
        @Override
        public void onClick(View view) {
            performClick();
        }
    });
Posted by: Guest on October-09-2020

Code answers related to "how to use setonclicklistener from custom view in android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language