abhay_401 wrote:
> I am trying to create a custom expandable list where there is a group view
> and child view will have a checkboxes.
>
> If i click on group view checkbox then all the child view checkboxes
> should checked and vice versa...
> Basically I want to implement check all and uncheck
its ok buddy...
--
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
Thanks for your reply.. Its working now .. What id did is , used
android:focusable="false" attribute on checkbox or button or image
button..The reason behind this is child items always took the focus first
before parent so i couldn't possible to select the parent. we need to set
it false first
You might find this thread at StackOverflow useful:
http://stackoverflow.com/questions/2098558/listview-with-clickable-editable-widget
Martin.
On Thursday, September 20, 2012 5:17:48 AM UTC+1, sindhu wrote:
>
> Actually button is not covering full list,i have my own layout design with
> textfi
Actually button is not covering full list,i have my own layout design with
textfield is left of the list view and image button at the right of the
list view . when i click on the button need to invoke downloadingFile .
When i select the list item i should get the file name . The problem is not
If a button is covering the list item, then its OnClickListener would
likely consume the touch event. If you want the list item to also be
clicked, then I think you will have to manually notify the
{Group,Child}ClickListeners from your button OnClickListener(s). Or if you
can just use an Imag
Ok, I 'll see this again and then I 'll tell you my news/ :-) Thanks you
very much!
--
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, se
Well, then probably something is different about the layout of "v", so
that findViewById returns null for the given "id".
Or maybe it always returns null, but your code only tries to access the
value when getChildrenCount is 0.
Either way, the view with id= explist_indicator is not there when
View ind = v.findViewById( R.id.explist_indicator);
ImageView indicator = (ImageView)ind;
indicator is just a name of an image viewa and I change the visibility.
The code works perfectly when I change the value of the
getChilderCount(groupPosition) to something other than 0.
--
You receiv
The 0 is not the problem.
You have a group with no children, and that's quite logical, because
that's exactly the case you are trying to customize (hide the group
indicator).
The problem is the code executed in that case, under the "if":
"indicator.setVisibility(View.INVISIBLE)".
I believe
Now, since you can easily reproduce this crash, do just that, with
breakpoints in your adapter code. Then step through and check what goes
wrong, where it's different from how you think it's supposed to work.
-- Kostya
30.06.2011 0:53, ΙΟΥΛΙΑ ΓΡΗΓΟΡΙΑΔΟΥ пишет:
But the app crashes only if I ha
The "groupPosition " is wrong? But I don't know why is this happen. Because
I have this code int the getGroupView() method in my adapter, so this is
being called for each group. But the app crashes only if I have a group
with no children. I can't understand. :p
--
You received this message beca
*> 06-29 19:45:34.471: ERROR/AndroidRuntime(435):
java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2*
According to that it looks like your "groupPosition" variable refers to an
invalid index...
Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware
2
06-29 19:45:34.471: ERROR/AndroidRuntime(435): FATAL EXCEPTION: main
06-29 19:45:34.471: ERROR/AndroidRuntime(435):
java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2
06-29 19:45:34.471: ERROR/AndroidRuntime(435): at
java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.j
What does logcat say about the crash? Is it a NullPointerException? What
does the "caused by" line say?
Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware
On Wed, Jun 29, 2011 at 10:17 AM, juliagrig wrote:
>
> Streets Of Boston I understood completely that'
Streets Of Boston I understood completely that's you told, but my
problem is tha the "getChildrenCount( groupPosition )==0" brings me
force close.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android
indicator is an imageview.Then , I tried to set the visibility of
this image depending on the number of children. But when I debug the
"if( getChildrenCount( groupPosition )==0) {
indicator.setVisibility( View.INVISIBLE );. " the app crashes. The
"0" is the problem, beacause when I turn it to
There is no easy way... using your own group-indicator drawable and
specifying the 'state_empty=true' doesn't seem to work too well, but I could
have made some mistakes...
This is what I did:
Add a onGroupItemClickListener to your expandable list-view and return true
in the onGroupClick metho
you can use
@Override
public void onGroupExpand(int groupPosition)
{
// TODO Auto-generated method stub
super.onGroupExpand(groupPosition);
Toast.makeText(ExpandableList1.this, "Group Clicked on pos =
"+ groupPosition, Toast.LENGTH_SHORT).show();
}
for get selected group position
i
ExpandableListView.collapseGroup (int groupPos) and expandGroup (int
groupPos)
On Thu, Feb 26, 2009 at 5:51 PM, Dilli wrote:
>
> Hi all,
>
> I am developing a simple application
>
> in that i am using a simple expandable list.
> how can i set the list will be always opened (expanded).
>
> Need he
20 matches
Mail list logo