is it possible to reference custom drawable from layout file?

by skink » Sun, 08 Nov 2009 06:33:17 GMT


Sponsored Links
 hi,

i heard somewhere that if i have custom drawable (class extending
Drawable), starting from donut 1.6 it will be possible to reference it
directly from layout file, something like this:

<Button
android:drawable="org.example.MyDrawable"
...
/>

is it true? and if so, what is an exact syntax of that reference?

thanks
pskink




--



Other Threads

1. Linux kernel Include files

Hi,

We are trying to call the linux kernel APIs enable_irq(), disable_irq
() etc directly from the opencore/codecs_v2/video/dec/src .There are
lot many compilation errors getting listed.


We would like to know whether kernel APIs can be directly called from
Opencore???


Has anybody tried like this before??
Please help us on this.


Thanks&Regards


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

2. Android BUG....

Issue ID 1583 -- Reported on December of 2008.
    If you have two contacts with the same last 4 numbers, it appears
to
    display the first contact.  Phone number matching with caller-id
is only
    matching the last 4 numbers and not the entire phone number.

Not resolved affects hundreds of staff at my company.  August 1st, we
need to make a purchasing decision for 350 phones.  Google folks, your
taking yourself right of the business community with very dumb
mistakes.

If you can't solve a problem a simple usability problem like this, why
would we want to use the business community to chrome, desktop chrome,
or any other Google services?   Not only is it getting ridiculous but
the effort I have to take to get the visibility to get something so
stupid resolved.

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

3. what is the point of ProviderTestCase2?

4. Garbage Collector - best practice

5. Getting the PERSON_ID based on CallLog.Calls data

6. everyone likes compliments :*)

7. Enabling/Handling cookies on the Webview