I am new to android. i want to set background image for my android app.i have only a small slice of the image.i want to repeat image only horizontally.i tried in two ways. 1.By using bitmap when i used bitmap image is repeating in both directions(horizontal and vertical).
<?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" />
2.Used background and tileMode in Layout file.
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/background"
android:orientation="vertical" >
In above case image in stretching horizontally.
Please help me to fix this issue.
first image is image to repeat and second image is post screen