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 - toggle view background color

toggle view background color

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

toggle view background color

Postby avidanyum » Tue Jul 21, 2009 8:13 pm

Hi,

I have a very simple task I want to do I want to toggle a view background color, 1 second white 1 second black etc.
I tried this:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2.                 mView.setBackgroundColor(Color.WHITE);
  3.  
  4.                 mView.invalidate();
  5.  
  6.                 sleep(1000);
  7.  
  8.                 mView.setBackgroundColor(Color.BLACK);
  9.  
  10.                 mView.invalidate();
  11.  
  12.                 sleep(1000);
  13.  
  14.                 mView.setBackgroundColor(Color.WHITE);
  15.  
  16.                 mView.invalidate();
  17.  
  18.                 sleep(1000);
  19.  
  20.                 mView.setBackgroundColor(Color.BLACK);
  21.  
  22.                 mView.invalidate();
  23.  
  24.                 sleep(1000);
  25.  
  26.  
  27.  
  28.  
Parsed in 0.014 seconds, using GeSHi 1.0.8.4


But it didnt work, can anyone please tell me how can I do it?

Thanks
avidanyum
Once Poster
Once Poster
 
Posts: 1
Joined: Tue Jul 21, 2009 8:08 pm

Top

Return to View, Layout & Resource Problems

Who is online

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