// Path: sample/src/main/java/com/cleveroad/sample/fragments/CategoriesAdapterLoopBarFragment.java
// public class CategoriesAdapterLoopBarFragment extends AbstractLoopBarFragment {
//     public static CategoriesAdapterLoopBarFragment newInstance(int orientation) {
//         Bundle args = new Bundle();
//         args.putInt(EXTRA_ORIENTATION, orientation);
// 
//         CategoriesAdapterLoopBarFragment fragment = new CategoriesAdapterLoopBarFragment();
//         fragment.setArguments(args);
//         return fragment;
//     }
// 
//     @Override
//     public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
//         LoopBarView loopBarView = getLoopBarView();
//         loopBarView.setCategoriesAdapter(new SimpleCategoriesAdapter(MockedItemsFactory.getCategoryItems(getContext())));
//     }
// 
//     @Override
//     protected Fragment getNewInstance(int orientation) {
//         return newInstance(orientation);
//     }
// }


import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import com.cleveroad.loopbar.widget.Orientation;
import com.cleveroad.sample.fragments.CategoriesAdapterLoopBarFragment;
package com.cleveroad.sample;




public class MainActivity extends AppCompatActivity implements IFragmentReplacer {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        if (savedInstanceState == null) {
// Path: sample/src/main/java/com/cleveroad/sample/fragments/CategoriesAdapterLoopBarFragment.java
// public class CategoriesAdapterLoopBarFragment extends AbstractLoopBarFragment {
//     public static CategoriesAdapterLoopBarFragment newInstance(int orientation) {
//         Bundle args = new Bundle();
//         args.putInt(EXTRA_ORIENTATION, orientation);
// 
//         CategoriesAdapterLoopBarFragment fragment = new CategoriesAdapterLoopBarFragment();
//         fragment.setArguments(args);
//         return fragment;
//     }
// 
//     @Override
//     public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
//         LoopBarView loopBarView = getLoopBarView();
//         loopBarView.setCategoriesAdapter(new SimpleCategoriesAdapter(MockedItemsFactory.getCategoryItems(getContext())));
//     }
// 
//     @Override
//     protected Fragment getNewInstance(int orientation) {
//         return newInstance(orientation);
//     }
// }


// Path: sample/src/main/java/com/cleveroad/sample/MainActivity.java
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import com.cleveroad.loopbar.widget.Orientation;
import com.cleveroad.sample.fragments.CategoriesAdapterLoopBarFragment;

package com.cleveroad.sample;




public class MainActivity extends AppCompatActivity implements IFragmentReplacer {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        if (savedInstanceState == null) {
            replaceFragment(CategoriesAdapterLoopBarFragment.newInstance(Orientation.ORIENTATION_VERTICAL_LEFT));