Reputation: 1
I have an SVG image to and I want to make that clickable in android and get the details of selected path.
I have used a library but my application crashes. Zoomable SVG with clickable areas - Android
Upvotes: 0
Views: 679
Reputation: 193
You should be able to set an OnClickListener on the view containing the SVG in your activity of fragment
myView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
//do something
}
});
https://developer.android.com/reference/android/view/View.OnClickListener
Upvotes: 1