I want to use a Bitmap that Tile on the Horizontal only, is there any way to do it, so that it will expand only on X like repeat x on CSS. I using the following code but the bitmap tile Horizontal and vertical :
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/pinstripe"
android:tileMode="repeat"
android:gravity ="top|fill_horizontal"
android:dither="true"/>
Here is the solution. You can create BitmapDrawable in code and specify only X tile mode Android Tile Bitmap
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With