您的位置:首页 > 移动开发 > Android开发

Android布局实现图片的重复

2016-06-30 22:48 381 查看
在drawable中新建资源文件:

<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@mipmap/ic_launcher" android:tileModeY="repeat"/>


说明:

tileModeY :纵向重复图片
tileModeX :横向重复图片
tileMode  :铺满屏幕


使用:

android:background="@drawable/repeat"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: