tags:

views:

73

answers:

1

I have problem, in my Android app, I have ImageView and I implemented onClick event but when I click on ImageView it looks like that it doesn't run onClickListener at all.

Any help?

A: 

You can try using ImageButton.

Macarse
It doesn't looks like it should be, I have no choice.
Momcilo
@Momcilo: why? show us some code.
Macarse
<TableRow android:layout_gravity="center_vertical" android:gravity="center" android:background="#AA0000AA"> <ImageButton android:id="@+id/imvSearchNear" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:gravity="center" android:background="#AA0000AA" android:src="@drawable/search_vicinity"/> </TableRow> //Problem is when I put property background ImageButton doesn't enter in clicklistener (I don't know why, without is ok but then look isn'ok)
Momcilo
@Macarse:I'm trying to make something similar dropdown list in ASP.NET, couple them on screen, I need to hide and show some TableRows on click.Maybe this up is totally wrong. Any new idea ?
Momcilo