// Path: LoopBar-widget/src/main/java/com/cleveroad/loopbar/adapter/IOperationItem.java
// public interface IOperationItem {
// 
//     boolean isVisible();
// 
//     void setVisible(boolean isVisible);
// }


import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.LayoutRes;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.cleveroad.loopbar.R;
import com.cleveroad.loopbar.adapter.IOperationItem;
import java.util.Collection;
    void setOrientation(int orientation) {
        if (mOrientation != orientation) {
            mOrientation = orientation;
            mInputAdapter.setOrientation(orientation);
        }
    }

    int getSelectedGravity() {
        return mSelectedGravity;
    }

    void setSelectedGravity(int selectedGravity) {
        if (mSelectedGravity != selectedGravity) {
            mSelectedGravity = selectedGravity;
            notifyDataSetChanged();
        }
    }

    int normalizePosition(int position) {
        return mInputAdapter.normalizePosition(position);
    }

    private View createHeaderView(ViewGroup parent) {
        @LayoutRes int layoutId = mOrientation == Orientation.ORIENTATION_VERTICAL_LEFT
                ? R.layout.enls_empty_header_vertical
                : R.layout.enls_empty_header_horizontal;
        return LayoutInflater.from(parent.getContext()).inflate(layoutId, parent, false);
    }

    @SuppressWarnings("WeakerAccess")
// Path: LoopBar-widget/src/main/java/com/cleveroad/loopbar/adapter/IOperationItem.java
// public interface IOperationItem {
// 
//     boolean isVisible();
// 
//     void setVisible(boolean isVisible);
// }


// Path: LoopBar-widget/src/main/java/com/cleveroad/loopbar/widget/ChangeScrollModeAdapter.java
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.LayoutRes;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.cleveroad.loopbar.R;
import com.cleveroad.loopbar.adapter.IOperationItem;
import java.util.Collection;

    void setOrientation(int orientation) {
        if (mOrientation != orientation) {
            mOrientation = orientation;
            mInputAdapter.setOrientation(orientation);
        }
    }

    int getSelectedGravity() {
        return mSelectedGravity;
    }

    void setSelectedGravity(int selectedGravity) {
        if (mSelectedGravity != selectedGravity) {
            mSelectedGravity = selectedGravity;
            notifyDataSetChanged();
        }
    }

    int normalizePosition(int position) {
        return mInputAdapter.normalizePosition(position);
    }

    private View createHeaderView(ViewGroup parent) {
        @LayoutRes int layoutId = mOrientation == Orientation.ORIENTATION_VERTICAL_LEFT
                ? R.layout.enls_empty_header_vertical
                : R.layout.enls_empty_header_horizontal;
        return LayoutInflater.from(parent.getContext()).inflate(layoutId, parent, false);
    }

    @SuppressWarnings("WeakerAccess")
    class HeaderHolder extends BaseRecyclerViewHolder<IOperationItem> {