// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/ui/adapter/ListViewAdapter.java
// public class ListViewAdapter extends BaseAdapter {
//   private static final String TAG = ListViewAdapter.class.getSimpleName();
// 
//   private Context context;
//   private List<AndroidPlatform> platforms;
// 
//   public ListViewAdapter(Context context, List<AndroidPlatform> platforms) {
//     this.context = context;
//     this.platforms = platforms;
//   }
// 
//   @Override
//   public int getCount() {
//     return platforms.size();
//   }
// 
//   @Override
//   public Object getItem(int position) {
//     return platforms.get(position);
//   }
// 
//   @Override
//   public long getItemId(int position) {
//     return 0;
//   }
// 
//   @Override
//   public View getView(int position, View convertView, ViewGroup parent) {
//     AndroidPlatform platform = (AndroidPlatform) getItem(position);
// 
//     ViewHolder viewHolder;
// 
//     if (convertView == null) {
//       LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
//       convertView = inflater.inflate(R.layout.layout_list_item, parent, false);
// 
//       viewHolder = new ViewHolder();
//       viewHolder.logo = (ImageView) convertView.findViewById(R.id.img);
//       viewHolder.name = (TextView) convertView.findViewById(R.id.name);
//       viewHolder.platformVer = (TextView) convertView.findViewById(R.id.platform_ver);
//       convertView.setTag(viewHolder);
//     } else {
//       viewHolder = (ViewHolder) convertView.getTag();
//     }
// 
//     Glide.with(context).load(platform.getLogoUrl()).into(viewHolder.logo);
//     viewHolder.name.setText(platform.getName());
//     viewHolder.platformVer.setText(platform.getVerCode());
// 
//     return convertView;
//   }
// 
//   static class ViewHolder {
//     public ImageView logo;
//     public TextView name;
//     public TextView platformVer;
//   }
// }
// 
// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/data/AndroidPlatform.java
// public class AndroidPlatform {
//   private static final String FILE_PATH = "https://raw.githubusercontent.com/kimkevin/AndroidStarterKit/master/assets/";
//   private static final String EXTENSION_NAME = ".png";
// 
//   private String name;
//   private String verCode;
//   private int apiLevel;
//   private String logoUrl;
// 
//   public AndroidPlatform(String name, String verCode, int apiLevel) {
//     this.name = name;
//     this.verCode = verCode;
//     this.apiLevel = apiLevel;
//     this.logoUrl = FILE_PATH + name + EXTENSION_NAME;
//   }
// 
//   public String getName() {
//     return name.toUpperCase() + " " + apiLevel;
//   }
// 
//   public void setName(String name) {
//     this.name = name;
//   }
// 
//   public String getVerCode() {
//     return "Android " + verCode;
//   }
// 
//   public void setVerCode(String version) {
//     this.verCode = version;
//   }
// 
//   public int getApiLevel() {
//     return apiLevel;
//   }
// 
//   public void setApiLevel(int apiLevel) {
//     this.apiLevel = apiLevel;
//   }
// 
//   public String getLogoUrl() {
//     return logoUrl;
//   }
// 
//   public void setLogoUrl(String logoUrl) {
//     this.logoUrl = logoUrl;
//   }
// }


import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import com.androidstarterkit.module.R;
import com.androidstarterkit.module.ui.adapter.ListViewAdapter;
import com.androidstarterkit.module.data.AndroidPlatform;
import java.util.ArrayList;
import java.util.List;
package com.androidstarterkit.module.ui.view;





public class ListViewFragment extends Fragment {
  private static List<AndroidPlatform> platforms = new ArrayList<>();

  static {
    platforms.add(new AndroidPlatform("applepie", "1.0", 1));
    platforms.add(new AndroidPlatform("bananabread", "1.1", 2));
    platforms.add(new AndroidPlatform("cupcake", "1.5", 3));
    platforms.add(new AndroidPlatform("donut", "1.6", 4));
    platforms.add(new AndroidPlatform("eclair", "2.0", 5));
    platforms.add(new AndroidPlatform("froyo", "2.2", 8));
    platforms.add(new AndroidPlatform("gingerbread", "2.3", 9));
    platforms.add(new AndroidPlatform("honeycomb", "3.0", 11));
    platforms.add(new AndroidPlatform("icecreamsandwich", "4.0", 14));
    platforms.add(new AndroidPlatform("kitkat", "4.4", 19));
    platforms.add(new AndroidPlatform("lollipop", "5.0", 21));
    platforms.add(new AndroidPlatform("marshmallow", "6.0", 23));
    platforms.add(new AndroidPlatform("nougat", "7.0", 24));
  }

  @Nullable
  @Override
  public View onCreateView(LayoutInflater inflater, @Nullable  ViewGroup container, @Nullable  Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment_listview_main, null);

