有没有办法在android中绘制“带状线”作为背景?
附有图片以便更好地说明:(Youtube 应用程序)
最佳答案
示例:
将 wood_pattern.xml
添加到 res/drawable/
:
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap
android:src="@drawable/bg_wood"
android:tileMode="repeat"
android:dither="true"
android:antialias="true"/>
</item>
</layer-list>
将其设置为背景:
android:background="@drawable/wood_pattern"
关于android - 如何绘制带状线作为背景,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17247278/