Why are you using detach/attachView? Just use removeView() and addView().

If you read the documentation of detachViewFromParent() you will see
that you are not using it correctly.

On Tue, Sep 15, 2009 at 10:31 AM, Chandra Mouli <[email protected]> wrote:
> Hi all,
>
> I am using an absoluteLayout in which I have some child views. I am
> mimicking pagination by hiding some and showing some. But I have a delete
> option as well. So when I delete a child the viewGroup is re-adjusting its
> child hierarchy. So in-order to avoid any overlap in a page I am replacing
> the last child with the child to be deleted. Here I am using
>
> detachViewFromParent (child_to_delete)
>
> attachViewToParent (child_to_replace)
>
> after replacing I am calling ----> removeViewAt
> (previous_position_of_child_to_replace).
>
> I am currently facing some problems with this. It is leaving broken pieces
> around. Sometimes I see half part of the device there n half part here.
>
> Even though RemoveViewAt() calls invalidate on its parent --- I tried
> explicitely calling invalidate() on the parent -- but it dint work
>
>
>
> Any help is appreciated...
>
>
>
> >
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to