Hey Kostia, Thanks for your reply.
I´ve already done it, but the method onItemClick is never called! I´ve read some stuff about focus, onTouchfocus but nothing changed the result. Each item in the listview is a view inflated from a layout which has TextViews and a button (in a relative layout). Any ideas why clicking on an item (view) doesn´t fire onItemClick? Thanks! On 7 set, 11:37, Kostya Vasilyev <kmans...@gmail.com> wrote: > Gabriel, > > This is how it's done: > > ListView listView = ......<whatever>; > > listView.setOnItemClickListener(new OnItemClickListener() { > > �...@override > > public void onItemClick(AdapterView<?> parent, View view, int > position, long id) { > > <do your thing here> > > } > > }); > > -- Kostya > > 07.09.2010 17:39, Gabriel Simões пишет: > > > > > > > Sorry for the "bump" but I´m still stuck into this and that is the > > only feature not ready. > > Could you guys please give me a hand here? thanks! > > > On 6 set, 14:29, Gabriel Simões<gsim...@gmail.com> wrote: > >> Hello guys > >> After a long time away, got back to coding on this brazilian > >> independency holiday. > > >> What I´m trying to do is to create a list (using a listview) of items > >> (which are views inflated from the same layout) what must be > >> clickable. > >> At first I thought that all I had to do was to add an > >> onItemClickListener to the ListView so if the used clicked on any of > >> the views that composed this Item the listener would react. Well, I > >> was wrong. > >> I´ve tried a lot of things, including setting focus and > >> focusontouchmode off for each of the views that compose the item´s > >> view but it still doesn´t work. > > >> Any tips here? Can I archive this result? > >> Oh, also ... this listview is in a dialog and the listener is in the > >> activity that builds the dialog. > > >> Hope to hear from you soon. Thanks, > >> Gabriel Simões > > -- > Kostya Vasilyev -- WiFi Manager + pretty widget > --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en