How to kill or destroy a View?

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

How to kill or destroy a View?

Postby reynolds » Mon Mar 16, 2009 9:26 am

For example,

I have main.xml containg the parent view

then I have preview.xml containing another view (on another perspective, we can call it a child view)


Once, I loaded the child view, it displays all objects/elements stored within preview.xml, along with a "Close" button.

Now, How do I kill or destroy this child View? My intention is to NOT reload the parent view, but instead just show the idle or current state of this parent View.

P.S. Assuming both Views are on the same Activity.
reynolds
Junior Developer
Junior Developer
 
Posts: 22
Joined: Fri Mar 06, 2009 6:13 am
Location: Makati Philippines

Top

Postby asolanki » Tue Mar 17, 2009 12:35 pm

hi

as per i understand ur problem can u do this by disabling ur child view on click of close button???
asolanki
Senior Developer
Senior Developer
 
Posts: 151
Joined: Thu Jan 08, 2009 7:32 am

Postby reynolds » Wed Mar 18, 2009 3:33 am

asolanki wrote:hi

as per i understand ur problem can u do this by disabling ur child view on click of close button???



Sry, I was not able to properly state it previously. What I wanted is to close the child-view, not just disable it.
reynolds
Junior Developer
Junior Developer
 
Posts: 22
Joined: Fri Mar 06, 2009 6:13 am
Location: Makati Philippines

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests