my test

public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Button tdummy = (Button) findViewById(R.id.Button01);
                Drawable d1 = getResources().getDrawable
(R.drawable.mydaysminipic_ov);

                d1.setColorFilter(0xffff0000, Mode.DST);

                tdummy.setBackgroundDrawable(d1);

    }

the mydaysminipic_ov is a yellow star on a transparent background
I would like to have that the star itself comes red and the background
still keeps transparent.

till now i did not got it work..when I made Mode.SRC just ALL come red
(full red button, but not a red star on a button :)

thanks for you ideas
yours chris


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to