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

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 - Multiple view in a same activity

Multiple view in a same activity

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

Multiple view in a same activity

Postby base2coder » Sun Aug 02, 2009 11:12 am

Hi all, i am new in android... i want to show multiple views in a same activity without using the xml. i want to do it by coding in .java file. can anyone help me about the code??
base2coder
Junior Developer
Junior Developer
 
Posts: 14
Joined: Sun Jul 12, 2009 8:54 pm

Top

Postby Steren » Sun Aug 23, 2009 10:13 am

Hi,

I would not recommand doing this, but if you need it :

Basically you have to define in your code the layout in a ViewGroup (params have to be entered in ViewGroup.LayoutParams) that contains your Views

Then you attach this content to your activity by doing setContentView(myViewGroup);
Steren
Freshman
Freshman
 
Posts: 4
Joined: Sat Aug 22, 2009 6:10 pm

Postby base2coder » Sat Nov 07, 2009 7:54 am

THanks for the help..
base2coder
Junior Developer
Junior Developer
 
Posts: 14
Joined: Sun Jul 12, 2009 8:54 pm

Top

Return to General

Who is online

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