    ListView listView = (ListView) view.findViewById(R.id.list_view);

// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/ui/adapter/ListViewAdapter.java
// public class ListViewAdapter extends BaseAdapter {
//   private static final String TAG = ListViewAdapter.class.getSimpleName();
// 
//   private Context context;
//   private List<AndroidPlatform> platforms;
// 
//   public ListViewAdapter(Context context, List<AndroidPlatform> platforms) {
//     this.context = context;
//     this.platforms = platforms;
//   }
// 
//   @Override
//   public int getCount() {
//     return platforms.size();
//   }
// 
//   @Override
//   public Object getItem(int position) {
//     return platforms.get(position);
//   }
// 
//   @Override
//   public long getItemId(int position) {
//     return 0;
//   }
// 
//   @Override
//   public View getView(int position, View convertView, ViewGroup parent) {
//     AndroidPlatform platform = (AndroidPlatform) getItem(position);
// 
//     ViewHolder viewHolder;
// 
//     if (convertView == null) {
//       LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
//       convertView = inflater.inflate(R.layout.layout_list_item, parent, false);
// 
//       viewHolder = new ViewHolder();
//       viewHolder.logo = (ImageView) convertView.findViewById(R.id.img);
//       viewHolder.name = (TextView) convertView.findViewById(R.id.name);
//       viewHolder.platformVer = (TextView) convertView.findViewById(R.id.platform_ver);
//       convertView.setTag(viewHolder);
//     } else {
//       viewHolder = (ViewHolder) convertView.getTag();
//     }
// 
//     Glide.with(context).load(platform.getLogoUrl()).into(viewHolder.logo);
//     viewHolder.name.setText(platform.getName());
//     viewHolder.platformVer.setText(platform.getVerCode());
// 
//     return convertView;
//   }
// 
//   static class ViewHolder {
//     public ImageView logo;
//     public TextView name;
//     public TextView platformVer;
//   }
// }
// 
// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/data/AndroidPlatform.java
// public class AndroidPlatform {
//   private static final String FILE_PATH = "https://raw.githubusercontent.com/kimkevin/AndroidStarterKit/master/assets/";
//   private static final String EXTENSION_NAME = ".png";
// 
//   private String name;
//   private String verCode;
//   private int apiLevel;
//   private String logoUrl;
// 
//   public AndroidPlatform(String name, String verCode, int apiLevel) {
//     this.name = name;
//     this.verCode = verCode;
//     this.apiLevel = apiLevel;
//     this.logoUrl = FILE_PATH + name + EXTENSION_NAME;
//   }
// 
//   public String getName() {
//     return name.toUpperCase() + " " + apiLevel;
//   }
// 
//   public void setName(String name) {
//     this.name = name;
//   }
// 
//   public String getVerCode() {
//     return "Android " + verCode;
//   }
// 
//   public void setVerCode(String version) {
//     this.verCode = version;
//   }
// 
//   public int getApiLevel() {
//     return apiLevel;
//   }
// 
//   public void setApiLevel(int apiLevel) {
//     this.apiLevel = apiLevel;
//   }
// 
//   public String getLogoUrl() {
//     return logoUrl;
//   }
// 
//   public void setLogoUrl(String logoUrl) {
//     this.logoUrl = logoUrl;
//   }
// }


// Path: ask-remote-module/src/main/java/com/androidstarterkit/module/ui/view/ListViewFragment.java
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import com.androidstarterkit.module.R;
import com.androidstarterkit.module.ui.adapter.ListViewAdapter;
import com.androidstarterkit.module.data.AndroidPlatform;
import java.util.ArrayList;
import java.util.List;

package com.androidstarterkit.module.ui.view;





public class ListViewFragment extends Fragment {
  private static List<AndroidPlatform> platforms = new ArrayList<>();

  static {
    platforms.add(new AndroidPlatform("applepie", "1.0", 1));
    platforms.add(new AndroidPlatform("bananabread", "1.1", 2));
    platforms.add(new AndroidPlatform("cupcake", "1.5", 3));
    platforms.add(new AndroidPlatform("donut", "1.6", 4));
    platforms.add(new AndroidPlatform("eclair", "2.0", 5));
    platforms.add(new AndroidPlatform("froyo", "2.2", 8));
    platforms.add(new AndroidPlatform("gingerbread", "2.3", 9));
    platforms.add(new AndroidPlatform("honeycomb", "3.0", 11));
    platforms.add(new AndroidPlatform("icecreamsandwich", "4.0", 14));
    platforms.add(new AndroidPlatform("kitkat", "4.4", 19));
    platforms.add(new AndroidPlatform("lollipop", "5.0", 21));
    platforms.add(new AndroidPlatform("marshmallow", "6.0", 23));
    platforms.add(new AndroidPlatform("nougat", "7.0", 24));
  }

  @Nullable
  @Override
  public View onCreateView(LayoutInflater inflater, @Nullable  ViewGroup container, @Nullable  Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment_listview_main, null);

    ListView listView = (ListView) view.findViewById(R.id.list_view);

    ListViewAdapter adapter = new ListViewAdapter(getActivity(), platforms);