It looks like what you need is not to put android clickable in the view group but in the individual view that you want to make clickable ie <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:orientation="horizontal" android:gravity="center_vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:clickable="true">
<LinearLayout android:layout_height="wrap_content" android:layout_width="wrap_content" android:paddingLeft="10sp" android:layout_weight="1" android:orientation="vertical" android:clickable="true" android:focusable="true" android:focusableInTouchMode="true"> <LinearLayout android:layout_height="wrap_content" android:layout_width="fill_parent" android:gravity="bottom" android:orientation="horizontal" android:clickable="true" //like this make the individual linearllayou clickable not the group then make the click lister t test with a toast On Jul 9, 1:32 am, eags <eagsala...@gmail.com> wrote: > Hi, bump again. > > On Jul 8, 7:52 pm, eags <eagsala...@gmail.com> wrote: > > > > > Bump. > > > Hi someone please? I think this is probably something pretty simple > > that I'm just missing. > > > Thanks. > > > On Jul 8, 1:20 pm, eags <eagsala...@gmail.com> wrote: > > > > I created a custom layout and adapter for a list view but now I cannot > > > make it clickable? Is there anything to look out for here? My list > > > item looks almost exactly like the alarms in the Alarm Clock app that > > > comes installed with Android. Everything seems to work fine but now > > > clicking on the list item does nothing. > > > > I tried setting android:clickable=true and android:focusable=true > > > (which already works because I can select using the trackball but I > > > was just trying random things. > > > > I can post code here if anyone needs more details. Thanks in advance > > > for any help. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---