// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/sample/activity/GridViewActivity.java
// public class GridViewActivity extends AppCompatActivity {
//   @Override
//   protected void onCreate(Bundle savedInstanceState) {
//     super.onCreate(savedInstanceState);
// 
//     setContentView(R.layout.activity_sample_main);
// 
//     if (savedInstanceState == null) {
//       getSupportFragmentManager()
//           .beginTransaction()
//           .add(R.id.container, new GridViewFragment())
//           .commit();
//     }
//   }
// }
// 
// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/sample/activity/ListViewActivity.java
// public class ListViewActivity extends AppCompatActivity{
//   @Override
//   protected void onCreate(Bundle savedInstanceState) {
//     super.onCreate(savedInstanceState);
// 
//     setContentView(R.layout.activity_sample_main);
// 
//     if (savedInstanceState == null) {
//       getSupportFragmentManager()
//           .beginTransaction()
//           .add(R.id.container, new ListViewFragment())
//           .commit();
//     }
//   }
// }
// 
// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/sample/activity/RecyclerViewActivity.java
// public class RecyclerViewActivity extends AppCompatActivity {
//   @Override
//   protected void onCreate(Bundle savedInstanceState) {
//     super.onCreate(savedInstanceState);
// 
//     setContentView(R.layout.activity_sample_main);
// 
//     if (savedInstanceState == null) {
//       getSupportFragmentManager()
//           .beginTransaction()
//           .add(R.id.container, new RecyclerViewFragment())
//           .commit();
//     }
//   }
// }
// 
// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/sample/activity/ScrollViewActivity.java
// public class ScrollViewActivity extends AppCompatActivity {
// 
//   @Override
//   protected void onCreate(Bundle savedInstanceState) {
//     super.onCreate(savedInstanceState);
// 
//     setContentView(R.layout.activity_sample_main);
// 
//     if (savedInstanceState == null) {
//       getSupportFragmentManager()
//           .beginTransaction()
//           .add(R.id.container, new ScrollViewFragment())
//           .commit();
//     }
//   }
// }
// 
// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/sample/activity/SlidingIconTabActivity.java
// public class SlidingIconTabActivity extends AppCompatActivity {
// 
//   @Override
//   protected void onCreate(Bundle savedInstanceState) {
//     super.onCreate(savedInstanceState);
// 
//     getSupportActionBar().setElevation(0);
//     setContentView(R.layout.activity_sample_main);
// 
//     if (savedInstanceState == null) {
//       getSupportFragmentManager()
//           .beginTransaction()
//           .add(R.id.container, new SlidingIconTabFragment())
//           .commit();
//     }
//   }
// }
// 
// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/sample/activity/SlidingTabActivity.java
// public class SlidingTabActivity extends AppCompatActivity {
// 
//   @Override
//   protected void onCreate(Bundle savedInstanceState) {
//     super.onCreate(savedInstanceState);
// 
//     getSupportActionBar().setElevation(0);
//     setContentView(R.layout.activity_sample_main);
// 
//     if (savedInstanceState == null) {
//       getSupportFragmentManager()
//           .beginTransaction()
//           .add(R.id.container, new SlidingTabFragment())
//           .commit();
//     }
//   }
// }
// 
// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/sample/SampleType.java
// public enum SampleType {
//   ScrollView, GridView, RecyclerView, ListView, SlidingTabLayout, SlidingIconTabLayout
// }


