
我正在开发一个应用程序,我需要创建相册并在GrIDVIEw中显示它们.现在我只是在没有任何背景的情况下显示它们,但我需要一个专辑封面的背景,以便它看起来像一堆照片.背景是这样的:
我尝试了这个,但它不起作用:
首先我创建了一个这样的背景:
<shape xmlns:androID="http://schemas.androID.com/apk/res/androID" > <solID androID:color="#FFFFFF" /> <stroke androID:wIDth="1dp" androID:color="#000000" /> <padding androID:bottom="1dp" androID:left="1dp" androID:right="1dp" androID:top="1dp" /></shape>然后我使用了一个图层列表来绘制带有旋转的堆栈:
<@R_689_3419@ xmlns:androID="http://schemas.androID.com/apk/res/androID" > <rotate androID:drawable="@drawable/thumb_bg" androID:fromdegrees="90" androID:pivotX="50%" androID:pivotY="50%" androID:todegrees="100" /> <rotate androID:drawable="@drawable/thumb_bg" androID:fromdegrees="90" androID:pivotX="50%" androID:pivotY="50%" androID:todegrees="110" /> <rotate androID:drawable="@drawable/thumb_bg" androID:fromdegrees="90" androID:pivotX="50%" androID:pivotY="50%" androID:todegrees="120" /></@R_689_3419@>解决方法:
将您的相册拇指放在虚拟图像上(其中包含2或3个差异图像).
总结以上是内存溢出为你收集整理的Android如何创建堆栈类图像背景全部内容,希望文章能够帮你解决Android如何创建堆栈类图像背景所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)