// Path: MyApplication/app/src/main/java/com/example/mikhail_sianko/myapplication/model/gson/TwitterSearchStatuses.java
// public class TwitterSearchStatuses {
// 
//     @SerializedName("created_at")
//     private Date createdAt;
// 
//     @SerializedName("text")
//     private String text;
// 
//     @SerializedName("user")
//     private TwitterUser twitterUser;
// 
//     public boolean changeMe;
// 
//     public Date getCreatedAt() {
//         return createdAt;
//     }
// 
//     public String getText() {
//         return text;
//     }
// 
//     public TwitterUser getTwitterUser() {
//         return twitterUser;
//     }
// 
//     public static TwitterSearchStatuses dummy(String user, String text) {
//         TwitterSearchStatuses statuses = new TwitterSearchStatuses();
//         statuses.text = text;
//         statuses.twitterUser = new TwitterUser();
//         statuses.twitterUser.setName(user);
//         return statuses;
//     }
// 
//     public static List<TwitterSearchStatuses> listDummy() {
//         List<TwitterSearchStatuses> results = new ArrayList<>();
//         for (int i = 0; i < 1000; i++) {
//             results.add(TwitterSearchStatuses.dummy("Text " + i, "User " + i));
//         }
//         return results;
//     }
// }


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.example.mikhail_sianko.myapplication.R;
import com.example.mikhail_sianko.myapplication.model.gson.TwitterSearchStatuses;
import java.util.List;
package com.example.mikhail_sianko.myapplication.adapter;





public class ListViewAdapter extends ArrayAdapter<TwitterSearchStatuses> {


    public ListViewAdapter(Context context, int resource) {
        super(context, resource);
    }

    public ListViewAdapter(Context context, int resource, List<TwitterSearchStatuses> objects) {
        super(context, resource, objects);
    }

    @NonNull
    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        View view;
        if (convertView == null) {
            view = LayoutInflater.from(getContext()).inflate(R.layout.list_item, parent, false);
        } else {
            view = convertView;
        }
// Path: MyApplication/app/src/main/java/com/example/mikhail_sianko/myapplication/model/gson/TwitterSearchStatuses.java
// public class TwitterSearchStatuses {
// 
//     @SerializedName("created_at")
//     private Date createdAt;
// 
//     @SerializedName("text")
//     private String text;
// 
//     @SerializedName("user")
//     private TwitterUser twitterUser;
// 
//     public boolean changeMe;
// 
//     public Date getCreatedAt() {
//         return createdAt;
//     }
// 
//     public String getText() {
//         return text;
//     }
// 
//     public TwitterUser getTwitterUser() {
//         return twitterUser;
//     }
// 
//     public static TwitterSearchStatuses dummy(String user, String text) {
//         TwitterSearchStatuses statuses = new TwitterSearchStatuses();
//         statuses.text = text;
//         statuses.twitterUser = new TwitterUser();
//         statuses.twitterUser.setName(user);
//         return statuses;
//     }
// 
//     public static List<TwitterSearchStatuses> listDummy() {
//         List<TwitterSearchStatuses> results = new ArrayList<>();
//         for (int i = 0; i < 1000; i++) {
//             results.add(TwitterSearchStatuses.dummy("Text " + i, "User " + i));
//         }
//         return results;
//     }
// }


// Path: MyApplication/app/src/main/java/com/example/mikhail_sianko/myapplication/adapter/ListViewAdapter.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.example.mikhail_sianko.myapplication.R;
import com.example.mikhail_sianko.myapplication.model.gson.TwitterSearchStatuses;
import java.util.List;

package com.example.mikhail_sianko.myapplication.adapter;





public class ListViewAdapter extends ArrayAdapter<TwitterSearchStatuses> {


    public ListViewAdapter(Context context, int resource) {
        super(context, resource);
    }

    public ListViewAdapter(Context context, int resource, List<TwitterSearchStatuses> objects) {
        super(context, resource, objects);
    }

    @NonNull
    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        View view;
        if (convertView == null) {
            view = LayoutInflater.from(getContext()).inflate(R.layout.list_item, parent, false);
        } else {
            view = convertView;
        }
        bindView(position, view);