Alias custom view path in XML

by Ward Willats » Tue, 24 Mar 2009 22:42:16 GMT


Sponsored Links
 Is there a way to alias the path to my custom view class (perhaps in 
its <styleable>) so I can say

<MyGreatView>

in the XML, instead of

<com.myco.myapps.MyGreatView>

(I played around with the months ago, namespaces and what-not, but 
never found a solution.)

Just a "nice to have" thing.

Thanks

-- Ward

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



Alias custom view path in XML

by Mark Murphy » Tue, 24 Mar 2009 22:50:35 GMT


 


Not that I'm aware of. Otherwise, I would have expected Google to avail
itself of the technique with MapView. Right now, we have to spell out
the whole fully-qualified class name when putting MapView in our layouts
(unless something changed on that front that I missed).

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!

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


Sponsored Links


Alias custom view path in XML

by mawei1981 » Sat, 11 Apr 2009 00:52:26 GMT


 I like the full namespace, so I can find my custom component easy and
clear.








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



Other Threads

1. sdcard mount problem-"Volmgr not ready to handle device" error

Hi,
 I'm porting android 1.6 to our omap 3530 based board.

We have two partition in our sdcard.

1. mmcblk0p1- rootfs(containing android file system) -ext3 type

2. mmcblk0p2 - this had to be mounted as /sdcard - vfat type.

When android got boots in, sdcard partition /dev/mmcblk0p2 didn't get
mounted in /sdcard.
I have configured vold.conf correctly as below
    media_path /devices/platform/mmci-omap-hs.0/mmc_host/mmc0



 I get following message from logcat

I/vold    (  658): New MMC card 'SD01G' (serial 2478986119) added @ /
devices/pla
tform/mmci-omap-hs.0/mmc_host/mmc0/mmc0:6d66
I/vold    (  658): Disk (blkdev 179:0), 1939456 secs (947 MB) 2
partitions
I/vold    (  658): New blkdev 179.0 on media SD01G, media path /
devices/platform
/mmci-omap-hs.0/mmc_host/mmc0/mmc0:6d66, Dpp 2
I/vold    (  658): Partition (blkdev 179:1), 991938 secs (484 MB) type
0xb
I/vold    (  658): New blkdev 179.1 on media SD01G, media path /
devices/platform
/mmci-omap-hs.0/mmc_host/mmc0/mmc0:6d66, Dpp 1
I/vold    (  658): Partition (blkdev 179:2), 947422 secs (462 MB) type
0x83
I/vold    (  658): New blkdev 179.2 on media SD01G, media path /
devices/platform
/mmci-omap-hs.0/mmc_host/mmc0/mmc0:6d66, Dpp 0
I/vold    (  658): Evaluating dev '/devices/platform/mmci-omap-hs.0/
mmc_host/mmc
0/mmc0:6d66/block/mmcblk0' for mountable filesystems for '/sdcard'
I/vold    (  658): Aborting start of /sdcard (bootstrap = 1)
I/vold    (  658): Volmgr not ready to handle device
E/vold    (  658): Unable to open '/sys/class/switch' (No such file or
directory
)
D/vold    (  658): Bootstrapping complete


It appears to me that, uevent for mounting sdcard arrives, even before
bootstrapping finishes out (not sure), which leads to aborting of
mouting of sdcard.

 What could be the cause of this issue??. Please give me suggestions
to fix up the issue.

regards,
P.Arun



-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. How to change the color depth of Android from 16 bpp to 24 bpp.

My lcd supports 24 bpp(RGB888) and it can work normal in
bootloader. I know the default setting of Android is 16 bpp. How do I
change it to 24 bpp.

  In frameworks/base/libs/surfaceflinger/, it has many color
conversion from 24 bpp to 16 bpp, Do I modify these?


Thanks for anyone attention to this topic.

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. SD Card Automount Problem with Android 1.6

4. is it possible to increase the dns number by simply changing MAXNS in resolv_private.h?

5. Dalvik JAR in Eclipse

6. Android Source Code Downloading & Buildin

7. Using the serial port on the g1