在android中做图片的平铺需要两步:
1. 美工出图,“根图片”,就是一个小小的图,像这样
好小啊,看不清- -!命名为bg.png
2. 一个xml文件,名为point_bg.xml
内容:<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/point_bg"
android:tileMode="repeat" /> //这里选择平铺模式
然后再view中设置background为point_bg就行了。