Example usage for android.widget Gallery setSpacing

List of usage examples for android.widget Gallery setSpacing

Introduction

In this page you can find the example usage for android.widget Gallery setSpacing.

Prototype

public void setSpacing(int spacing) 

Source Link

Document

Sets the spacing between items in a Gallery

Usage

From source file:mobisocial.musubi.objects.IntroductionObj.java

@Override
public void render(Context context, final View frame, DbObjCursor obj, final boolean allowInteractions) {
    Gallery intro = (Gallery) ((ViewGroup) frame).getChildAt(1);

    // TODO: LoaderManager requires access to a SupportActivity.
    intro.setAdapter(FacesAdapter.forObj(context, obj));
    intro.setSpacing(1);
    intro.setOnItemClickListener(mIdentityClickListener);
}