Any good tutorial shows how to use Droid-fu library's WebGalleryAdapter with gallery widget ??? here you can found info about droid-fu libaray
A:
public class ImageSwitcherGallery extends Activity{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
WebGalleryAdapter webAdapter = new WebGalleryAdapter(ImageGallery.this);
try {
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.image_switcher_1);
webAdapter.setImageUrls(loadImages());
webAdapter.setProgressDrawable(getResources().getDrawable(R.drawable.ajax_loader));
Gallery gallery = (Gallery)findViewById(R.id.gallery);
gallery.setAdapter(webAdapter);
} catch (Exception e) {
Log.e(TAG, Util.getExceptionMsg(e));
}
}
private LinkedList<String> loadImages(){
//loading images from another static object
LinkedList<ImageURL> urlList = ResultSetHandler.getImagesGalleryUrls();
LinkedList<String> list = new LinkedList<String>();
for(ImageURL imageUrl: urlList){
list.add(imageUrl.getImagePath());
}
return list;
}
//Retriving loaded image urls
}
i am only using gallery thats why it is only displaying section 2, how can i switcher object with droid-fu libaray ?
Faisal khan
2010-01-03 12:58:42
is there any thing named WebImageGallery in droid-fu library i could not found any thing...
Faisal khan
2010-01-03 13:57:02