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 - how to Custom button ?

how to Custom button ?

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

how to Custom button ?

Postby Dayn » Fri Jul 10, 2009 10:04 am

I'm going to make an interface VoiceMail Menu like the IPhone.
Firstly I going to create cutom buttons "delete" ans "call back" like the screenshot (in french).

So, I'm using droiddraw. but when I change the color button, eclipse don't agree with me.

Eclipse don't like:

android:background="@drawable/green"

android:background="@drawable/green"

I just create an xml file.

Do you know any thing to fix that or to custom color of any buttons or bakground?

Have I to add any file with my project android?

Thanks

Dayn
Attachments
button.JPG
button.JPG (199.07 KiB) Viewed 1272 times
User avatar
Dayn
Developer
Developer
 
Posts: 31
Joined: Thu Jul 09, 2009 10:45 am
Location: Paris and Dijon

Top

Postby Scizorownage » Fri Jul 10, 2009 9:18 pm

android:background="#33BB22"
if you use names it looks for an image in the res/drawable folder with that name, which is why you get an error.
Use hex color codes instead
Scizorownage
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Jul 10, 2009 9:15 pm

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 6 guests