ImageGalleryFragment

public class ImageGalleryFragment extends Fragment

This fragment allows you to embed in your activity an image gallery.

Fields

imageView

LinearLayout imageView

Methods

onActivityCreated

public void onActivityCreated(Bundle savedInstanceState)

onCreateView

public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)

Called when the activity is first created.

reloadGalleryImages

public void reloadGalleryImages()

Reloads the images contained in to the internal storage

selectImage

public void selectImage(int imageIndex)

Select an image from the gallery, by index array

Parameters:
  • imageIndex – the index of the image (the index 0 is the newest image)