
我尝试了很多东西(是否有任何WYSIWIG编辑器?我认为我运行了数百次.)如下文所述指定宽度不起作用.
how to specify width and height of a drawable item
以下文章只告诉我,我不能使用百分比,现在如何应用宽度.
Android Drawable: Specifying shape width in percent in the XML file?
<?xml version="1.0" enCoding="utf-8"?><@R_245_3419@ xmlns:androID="http://schemas.androID.com/apk/res/androID"> <item> <shape> <solID androID:color="#FFFFFFFF"/> </shape> </item> <item> <shape androID:shape="rectangle"> <solID androID:color="#55FF0000" /> <size androID:wIDth="100px" /> </shape> </item></@R_245_3419@>解决方法 您可以指定使用可绘制资源的ImageVIEw或其他窗口小部件的宽度. < shape>背后的重点是为了不指定大小,因此它可以在运行时应用于各种大小. 总结
以上是内存溢出为你收集整理的设置Android Drawable项目的宽度?全部内容,希望文章能够帮你解决设置Android Drawable项目的宽度?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)