开发者

Android - homescreen appwidget transparency

开发者 https://www.devze.com 2023-02-14 10:39 出处:网络
I have an application that publishes a homescreen widget. The widget has portions that are transpa开发者_Python百科rent. I have recently updated to API 10 and latest ADT (10), and now my Appwidget has

I have an application that publishes a homescreen widget. The widget has portions that are transpa开发者_Python百科rent. I have recently updated to API 10 and latest ADT (10), and now my Appwidget has lost it's transparency. Has anyone encountered this and have you found a fix?

My widget is a PNG-24 with transparency info, it is 100x100 pixels - might that be the issue? It has been working well previously. I am testing on Android 2.2 device (HTC Incredible) as well as on emulator 2.1.

Thanks!


Duh! I had the color changed in the layout wrapping the widget element from #0000 to #000000 which is obviously not transparent.

0

精彩评论

暂无评论...
验证码 换一张
取 消