I'm customming dialog (extend Dialog
) with a custom layout:
setContentView(LayoutInflater.from(getContext()).inflate(R.layout.dialog_call, null));
in this layout, I have some TextView and Button need catch button click event so that I put android:onClick="onClick"
to each view.
In .java
file I implemented public void onClick(View v){....}
However when I click each view, I received crash and It show that it not found onClick
.
I also tried add android:clickable="true"
to each view in XML file but not success.
What is my wrong here ?