FileDocCategorySizeDatePackage
ItemAlignment.javaAPI DocAndroid 5.1 API6108Thu Mar 12 22:22:56 GMT 2015android.support.v17.leanback.widget

ItemAlignment

public class ItemAlignment extends Object
Defines alignment position on two directions of an item view. Typically item view alignment is at the center of the view. The class allows defining alignment at left/right or fixed offset/percentage position; it also allows using descendant view by id match.

Fields Summary
private int
mOrientation
public final Axis
vertical
public final Axis
horizontal
private Axis
mMainAxis
private Axis
mSecondAxis
Constructors Summary
Methods Summary
public final intgetOrientation()

        return mOrientation;
    
public final android.support.v17.leanback.widget.ItemAlignment$AxismainAxis()


        
        return mMainAxis;
    
public final android.support.v17.leanback.widget.ItemAlignment$AxissecondAxis()

        return mSecondAxis;
    
public final voidsetOrientation(int orientation)

        mOrientation = orientation;
        if (mOrientation == HORIZONTAL) {
            mMainAxis = horizontal;
            mSecondAxis = vertical;
        } else {
            mMainAxis = vertical;
            mSecondAxis = horizontal;
        }