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 - Set Content View from R.layout.main to surface view

Set Content View from R.layout.main to surface view

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

Set Content View from R.layout.main to surface view

Postby tensaix2j » Mon Feb 09, 2009 6:03 pm

The problem goes like this:

I have implemented a surface view that gets rendered every 50 ms using the manual draw(canvas) method.
it works fine when i do instantiation and setContentView() upon activity's OnCreate event as such:

// Activity onCreate Event...

xxx = new myView();
setContentView(xxx);


However, when i have an XML layout, with a few buttons on it, and I change the Activity's OnCreate event to setContentView() to an XML layout first :

setContentView(R.layout.main);

,and then in one of my buttons' onClick, i do setContentView() to my SurfaceView
using the exact code previously ...

xxx = new myView();
setContentView(xxx);

but i get a blank screen upon changing the view from XML layout view to my own Surface View, in which i don't see any canvas drawing completely.....


WHY????
tensaix2j
Freshman
Freshman
 
Posts: 5
Joined: Tue Jan 06, 2009 7:35 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Exabot [Bot] and 4 guests