Pedro,
How do you register for click events in this list view?
You shouldn't need to play any tricks with clickable, focusable, etc.
Also, layout_height="fill_parent" is a pretty weird setting for a list
view item layout.
For item alignment control, set layout_gravity="left" on the child views.
-- Kostya
01.12.2010 12:44, pedr0 пишет:
I have partially solved the problem: simple change to fill_parent the
listview android:layout_width paramter, but now I have all the item of
the listView aligned in center position and not on the left..
On 1 Dic, 10:32, pedr0<pulsarpie...@gmail.com> wrote:
Each solution doesn't work...
Is an absurd behavior I think, but if I set android:clickable="true"
for the row layout I cannot select any item (??!)
On 1 Dic, 10:15, Sarwar Erfan<erfanonl...@gmail.com> wrote:
Also,
android:clickable="true" for the row layout.
You might also be interested to make the individual children or a row
not clickable.
Regards
Sarwar Erfan
On Dec 1, 3:12 pm, Sarwar Erfan<erfanonl...@gmail.com> wrote:
Hi Pedro,
Try
android:descendantFocusability="blocksDescendants"
in the LinearLayout of the row xml.
Info:http://developer.android.com/reference/android/view/ViewGroup.html#at...
Regards
Sarwar Erfan
On Dec 1, 2:58 pm, pedr0<pulsarpie...@gmail.com> wrote:
Hi at all,
I am developing an application which make an intensive use of ListView
with different type of rows, for do this I have extended the
BaseAdapter class and override its methods, the layout of ListView is
very simple:
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
<ListView
android:id="@+id/categorieslist"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
</LinearLayout>
The first type of row XML is already simple:
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:padding="6dip"
>
<ImageView
android:id="@+id/category_image"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:layout_marginRight="20dip"
android:src="@drawable/icon"
/>
<TextView
android:id="@+id/category_name"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:singleLine="true"
/>
</LinearLayout>
Not all the entire area of the rows is clickable but only the area
covered by the ImageView and TextView, and this is my issues..
What's wrong?
--
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