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. MapActivity( 424): Couldn't get connection factory client

Hello Experts,

I am facing the error mentioned in subject line on loading my app. I
have generated the key as per the right method and added it at the
right place in mail.xml.
I also read that it might happen because of wrong debug.keystore. i
also went and regenerated keystore & corresponding key but no luck.
Can some one pls help me with this.

regards,
ayush

-- 

2. usb-serial controller

Hi, i'd like to send/receive data from a device connected by USB-
Serial Controller. When I connect the cable Android seems to recognize
it because the logcat show:

usb 1-2.2: new full speed USB device using ehci-omap and address 11
usb 1-2.2: New USB device found, idVendor=067b, idProduct=2303
usb 1-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-2.2: Product: USB-Serial Controller
usb 1-2.2: Menr: Prolific Technology Inc.

but there's no reference to the device in /dev/ttyUSB0. How can i
access to the device by USB-Serial Controller?

Cheers
Giorgio

-- 

3. java.lang.NullPointerException encountered while running Android Pre Compiler.

4. Android and External Keyboard

5. Webview Certificate

6. Not able to connect with bluetooth keyboard using port

7. about cursor