ExpandableListView setting view.invalidate

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

ExpandableListView setting view.invalidate

Postby milkround » Sat Aug 01, 2009 10:53 am

Hi,

Very pleased :) with the way ExpandableListView works but am unclear how to set the clicked view as invalid.

In the onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id)
{
I call the Dialog "Enter" and wait for dismiss so:-

Value = new Value_Input(test2.this,0, custno, itemno, day);
Value.show();
Value.setOnDismissListener(new OnDismissListener() {
public void onDismiss(DialogInterface arg0) {
getExpandableListView().invalidateViews();
}
});
}

the invalidateViews() seems a bit heavyweight when I only want to redraw the clicked view.
(it also has side effects (mine) which I want to avoid. ) :(

the other options are:-

getExpandableListView().invalidate();
getExpandableListView().invalidate(dirty);
getExpandableListView().invalidate(l, t, r, b)
getExpandableListView().invalidateChild(child, dirty)
getExpandableListView().invalidateChildInParent(location, dirty)
getExpandableListView().invalidateDrawable(drawable)

basically how do I get from groupPosition, childPosition to the View after the event??
or how to use one of the above??

any suggestions would gratefully received!!

Steve
milkround
Developer
Developer
 
Posts: 34
Joined: Sat May 02, 2009 2:29 pm
Location: UK & Malta

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Majestic-12 [Bot] and 6 guests