Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Hide ImageView?

Hide ImageView?

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

Hide ImageView?

Postby scuba » Fri Nov 13, 2009 4:51 pm

Hi,

I'd like to be able to hide an ImageView in my layout at certain times. I don't just want to make it invisible, I want it to take up no space so the rest of the layout collapses appropriately. Just like in HTML where you'd set "style='display:none;'". The last thing I tried was setting the max height to 0, but that didn't work.

Is this possible to do?

Thanks! :)
scuba
Junior Developer
Junior Developer
 
Posts: 19
Joined: Wed Nov 11, 2009 4:19 am

Top

Re: Hide ImageView?

Postby FunctionalRetard » Fri Nov 13, 2009 4:57 pm

setVisibility(View.GONE) should work. http://developer.android.com/reference/ ... .html#GONE
FunctionalRetard
Junior Developer
Junior Developer
 
Posts: 10
Joined: Thu Nov 12, 2009 4:13 pm

Postby scuba » Fri Nov 13, 2009 5:12 pm

Thank you!
scuba
Junior Developer
Junior Developer
 
Posts: 19
Joined: Wed Nov 11, 2009 4:19 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 8 guests