FileDocCategorySizeDatePackage
DirectoryView.javaAPI DocAndroid 5.1 API1738Thu Mar 12 22:22:40 GMT 2015com.android.documentsui

DirectoryView

public class DirectoryView extends android.widget.FrameLayout

Fields Summary
private float
mPosition
private int
mWidth
Constructors Summary
public DirectoryView(android.content.Context context)


       
        super(context);
    
public DirectoryView(android.content.Context context, android.util.AttributeSet attrs)

        super(context, attrs);
    
Methods Summary
public floatgetPosition()

        return mPosition;
    
protected voidonSizeChanged(int w, int h, int oldw, int oldh)

        super.onSizeChanged(w, h, oldw, oldh);
        mWidth = w;
        setPosition(mPosition);
    
public voidsetPosition(float position)

        mPosition = position;
        setX((mWidth > 0) ? (mPosition * mWidth) : 0);

        if (mPosition != 0) {
            setTranslationZ(getResources().getDimensionPixelSize(R.dimen.dir_elevation));
        } else {
            setTranslationZ(0);
        }