class WearableRecyclerView extends RecyclerView {

    public void setEdgeItemsCenteringEnabled(boolean isEnabled) {
        mEdgeItemsCenteringEnabled = isEnabled;
        if (mEdgeItemsCenteringEnabled) {
            if (getChildCount() > 0) {
                setupCenteredPadding();
            } else {
                mCenterEdgeItemsWhenThereAreChildren = true;
            }
        } else {
            setupOriginalPadding();
            mCenterEdgeItemsWhenThereAreChildren = false;
        }
    }

    public  WearableRecyclerView(Context context);
    public  WearableRecyclerView(Context context, @Nullable AttributeSet attrs);
    public  WearableRecyclerView(Context context, @Nullable AttributeSet attrs, int defStyle);
    public  WearableRecyclerView(Context context, @Nullable AttributeSet attrs, int defStyle,
            int defStyleRes);

}