// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/data/FragmentInfo.java
// public class FragmentInfo {
//   private Class fragmentClass;
// 
//   public FragmentInfo(Class fragmentClass) {
//     this.fragmentClass = fragmentClass;
//   }
// 
//   public Class getFragmentClass() {
//     return fragmentClass;
//   }
// 
//   public int getIconResId() {
//     return R.mipmap.ic_launcher;
//   }
// }
// 
// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/ui/view/ScrollViewFragment.java
// public class ScrollViewFragment extends Fragment {
//   private static final String ARG_POSITION = "position";
// 
//   public static ScrollViewFragment newInstance(int position) {
//     ScrollViewFragment fragment = new ScrollViewFragment();
//     Bundle args = new Bundle();
//     args.putInt(ARG_POSITION, position);
//     fragment.setArguments(args);
//     return fragment;
//   }
// 
//   @Override
//   public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//     View view = inflater.inflate(R.layout.fragment_main, null);
//     TextView posTxt = (TextView) view.findViewById(R.id.pos_txt);
//     posTxt.setText("Hello, this's a ScrollView");
//     return view;
//   }
// }


import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.androidstarterkit.module.data.FragmentInfo;
import com.androidstarterkit.module.ui.view.ScrollViewFragment;
import java.util.List;
package com.androidstarterkit.module.ui.adapter;




public class SlidingTabAdapter extends FragmentPagerAdapter {

  private List<FragmentInfo> fragmentInfos;

  public SlidingTabAdapter(FragmentManager fragmentManager, List<FragmentInfo> fragmentInfos) {
    super(fragmentManager);

    this.fragmentInfos = fragmentInfos;
  }

  @Override
  public Fragment getItem(int position) {
    try {
      return (Fragment) Class.forName(fragmentInfos.get(position).getFragmentClass().getName())
          .getConstructor().newInstance();
    } catch (Exception e) {
// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/data/FragmentInfo.java
// public class FragmentInfo {
//   private Class fragmentClass;
// 
//   public FragmentInfo(Class fragmentClass) {
//     this.fragmentClass = fragmentClass;
//   }
// 
//   public Class getFragmentClass() {
//     return fragmentClass;
//   }
// 
//   public int getIconResId() {
//     return R.mipmap.ic_launcher;
//   }
// }
// 
// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/ui/view/ScrollViewFragment.java
// public class ScrollViewFragment extends Fragment {
//   private static final String ARG_POSITION = "position";
// 
//   public static ScrollViewFragment newInstance(int position) {
//     ScrollViewFragment fragment = new ScrollViewFragment();
//     Bundle args = new Bundle();
//     args.putInt(ARG_POSITION, position);
//     fragment.setArguments(args);
//     return fragment;
//   }
// 
//   @Override
//   public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//     View view = inflater.inflate(R.layout.fragment_main, null);
//     TextView posTxt = (TextView) view.findViewById(R.id.pos_txt);
//     posTxt.setText("Hello, this's a ScrollView");
//     return view;
//   }
// }


// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/ui/adapter/SlidingTabAdapter.java
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.androidstarterkit.module.data.FragmentInfo;
import com.androidstarterkit.module.ui.view.ScrollViewFragment;
import java.util.List;

package com.androidstarterkit.module.ui.adapter;




public class SlidingTabAdapter extends FragmentPagerAdapter {

  private List<FragmentInfo> fragmentInfos;

  public SlidingTabAdapter(FragmentManager fragmentManager, List<FragmentInfo> fragmentInfos) {
    super(fragmentManager);

    this.fragmentInfos = fragmentInfos;
  }

  @Override
  public Fragment getItem(int position) {
    try {
      return (Fragment) Class.forName(fragmentInfos.get(position).getFragmentClass().getName())
          .getConstructor().newInstance();
    } catch (Exception e) {
      return new ScrollViewFragment();