Challenge For Android ImageButton background

voxa2

New Member
Alright so I was trying to figure this out and how no idea how to proceedbelow is a ScrollView which look background is set to @drawable/patterrepeat\[code\]<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:fillViewport="false" android:background="@drawable/patternrepeat"></ScrollView>\[/code\]Now patternrepeat is an xml drawable that looks like this below\[code\]<?xml version="1.0" encoding="utf-8"?><bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:src="http://stackoverflow.com/questions/14079392/@drawable/pattern" android:tileMode="repeat"/>\[/code\]Now the src for this bitmap is a PNG image.The challenge is how to access this "PROGRAMMATICALLY" ScrollView---->Bitmap----->Bitmap Original PNG SourcesThe reason for this is that the Original Sources is Tiled to Create the Bitmap which is then loaded into the ScrollView to create the background...How would one Proceed with this?
 
Back
Top