小图片怎么重复显示为一行

小图片如何重复显示为一行


图片中红圈的蓝点,是一张图,想用这个做成一个分割线。怎么让这个图在一条线上重复显示啊?
android布局的。

------解决方案--------------------
在drawable下创建一个xml文件,名字随便取,比如myPic.xml

myPic.xml
XML code

  <?xml version ="1.0" encoding ="utf-8"?>
    <bitmap xmlns:android="http://schemas.android.com/apk/res/android"
    android:src="@drawable/你要重复的圆点文件名"
    <!--设置成重复显示-->
    android:tileMode="repeat" />

------解决方案--------------------
哦,忘了Android资源文件名不支持大写字母了,你用小写就好了。
把你装填圆点的View高度设成wrap_content, 宽设成fill_parent,感觉上应该。
------解决方案--------------------
XML code

<?xml version ="1.0" encoding ="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
    android:src="@drawable/bg_main"
    android:tileMode="repeat" />

------解决方案--------------------
设View左右的padding
比如:

XML code

android:paddingLeft="10dp"
android:paddingRight="10dp"

------解决方案--------------------
XML code

android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"

------解决方案--------------------
很多合一起
------解决方案--------------------
探讨

引用:

在drawable下创建一个xml文件,名字随便取,比如myPic.xml

myPic.xml
XML code

<?xml version ="1.0" encoding ="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:s……