// Path: app/src/main/java/com/cxsj/runhdu/bean/HelpItem.java
// public class HelpItem {
//     private String title;
//     private String info;
// 
//     public HelpItem(String title, String info){
//         this.title = title;
//         this.info = info;
//     }
//     public String getTitle(){
//         return title;
//     }
// 
//     public String getInfo() {
//         return info;
//     }
// }


import android.content.Context;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.cxsj.runhdu.bean.HelpItem;
import com.cxsj.runhdu.R;
import java.util.List;
package com.cxsj.runhdu.adapters;




/**
 * Created by chjyp on 2017/5/5.
 * 帮助列表的Adapter
 */


public class HelpAdapter extends ArrayAdapter<HelpItem> {
    private int resourceId;
    public HelpAdapter(Context context, int textViewResourceId, List<HelpItem> objects){
        super(context,textViewResourceId,objects);
        resourceId = textViewResourceId;
    }

    @NonNull
    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
// Path: app/src/main/java/com/cxsj/runhdu/bean/HelpItem.java
// public class HelpItem {
//     private String title;
//     private String info;
// 
//     public HelpItem(String title, String info){
//         this.title = title;
//         this.info = info;
//     }
//     public String getTitle(){
//         return title;
//     }
// 
//     public String getInfo() {
//         return info;
//     }
// }


// Path: app/src/main/java/com/cxsj/runhdu/adapters/HelpAdapter.java
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.cxsj.runhdu.bean.HelpItem;
import com.cxsj.runhdu.R;
import java.util.List;

package com.cxsj.runhdu.adapters;




/**
 * Created by chjyp on 2017/5/5.
 * 帮助列表的Adapter
 */


public class HelpAdapter extends ArrayAdapter<HelpItem> {
    private int resourceId;
    public HelpAdapter(Context context, int textViewResourceId, List<HelpItem> objects){
        super(context,textViewResourceId,objects);
        resourceId = textViewResourceId;
    }

    @NonNull
    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        HelpItem help_item = getItem(position);