I have a tiled background graphic with a header and footer part. Something like this:

How can I use this as background for a android view? The middle part should repeat to fill the screen height (it should NOT stretch like in a 9-patch).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If I understand you right, you may need to convert the image to a nine-patch graphic.
EDIT:
BitmapRegionDecoderto get the region that is to berepeated as a Bitmap.
BitmapShaderwithTileMode.CLAMP, TileMode.REPEAT.canvas.drawRect().