expandablelistview

In an ExpandableListView, how can I show one additional line at the end of the child results?

I have created a custom ExpandableListAdapter and everything works properly. What I'd like to be able to do is in each of the groups add a different type of child to the end. I have tried adding 1 to the getChildrenCount() number and then testing isLastChild in the getChildView() method, but that doesn't seem to work. If a group has thr...

Multiple Android expandable lists in a layout

I want to have more than one expandable list within a layout. It appears that an expandable list in a custom layout must have an id of "@id/android:list". So, how could I have more than one if they would need to have the same id? Thanks... ...

Android - CheckBox blocks ExpandableListView.OnGroupClickListener

I'm trying to put a checkbox into ExpandableListView. How do I do that? I extend BaseExpandableListAdapter and put the following into getGroupView(): @Override public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) { View view = convertView == null ? context.getLayoutInflater().i...

Android - ExpandableListView change background for child items

I'm using ExpandableListView in my app and one of the complaints I get from the users is that when the list item is expanded it's hard to visually distinguish where the child item ends and next group item begins. So I would like to change background of the child list item to the different shade. Brutal attempts that I've made so far were...

How do I use ResourceCursorTreeAdapter with expanded and collapsed group views in Android?

How do I use the ResourceCursorTreeAdapter with the following constructor? ResourceCursorTreeAdapter(Context context, Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, int childLayout) I'm trying to use a it as follows: _resultsCursorTreeAdapter = new ResourceCursorTreeAdapter(_resultsList.getContext(), _dbAdapter.get...

ExpandableListView centains a link does not expand

hello, I have an ExpandableListView contains a link, it does not expand when has a link, and i want the link is clickable. code like this: <ExpandableListView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:groupIndic...

how to create expandablelist view activity with checkboxes??

friends, i am following expandable list tutorial its expand able functionality working fine.. http://mylifewithandroid.blogspot.com/2008/05/expandable-lists.html now i dont know which event to implement to handle checkboxes in list when i click on checkbox it expands the list.... how to distinguish list click with checkbox placed in ex...

Android ExpandableListActivity and SimpleCursorTreeAdapter?

Hi! I'm writing a simple application for Android. I have 2 tables - one called 'grous' and another called 'group_items'. I want to use expandable list to display data from both tables. What is the best way to do it? Is it possible to map data by using SimpleCursorTreeAdapter? I couldn't find any usefull examples. I saw the examples c...

Android: long click on the child views of a ExpandableListView?

ExpandableListView has a setOnChildClickListener method, but lacks of setOnChild*Long*ClickListener method. When I added setOnLongClickListener() on child view in getChildView(), whole sublist became completely unclickable (despite of parentView.setOnChildClickListener() present and working before). How can I enable long clicks on chil...

Animation for expandableListView

Is it possible to apply an expand or collapse animation for expandableListView? ...

Blackberry - View similar to Blackberry Messenger, MSN or Gtalk

A View with expand and contract list where you show, for instance, Chats, Contacts, Groups. You click on of them and expands to a list of Chats and each element of the list is a Rectangular box with User defined image, name, status (offline, online, busy) as an image and status message. How can i program a view as described? thanks in ...

How to create separator in android ExpandableListView?

Anyone has an idea? I tried to add extra groupviews with different style and with no children, but i don't know how to make it unselectable and unclickable... and i don't know how to get rid of the arrow icon on the left side... Tnx for answers! ...

ExpandableListView child items don't get focus when touched...

Ok, so I wrote an ExpandableListView and subclassed BaseExpandableListAdapter... Everything works fine except I cannot get the child views to take focus when clicked. If I use the trackball everything works fine. But if I try to click on a child I get no feedback whatsoever. I have tried setting android:focusable, android:focusableInT...

ImageView scale type not working in list activity

I have used ImageView's before and understand the different scale types that can be set... However I am having an incredibly difficult time trying to get an ImageView to scale properly in the row of a ListActivity or an ExpandableListActivity. I have tried setting the android:scaleType property to every single value but the image never ...

Adding a imageview to child elements in a expandable list query

I am looking to find out how to assign an image to a imageview in each child of an expandable list. If anyone has any information or links to find out how to do this I would be most appreciative. expListAdapter = new SimpleExpandableListAdapter( main.this, createGroupList(), ...

Android - TableLayout to ExpandableListView

Is it possible to switch from a TableLayout to an ExpandableListView? How? I tried using ViewFlipper but the fact that ExpandableListView doesn't use XML threw a wrench in it. Please help! ...

Android - Launch Intent within ExpandableListView

Hello, I'm trying to figure out if it is possible to launch an intent within an ExpandableListView. Basically one of the "Groups" is Phone Number and its child is the number. I want the user to be able to click it and have it automatically call that number. Is this possible? How? Here is my code to populate the ExpandableListView u...

Android - ListView with only 1 expandable item

I have a listview with tickboxes, which uses an Adapter and which works well. And I know how to make a whole list expandable. But, it it possible to have just a single item expandable, or does it have to be the whole list?? If so, how is it done? ...

ExpandableListView in Android

I have requirement like this- my activity contains some textviews at the top then the expandable list view in the middle and a button at the bottom. my problem is when i clicked on expandable list view the expanded list get accommodated in the space between button and expandable list view. I wanted expandable list view to get expande...

How can I create a list with only certain items expandable?

I am trying to compose a list with some items expandable and some single items. I wish to have it so that when either a single item or expandable list child is clicked, I can call an intent based on the text of the item. I suppose expandable lists would work, but is there a way to set items in an expandable list so that they don't ha...