in my .xml
<ImageView
android:layout_width="20dp"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:contentDescription="@+id/imageView11"
app:srcCompat="@drawable/wa"
tools:ignore="UsingOnClickInXml" />
How To Make This Image, to became Clickable and Redirect to some Url
Thank You
2
Answers
You can manage it with
imageview.setOnClickListner
same like button’s click listner.If you want to share your link on whatsapp. Or share anything on whatsapp from your app then you can use this code to do.
First, add your ImageView to the ID. your id is
whatsappBtn
and in your java code.
If you have still a confusion. let me know