import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.androidstarterkit.module.sample.activity.GridViewActivity;
import com.androidstarterkit.module.sample.activity.ListViewActivity;
import com.androidstarterkit.module.R;
import com.androidstarterkit.module.sample.activity.RecyclerViewActivity;
import com.androidstarterkit.module.sample.activity.ScrollViewActivity;
import com.androidstarterkit.module.sample.activity.SlidingIconTabActivity;
import com.androidstarterkit.module.sample.activity.SlidingTabActivity;
import com.androidstarterkit.module.sample.SampleType;
import java.util.List;
  @Override
  public View getView(final int position, View convertView, ViewGroup parent) {
    ViewHolder viewHolder;

    if (convertView == null) {
      convertView = inflater.inflate(R.layout.layout_main_list_item, parent, false);

      viewHolder = new ViewHolder();
      viewHolder.title= (TextView) convertView.findViewById(R.id.title);
      convertView.setTag(viewHolder);
    } else {
      viewHolder = (ViewHolder) convertView.getTag();
    }

    viewHolder.title.setText(dataSet.get(position).name());

    convertView.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
        SampleType sampleType = dataSet.get(position);
        Intent intent = null;

        switch (sampleType) {
          case ScrollView:
            intent = new Intent(context, ScrollViewActivity.class);
            break;
          case GridView:
            intent = new Intent(context, GridViewActivity.class);
            break;
          case RecyclerView:
// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/sample/activity/GridViewActivity.java
// public class GridViewActivity extends AppCompatActivity {
//   @Override
//   protected void onCreate(Bundle savedInstanceState) {
//     super.onCreate(savedInstanceState);
// 
//     setContentView(R.layout.activity_sample_main);
// 
//     if (savedInstanceState == null) {
//       getSupportFragmentManager()
//           .beginTransaction()
//           .add(R.id.container, new GridViewFragment())
//           .commit();
//     }
//   }
// }
// 
// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/sample/activity/ListViewActivity.java
// public class ListViewActivity extends AppCompatActivity{
//   @Override
//   protected void onCreate(Bundle savedInstanceState) {
//     super.onCreate(savedInstanceState);
// 
//     setContentView(R.layout.activity_sample_main);
// 
//     if (savedInstanceState == null) {
//       getSupportFragmentManager()
//           .beginTransaction()
//           .add(R.id.container, new ListViewFragment())
//           .commit();
//     }
//   }
// }
// 
// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/sample/activity/RecyclerViewActivity.java
// public class RecyclerViewActivity extends AppCompatActivity {
//   @Override
//   protected void onCreate(Bundle savedInstanceState) {
//     super.onCreate(savedInstanceState);
// 
//     setContentView(R.layout.activity_sample_main);
// 
//     if (savedInstanceState == null) {
//       getSupportFragmentManager()
//           .beginTransaction()
//           .add(R.id.container, new RecyclerViewFragment())
//           .commit();
//     }
//   }
// }
// 
// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/sample/activity/ScrollViewActivity.java
// public class ScrollViewActivity extends AppCompatActivity {
// 
//   @Override
//   protected void onCreate(Bundle savedInstanceState) {
//     super.onCreate(savedInstanceState);
// 
//     setContentView(R.layout.activity_sample_main);
// 
//     if (savedInstanceState == null) {
//       getSupportFragmentManager()
//           .beginTransaction()
//           .add(R.id.container, new ScrollViewFragment())
//           .commit();
//     }
//   }
// }
// 
// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/sample/activity/SlidingIconTabActivity.java
// public class SlidingIconTabActivity extends AppCompatActivity {
// 
//   @Override
//   protected void onCreate(Bundle savedInstanceState) {
//     super.onCreate(savedInstanceState);
// 
//     getSupportActionBar().setElevation(0);
//     setContentView(R.layout.activity_sample_main);
// 
//     if (savedInstanceState == null) {
//       getSupportFragmentManager()
//           .beginTransaction()
//           .add(R.id.container, new SlidingIconTabFragment())
//           .commit();
//     }
//   }
// }
// 
// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/sample/activity/SlidingTabActivity.java
// public class SlidingTabActivity extends AppCompatActivity {
// 
//   @Override
//   protected void onCreate(Bundle savedInstanceState) {
//     super.onCreate(savedInstanceState);
// 
//     getSupportActionBar().setElevation(0);
//     setContentView(R.layout.activity_sample_main);
// 
//     if (savedInstanceState == null) {
//       getSupportFragmentManager()
//           .beginTransaction()
//           .add(R.id.container, new SlidingTabFragment())
//           .commit();
//     }
//   }
// }
// 
// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/sample/SampleType.java
// public enum SampleType {
//   ScrollView, GridView, RecyclerView, ListView, SlidingTabLayout, SlidingIconTabLayout
// }


// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/ui/adapter/MainBaseAdapter.java
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.androidstarterkit.module.sample.activity.GridViewActivity;
import com.androidstarterkit.module.sample.activity.ListViewActivity;
import com.androidstarterkit.module.R;
import com.androidstarterkit.module.sample.activity.RecyclerViewActivity;
import com.androidstarterkit.module.sample.activity.ScrollViewActivity;
import com.androidstarterkit.module.sample.activity.SlidingIconTabActivity;
import com.androidstarterkit.module.sample.activity.SlidingTabActivity;
import com.androidstarterkit.module.sample.SampleType;
import java.util.List;

  @Override
  public View getView(final int position, View convertView, ViewGroup parent) {
    ViewHolder viewHolder;

    if (convertView == null) {
      convertView = inflater.inflate(R.layout.layout_main_list_item, parent, false);

      viewHolder = new ViewHolder();
      viewHolder.title= (TextView) convertView.findViewById(R.id.title);
      convertView.setTag(viewHolder);
    } else {
      viewHolder = (ViewHolder) convertView.getTag();
    }

    viewHolder.title.setText(dataSet.get(position).name());

    convertView.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
        SampleType sampleType = dataSet.get(position);
        Intent intent = null;

        switch (sampleType) {
          case ScrollView:
            intent = new Intent(context, ScrollViewActivity.class);
            break;
          case GridView:
            intent = new Intent(context, GridViewActivity.class);
            break;
          case RecyclerView:
            intent = new Intent(context, RecyclerViewActivity.class);