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 1142 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 5 guests