how to remove a view

by Billsen » Thu, 11 Sep 2008 12:59:30 GMT

Sponsored Links

How to remove a view added by addContentView method?



how to remove a view

by hackbod » Thu, 11 Sep 2008 14:49:58 GMT

 setContentView() replaces any existing views.  If you want finer-
grained control, you can setContentView() a top-level layout manager,
which you can then add and remove views in as you desire.


Sponsored Links

how to remove a view

by Billsen » Sat, 13 Sep 2008 02:23:06 GMT

 Would you please provide a little more information?  I loaded
R.layout.main by setContentView(), then added a view with
addContentView. I need to remove the view added by addContentView by
clicking a button.



how to remove a view

by Kavi » Sat, 13 Sep 2008 03:12:25 GMT

 Look at the setVisibility method to change the visibility options for
the view. #setVisibility(int)

how to remove a view

by Billsen » Sat, 13 Sep 2008 04:56:39 GMT

 Thanks for your help. It works with setVisibility.


Re: how to remove a view

by Guilo » Fri, 20 May 2011 04:29:40 GMT

 I know it is old but I have the same problem. I want next to change the view 
added by addContentView. Indeed recalling addContenView throws an Exception 

05-19 22:28:31.785: ERROR/AndroidRuntime(11210): 
java.lang.IllegalStateException: The specified child already has a parent. 
You must call removeView() on the child's parent first.


Other Threads

1. Ingpo: i Mobile

** bukan karyawan i-Mobile **
** gak dpt komisi juga dari i-Mobile **

Just ingpo ajah:

i-mobile 6010 adalah smartphone android pertama dari i-mobile dan merupakan
ponsel Android termurah yang ada di Indonesia saat ini. i-mobile 6010
dibanderol dengan harga sekitar Rp. 1.999.000. i-mobile 6010 berjalan
menggunakan sistem operasi Android versi 1.6.

i-mobile 6010 dilengkapi dengan berbagai fitur multimedia dan online yang
lengkap. i-mobile 6010 memiliki fitur-fitur multimedia seperti kamera 3.2
megapiksel, mp3 player, radio FM, video player dan recording. Sedangkan
untuk fitur online i-mobile 6010 telah dilengkapi dengan konektivitas WiFi
dan aplikasi online (Youtube, Gmail, Facebook)

"Indonesian Android Community [id-android]" 

2. --SOLVED-- (WTA) Kembaliin ukuran sd card bekas partisi

Ud bisa neh, pake recovery, di nol in swap dan ext nya.

Best Regards,
David Haryanto
*sent from my magic

Kalo pake pc pake s/w paragon partition manager

| Rgds,
Jus |
~  send using dream eclair  ~

Kalau langsung format pak...

3. OOT: Anang pun keracunan

4. UPDATED [9/3] Nexus Desire Modaco Alpha14

5. Help converting C# code

6. Live Wallpapers. Cant get actions like android.wallpaper.tap

7. Disable spinner item?