Question about create a Custom Button

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

Question about create a Custom Button

Postby silverburgh.meryl » Wed Feb 11, 2009 1:46 am

Hi,

I am trying to create a custom Button.

Here is my code:


What I don't understand is, why it has a border for my 'button' and has white background when it does not have focus and an orange background when it has a focus?

I have over-ride the onDraw() method, so it should not paint anything except the text 'hello' right?
silverburgh.meryl
Junior Developer
Junior Developer
 
Posts: 23
Joined: Sun Feb 08, 2009 11:17 pm

Top

Postby egyptian » Sat Feb 21, 2009 10:28 pm

Where is your code? lol
Without God, I would not have ANY skills.
egyptian
Developer
Developer
 
Posts: 36
Joined: Fri Jan 16, 2009 5:45 am
Location: Lee's Summit, Missouri

Postby MrSnowflake » Sun Feb 22, 2009 1:14 pm

It's a new coding style: invisible coding, it has a lot less bugs :)
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby pskink » Sun Feb 22, 2009 2:34 pm

MrSnowflake wrote:It's a new coding style: invisible coding, it has a lot less bugs :)


not exactly: now android has support not only to java programming language but also to whitespace programming language (try googling for 'whitespace programming language').
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Postby MrSnowflake » Sun Feb 22, 2009 2:39 pm

Nice, to see a new language is added :D.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby egyptian » Mon Feb 23, 2009 6:16 pm

What will they think of next?!!! :D
Without God, I would not have ANY skills.
egyptian
Developer
Developer
 
Posts: 36
Joined: Fri Jan 16, 2009 5:45 am
Location: Lee's Summit, Missouri

Top

Postby MrSnowflake » Mon Feb 23, 2009 6:20 pm

How about assembler, I've heard many things about it already...
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Top

Return to View, Layout & Resource Problems

Who is online

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