Android 背景图片重复平铺 Background repeat
2017-07-29 14:29
441 查看
1、在xml文件中实现
在res下创建drawable目录,在drawable目录中创建xml文件:repeat_bg.xml
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:Android="http://schemas.android.com/apk/res/android"
android:src="@drawable/ic_launcher"
android:tileMode="repeat"
android:dither="true">
</bitmap>
然后在layout下的文件里在 drawable;backgroud=“@drawable/repeat_bg”
在res下创建drawable目录,在drawable目录中创建xml文件:repeat_bg.xml
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:Android="http://schemas.android.com/apk/res/android"
android:src="@drawable/ic_launcher"
android:tileMode="repeat"
android:dither="true">
</bitmap>
然后在layout下的文件里在 drawable;backgroud=“@drawable/repeat_bg”
相关文章推荐
- Android设置背景图片平铺 创建重复的背景图片铺满屏幕
- Android 背景图片重复平铺 Background repeat
- Android 背景图片重复平铺
- Android activity 平铺背景图片
- android 防止背景图片被拉伸 背景图片平铺
- android学习——实现背景图片平铺
- 在html中,怎么设置背景图片不重复不平铺,只显示一张图片
- Android 平铺背景图片
- css中设置网页背景图片平铺但不重复
- 如果让DIV的背景图片适应DIV的高和宽,不平铺,不重复
- Android activity 平铺背景图片
- Android设置背景图片平铺
- Android: 背景图片平铺要这么干
- android xml配置背景图片平铺
- 让页面背景图片不平铺重复的方法
- Android 平铺背景图片
- Android 平铺背景图片
- android绘制背景平铺Bitmap图片
- Android中设定背景图片平铺。
- Android设置背景图片平铺