apply color to Button

by Dilli » Fri, 13 Mar 2009 00:17:18 GMT


Sponsored Links
 Hi all,

I am developing a simple GUI with three buttons

i want to fill the button with color

but i found back ground color. if i set mybutton.setBackgroundcolor
(color);

it's not visible

how can i fill the button with color..

need help

Thank you

Dilli


--~--~---------~--~----~------------~-------~--~----~



apply color to Button

by Sundog » Fri, 13 Mar 2009 00:22:52 GMT


 Make sure the color you're sending has an alpha component.



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


apply color to Button

by dillirao malipeddi » Fri, 13 Mar 2009 12:18:34 GMT


 Thank you it works fine now..






-- 
Dilli Rao. M

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Read/write files on the device SD card from a desktop/laptop application

If you plug the device, it is mounted as USB mass storage indeed, and
the mounted volume root is /sdcard. I have no idea however what Linux
user is used to access the sdcard. But that doesn't really matter, it
works :)






-- 
Romain Guy
www.curious-creature.org

--~--~---------~--~----~------------~-------~--~----~

2. Problem with the onUpdate method of an SQLiteOpenHelper

Ok, so everything that I've been doing with my db has been fine until
I changed it.  I made sure that the onUpgrade was right and I get
errors nonetheless.  Here is my method:

        @Override
        public void onUpgrade(SQLiteDatabase db, int oldVersion, int
newVersion) {
                db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME);
                db.execSQL("DROP TABLE IF EXISTS " + FIRST_RUN_TABLE);
                onCreate(db);
        }

and here is the error:

android.database.sqlite.SQLiteException: Can't upgrade read-only
database from version 1 to 2

I can't seem to find my error.  Can you tell what I am doing wrong
here?

Thanks!
-fREW

--~--~---------~--~----~------------~-------~--~----~

3. Read/write files on the device SD card from a desktop/laptop application

4. Could change Android boot logo

5. error in running Scrapbook from Eclipse

6. Unlocked G1 issue

7. Fade in and Fade out animations for activities