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 - regarding custom layout

regarding custom layout

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

regarding custom layout

Postby srujanak » Thu Jan 21, 2010 11:15 am

Hello,

I'm designing a custom layout using custom Image buttons .I have created the custom buttons and a Custom Linear layout.When I click on button1 for the first time, button2 should be created to its right.when button1 is clicked for the second time, button3 should be created above it,the third click should create button4 to the left and the fourth click should create button5 below it. Button 1,2,3,4,5 would be clones of a parent button.I don't know how to retrieve the IDs of these custom components.

Any ideas on retrieving the ids?or...is there a better approach I can use that does not require ids??


--Rajani
srujanak
Freshman
Freshman
 
Posts: 3
Joined: Thu Jan 21, 2010 8:57 am

Top

Postby appforce » Thu Jan 21, 2010 2:03 pm

Hi,

You have to first assign an id before retrieve it. If you're constructing the buttons in run-time within you app code, use setId method, if you inflate from XML resource use android:id attribute.

Android developers
appforce
Experienced Developer
Experienced Developer
 
Posts: 60
Joined: Mon Nov 23, 2009 8:28 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 7 guests