I have a question and is this:
In CSS we use background-repeat: repeat-x (or repeat-y) for repeat an image along the page... so, in Android I can use something like that? I wanna use something like that for my android application :)
I have a question and is this:
In CSS we use background-repeat: repeat-x (or repeat-y) for repeat an image along the page... so, in Android I can use something like that? I wanna use something like that for my android application :)
试试这是否适合您的需求。
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/tile_final"
android:tileMode="repeat"
android:dither="true" />
希望这对您有所帮助并享受您的工作。
android:tileMode="repeat"
myBitmapDrawable.setTileModeXY(...)
使用 tileModeX="repeat"...
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/greco_header_up"
android:tileModeY="disabled"
android:tileModeX="repeat" />