列表展示:RecyclerView多条目

列表展示:RecyclerView多条目_第1张图片

布局========================================================================

activit_main===============

xml version="1.0" encoding="utf-8"?>
xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.example.code5.View.activity.MainActivity">

            android:id="@+id/recyclerView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />


item_layout================================

xml version="1.0" encoding="utf-8"?>
xmlns:android="http://schemas.android.com/apk/res/android"

    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">
    
            android:id="@+id/shang"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

                    android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:orientation="vertical">

                            android:singleLine="true"
                android:textSize="20sp"
                android:id="@+id/title"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="标题" />

                            android:singleLine="true"
                android:textSize="20sp"
                android:id="@+id/title1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="副标题" />

                            android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:orientation="horizontal">

                                    android:layout_width="0dp"
                    android:layout_height="0.1dp"
                    android:layout_weight="1" />

                                    android:id="@+id/pinglun"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="right"
                    android:text="评论" />

                                    android:id="@+id/zan"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="right"
                    android:text="赞" />
            
        

                    android:id="@+id/pic"
            android:layout_width="60dp"
            android:layout_height="60dp"
            android:src="@mipmap/ic_launcher" />
    

    
            android:id="@+id/xia"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

                    android:singleLine="true"
            android:textSize="20sp"
            android:id="@+id/xia_title"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="标题" />

                    android:singleLine="true"
            android:textSize="20sp"
            android:id="@+id/xia_title2"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="副标题" />

                    android:layout_width="match_parent"
            android:layout_height="60dp"
            android:orientation="horizontal">

                            android:id="@+id/xia_pic1"
                android:layout_width="60dp"
                android:layout_height="60dp"
                android:layout_weight="1"
                android:src="@mipmap/ic_launcher" />

                            android:id="@+id/xia_pic2"
                android:layout_width="60dp"
                android:layout_height="60dp"
                android:layout_weight="1"
                android:src="@mipmap/ic_launcher" />

                            android:id="@+id/xia_pic3"
                android:layout_width="60dp"
                android:layout_height="60dp"
                android:layout_weight="1"
                android:src="@mipmap/ic_launcher" />

        

                    android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:orientation="horizontal">

                            android:layout_width="0dp"
                android:layout_height="0.1dp"
                android:layout_weight="1" />

                            android:id="@+id/xian_pinglun"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="right"
                android:text="评论" />

                            android:id="@+id/xia_zan"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="right"
                android:text="赞" />
        
    

MainActivtiy=================

package com.example.code5.View.activity;

import android.content.DialogInterface;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;

import com.example.code5.R;
import com.example.code5.View.adapter.MyAdapter;
import com.example.code5.View.view.IMainView;
import com.example.code5.modle.bean.NewsBean;
import com.example.code5.modle.modle.ModelImpl;
import com.example.code5.presenter.PresenterImpl;

import java.util.List;

public class MainActivity extends AppCompatActivity implements IMainView {

    private static final String TAG = "MainActivity----";
    private RecyclerView recyclerView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initViews();
        initDatas();

    }

    private void initViews() {
        recyclerView = findViewById(R.id.recyclerView);
        recyclerView.setLayoutManager(new LinearLayoutManager(this));
    }

    private void initDatas() {
        PresenterImpl presenter = new PresenterImpl();
        presenter.showNewsToView(new ModelImpl(), this);
    }

    @Override
    public void showNews(final List list) {
        Log.d(TAG, "showNews: " + list);

        final MyAdapter myAdapter = new MyAdapter(MainActivity.this, list);

        recyclerView.setAdapter(myAdapter);

        myAdapter.setOnLongItemClick(new MyAdapter.MyLongItemClick() {
            @Override
            public void onItemLongClick(View view, final int postion) {
                AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);
                builder.setTitle("删除");
                builder.setMessage("确定删除吗?");
                builder.setNegativeButton("取消", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {

                    }
                });
                builder.setPositiveButton("确定", new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {
                        list.remove(postion);
                        myAdapter.notifyDataSetChanged();
                        dialog.dismiss();
                    }
                });

                AlertDialog alertDialog = builder.create();
                alertDialog.show();

            }
        });
    }
}

IMainView===================================

package com.example.code5.View.view;


import com.example.code5.modle.bean.NewsBean;

import java.util.List;

/**
 * Created by gjl on 2018/4/27.
 */

public interface IMainView {
    void showNews(List list);
}

MyAdapter==========================

package com.example.code5.View.adapter;

import android.animation.ObjectAnimator;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.example.code5.R;
import com.example.code5.modle.bean.NewsBean;
import com.example.code5.modle.http.HttpConfig;

import java.util.List;

public class MyAdapter extends RecyclerView.Adapter {
    private static final String TAG = "MyAdapter----";
    private final int NEWS1 = 1;
    private final int NEWS2 = 2;
    private final Context context;
    private final List list;
    private MyLongItemClick myLongItemClick;

    public MyAdapter(Context context, List list) {
        this.context = context;
        this.list = list;
    }

    @Override
    public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(context).inflate(R.layout.item_layout, parent, false);
        MyViewHolder myViewHolder = new MyViewHolder(view);
        return myViewHolder;
    }

    @Override
    public void onBindViewHolder(final MyViewHolder holder, final int position) {

        holder.itemView.setOnLongClickListener(new View.OnLongClickListener() {
            @Override
            public boolean onLongClick(View v) {
                myLongItemClick.onItemLongClick(v,position);
                return true;
            }
        });

        //开始使用
        int type = getItemViewType(position);
        //根据类型判断
        switch (type) {
            case NEWS1:
                //移仓上面,显示下面
                LinearLayout shang = holder.getShang();
                LinearLayout xia = holder.getXia();
                xia.setVisibility(View.VISIBLE);
                shang.setVisibility(View.GONE);
                //给下面赋值
                holder.getXia_title().setText(list.get(position).getTitle());
                holder.getXia_title1().setText(list.get(position).getTitle());

                List pics = list.get(position).getPics();

                Glide.with(context).load(HttpConfig.pic_url+pics.get(0)).into(holder.getXia_pic1());
                Glide.with(context).load(HttpConfig.pic_url+pics.get(1)).into(holder.getXia_pic2());
                Glide.with(context).load(HttpConfig.pic_url+pics.get(2)).into(holder.getXia_pic3());

                holder.getXia_pic1().setOnClickListener(new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        Log.d(TAG, "点击----");
                        ObjectAnimator alpha = ObjectAnimator.ofFloat(holder.getXia_pic1(), "alpha", 1, 0, 1);
                        alpha.setDuration(2000);
                        alpha.start();
                    }
                });

                holder.getXia_pic2().setOnClickListener(new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        Log.d(TAG, "点击----");
                        ObjectAnimator alpha = ObjectAnimator.ofFloat(holder.getXia_pic2(), "alpha", 1, 0, 1);
                        alpha.setDuration(2000);
                        alpha.start();
                    }
                });

                holder.getXia_pic3().setOnClickListener(new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        Log.d(TAG, "点击----");
                        ObjectAnimator alpha = ObjectAnimator.ofFloat(holder.getXia_pic3(), "alpha", 1, 0, 1);
                        alpha.setDuration(2000);
                        alpha.start();
                    }
                });

                holder.getXia_pinglun().setText(list.get(position).getComment_amount()+"评论");
                holder.getXia_zan().setText(list.get(position).getViews()+"赞");

                break;
            case NEWS2:
                //显示上面,隐藏下面
                LinearLayout shang1 = holder.getShang();
                LinearLayout xia2 = holder.getXia();
                xia2.setVisibility(View.GONE);
                shang1.setVisibility(View.VISIBLE);
                Log.d(TAG, "onBindViewHolder: "+holder.getTitle()+"--"+list);
                Log.d(TAG, "onBindViewHolder: "+holder.getTitle()+"--"+list+"--"+list.get(position));
                Log.d(TAG, "onBindViewHolder: "+holder.getTitle()+"--"+list+"--"+list.get(position)+"--"+list.get(position).getTitle());
                //赋值
                holder.getTitle().setText(list.get(position).getTitle());
                holder.getTitle1().setText(list.get(position).getTitle());

                List pics1 = list.get(position).getPics();
                Log.d(TAG, "图片---: "+holder.getPic());
                Glide.with(context).load(HttpConfig.pic_url+pics1.get(0)).into(holder.getPic());

                holder.getPinglun().setText(list.get(position).getComment_amount()+"评论");
                holder.getZan().setText(list.get(position).getViews()+"赞");

                holder.getPic().setOnClickListener(new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        Log.d(TAG, "点击----");
                        ObjectAnimator alpha = ObjectAnimator.ofFloat(holder.getPic(), "alpha", 1, 0, 1);
                        alpha.setDuration(2000);
                        alpha.start();
                    }
                });

                break;
        }
    }

    @Override
    public int getItemCount() {
        return list.size();
    }

    @Override
    public int getItemViewType(int position) {
        NewsBean.DataBeanX.DataBean dataBean = list.get(position);
        int pic_amount = dataBean.getPic_amount();
        if (pic_amount>=3){
            return NEWS1;
        }else {
            return NEWS2;
        }
    }

    class MyViewHolder extends RecyclerView.ViewHolder {
        private TextView title, title1, xia_title, xia_title1, zan, xia_zan, pinglun, xia_pinglun;
        private ImageView pic, xia_pic1, xia_pic2, xia_pic3;
        private LinearLayout shang,xia;
        public MyViewHolder(View itemView) {
            super(itemView);
            pic=itemView.findViewById(R.id.pic);
            xia_pic1=itemView.findViewById(R.id.xia_pic1);
            xia_pic2=itemView.findViewById(R.id.xia_pic2);
            xia_pic3=itemView.findViewById(R.id.xia_pic3);
            title = itemView.findViewById(R.id.title);
            title1 = itemView.findViewById(R.id.title1);
            xia_title = itemView.findViewById(R.id.xia_title);
            xia_title1 = itemView.findViewById(R.id.xia_title2);
            zan = itemView.findViewById(R.id.zan);
            xia_zan = itemView.findViewById(R.id.xia_zan);
            pinglun = itemView.findViewById(R.id.pinglun);
            xia_pinglun = itemView.findViewById(R.id.xian_pinglun);
            //上下的布局
            shang=itemView.findViewById(R.id.shang);
            xia=itemView.findViewById(R.id.xia);
        }


        public MyViewHolder(View itemView, TextView title, TextView title1, TextView xia_title, TextView xia_title1, TextView zan, TextView xia_zan, TextView pinglun, TextView xia_pinglun, ImageView pic, ImageView xia_pic1, ImageView xia_pic2, ImageView xia_pic3, LinearLayout shang, LinearLayout xia) {
            super(itemView);
            this.title = title;
            this.title1 = title1;
            this.xia_title = xia_title;
            this.xia_title1 = xia_title1;
            this.zan = zan;
            this.xia_zan = xia_zan;
            this.pinglun = pinglun;
            this.xia_pinglun = xia_pinglun;
            this.pic = pic;
            this.xia_pic1 = xia_pic1;
            this.xia_pic2 = xia_pic2;
            this.xia_pic3 = xia_pic3;
            this.shang = shang;
            this.xia = xia;
        }

        public TextView getTitle() {
            return title;
        }

        public LinearLayout getShang() {
            return shang;
        }

        public void setShang(LinearLayout shang) {
            this.shang = shang;
        }

        public LinearLayout getXia() {
            return xia;
        }

        public void setXia(LinearLayout xia) {
            this.xia = xia;
        }

        public void setTitle(TextView title) {
            this.title = title;
        }

        public TextView getTitle1() {
            return title1;
        }

        public void setTitle1(TextView title1) {
            this.title1 = title1;
        }

        public TextView getXia_title() {
            return xia_title;
        }

        public void setXia_title(TextView xia_title) {
            this.xia_title = xia_title;
        }

        public TextView getXia_title1() {
            return xia_title1;
        }

        public void setXia_title1(TextView xia_title1) {
            this.xia_title1 = xia_title1;
        }

        public TextView getZan() {
            return zan;
        }

        public void setZan(TextView zan) {
            this.zan = zan;
        }

        public TextView getXia_zan() {
            return xia_zan;
        }

        public void setXia_zan(TextView xia_zan) {
            this.xia_zan = xia_zan;
        }

        public TextView getPinglun() {
            return pinglun;
        }

        public void setPinglun(TextView pinglun) {
            this.pinglun = pinglun;
        }

        public TextView getXia_pinglun() {
            return xia_pinglun;
        }

        public void setXia_pinglun(TextView xia_pinglun) {
            this.xia_pinglun = xia_pinglun;
        }

        public ImageView getPic() {
            return pic;
        }

        public void setPic(ImageView pic) {
            this.pic = pic;
        }

        public ImageView getXia_pic1() {
            return xia_pic1;
        }

        public void setXia_pic1(ImageView xia_pic1) {
            this.xia_pic1 = xia_pic1;
        }

        public ImageView getXia_pic2() {
            return xia_pic2;
        }

        public void setXia_pic2(ImageView xia_pic2) {
            this.xia_pic2 = xia_pic2;
        }

        public ImageView getXia_pic3() {
            return xia_pic3;
        }

        public void setXia_pic3(ImageView xia_pic3) {
            this.xia_pic3 = xia_pic3;
        }
    }

    public interface MyLongItemClick{
        void onItemLongClick(View view,int postion);
    }
    public void setOnLongItemClick(MyLongItemClick myLongItemClick){
        this.myLongItemClick = myLongItemClick;
    }

}

PresenterImpl=========

package com.example.code5.presenter;

import android.util.Log;

import com.example.code5.View.view.IMainView;
import com.example.code5.modle.GetNewsListener;
import com.example.code5.modle.bean.NewsBean;
import com.example.code5.modle.http.HttpConfig;
import com.example.code5.modle.modle.IModel;
import com.google.gson.Gson;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class PresenterImpl implements IPresenter{

    private static final String TAG = "------PresenterImpl";
    @Override
    public void showNewsToView(IModel iModel, final IMainView iMainView) {
        Map,String> map = new HashMap<>();
        String url = HttpConfig.news_url+"?page=1";
        iModel.getNewsData(url, map, new GetNewsListener() {
            @Override
            public void getSuccess(String json) {
                Log.d(TAG, "成功: "+json);
                Gson gson = new Gson();
                NewsBean newsBean = gson.fromJson(json, NewsBean.class);
                List list = newsBean.getData().getData();
                iMainView.showNews(list);
            }

            @Override
            public void getError(String error) {
                Log.d(TAG, "错误: "+error);
            }
        });
    }

}

IPresenter====================

package com.example.code5.presenter;

import com.example.code5.View.view.IMainView;
import com.example.code5.modle.modle.IModel;

public interface IPresenter {

    void showNewsToView(IModel iModel, IMainView iMainView);

}

GetNewsListener======================

package com.example.code5.modle;

public interface GetNewsListener {

    void getSuccess(String json);

    void getError(String error);

}

ModleImpl====================

package com.example.code5.modle.modle;

import com.example.code5.modle.GetNewsListener;
import com.example.code5.modle.http.HttpUtils;
import com.example.code5.modle.http.OkLoadListener;

import java.util.Map;

public class ModelImpl implements IModel {

    @Override
    public void getNewsData(String url, Map, String> map, final GetNewsListener getNewsListener) {
        HttpUtils httpUtils = HttpUtils.getHttpUtils();
        httpUtils.okGet(url);
        httpUtils.setOkLoadListener(new OkLoadListener() {
            @Override
            public void okLoadSuccess(String json) {
                getNewsListener.getSuccess(json);
            }

            @Override
            public void okLoadError(String error) {
                getNewsListener.getError(error);
            }
        });
    }

}

IModle===============

package com.example.code5.modle.modle;

import com.example.code5.modle.GetNewsListener;

import java.util.Map;

public interface IModel {

    void getNewsData(String url, Map, String> map, GetNewsListener getNewsListener);

}

OkLoadListener======================

package com.example.code5.modle.http;

public interface OkLoadListener {

    void okLoadSuccess(String json);

    void okLoadError(String error);

}

httpUtil==================

package com.example.code5.modle.http;

import android.os.Handler;
import android.os.Message;
import android.util.Log;

import java.io.File;
import java.io.IOException;
import java.util.Map;
import java.util.Set;

import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.FormBody;
import okhttp3.Interceptor;
import okhttp3.MediaType;
import okhttp3.MultipartBody;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.RequestBody;
import okhttp3.Response;

public class HttpUtils {

    private static final String TAG = "HttpUtils-----";
    private static HttpUtils httpUtils;
    private final int SUCCESS = 0;
    private final int ERROR = 1;
    private MyHandler myHandler = new MyHandler();
    private OkLoadListener okLoadListener;

    public static HttpUtils getHttpUtils() {
        if (httpUtils == null) {
            httpUtils = new HttpUtils();
        }
        return httpUtils;
    }

    class MyHandler extends Handler {
        @Override
        public void handleMessage(Message msg) {
            switch (msg.what) {
                case SUCCESS:
                    //成功
                    String json = (String) msg.obj;
                    okLoadListener.okLoadSuccess(json);
                    break;

                case ERROR:
                    //失败
                    String error = (String) msg.obj;
                    okLoadListener.okLoadError(error);
                    break;
            }
        }
    }

    public void okGet(String url) {
        OkHttpClient okHttpClient = new OkHttpClient.Builder().build();

        Request request = new Request.Builder().url(url).build();
        Call call = okHttpClient.newCall(request);

        call.enqueue(new Callback() {
            @Override
            public void onFailure(Call call, IOException e) {
                Message message = myHandler.obtainMessage();
                message.what = ERROR;
                message.obj = e.getMessage();
                myHandler.sendMessage(message);
            }

            @Override
            public void onResponse(Call call, Response response) throws IOException {
                Message message = myHandler.obtainMessage();
                message.what = SUCCESS;
                message.obj = response.body().string();
                myHandler.sendMessage(message);
            }
        });
    }

    public void setOkLoadListener(OkLoadListener okLoadListener) {
        this.okLoadListener = okLoadListener;
    }

    public void okPost(String url, Map, String> params) {
        OkHttpClient okHttpClient = new OkHttpClient.Builder().build();

        FormBody.Builder builder = new FormBody.Builder();
        Set keySet = params.keySet();
        for (String key :
                keySet) {
            String value = params.get(key);
            builder.add(key, value);
        }
        FormBody formBody = builder.build();
        Request request = new Request.Builder().url(url).post(formBody).build();
        Call call = okHttpClient.newCall(request);

        call.enqueue(new Callback() {
            @Override
            public void onFailure(Call call, IOException e) {
                Message message = myHandler.obtainMessage();
                message.what = ERROR;
                message.obj = e.getMessage();
                myHandler.sendMessage(message);
            }

            @Override
            public void onResponse(Call call, Response response) throws IOException {
                Message message = myHandler.obtainMessage();
                message.what = SUCCESS;
                message.obj = response.body().string();
                myHandler.sendMessage(message);
            }
        });

    }
    class MyIntercepter implements Interceptor {

        @Override
        public Response intercept(Chain chain) throws IOException {

            Request request = chain.request();
            String method = request.method();
            if (method.equals("GET")) {

                String url = request.url().toString();

                boolean contains = url.contains("?");
                if (contains) {
                    url = url + "&source=android";
                } else {
                    url = url + "?source=android";
                }

                Request request1 = request.newBuilder().url(url).build();

                Response response = chain.proceed(request1);

                return response;


            } else if (method.equals("POST")) {
                RequestBody body = request.body();
                if (body instanceof FormBody) {

                    FormBody.Builder newBuilder = new FormBody.Builder();
                    for (int i = 0; i < ((FormBody) body).size(); i++) {
                        String key = ((FormBody) body).name(i);
                        String value = ((FormBody) body).value(i);
                        newBuilder.add(key, value);
                    }

                    newBuilder.add("source", "android");
                    FormBody newBody = newBuilder.build();

                    Request request1 = request.newBuilder().post(newBody).build();

                    Response response = chain.proceed(request1);
                    return response;
                }
            }
            return null;
        }
    }
    public void upLoadImage(String url, String path) {
        MediaType mediaType = MediaType.parse("image/*");
        MultipartBody.Builder builder = new MultipartBody.Builder().setType(MultipartBody.FORM);
        File file = new File(path);
        MultipartBody multipartBody = builder.addFormDataPart("file", file.getName(), RequestBody.create(mediaType, file)).build();

        OkHttpClient okHttpClient = new OkHttpClient();
        Request request = new Request.Builder().url(url).post(multipartBody).build();
        Call call = okHttpClient.newCall(request);
        call.enqueue(new Callback() {
            @Override
            public void onFailure(Call call, IOException e) {
                Log.d(TAG, "上传失败0----: ");
            }

            @Override
            public void onResponse(Call call, Response response) throws IOException {
                Log.d(TAG, "上传成功: ");
            }
        });

    }

}

HttpConfig====================

package com.example.code5.modle.http;

public class HttpConfig {

    public static String pic_url = "http://365jia.cn/uploads/";
    public static String news_url = "http://365jia.cn/news/api3/365jia/news/headline";

}

NewsBean===================

package com.example.code5.modle.bean;

import java.util.List;

/**
 * 项目描述:
 * 作者:WangHao
 * 时期:
 */

public class NewsBean {

    /**
     * httpStatusCode : 200
     * code : 0
     * data : {"page":1,"perpage":20,"max_page":35,"total":688,"data":[{"id":3526171,"title":"合肥再推人才新政豪掷超百亿元\u201c养人\u201d 无房大学生享有租房补贴","link":"lsapp://cn.ahurls.news/news?id=3526171","pics":["appletrecommend/201804/5ae258fa85fd7.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":4,"source":"","type_sign":"","inner_news":1,"views":1022,"comment_amount_label":"4","views_label":"1022"},{"id":3526179,"title":"合肥市区到机场多一条便捷通道 望江西路延伸段有望6月放行通车","link":"lsapp://cn.ahurls.news/news?id=3526179","pics":["appletrecommend/201804/5ae2602324c7c.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":2,"source":"","type_sign":"","inner_news":1,"views":447,"comment_amount_label":"2","views_label":"447"},{"id":3526206,"title":"合肥人的\u201c五一\u201d假期可能要\u201c泡汤\u201d 一放假就下雨天气的小船说翻就翻","link":"lsapp://cn.ahurls.news/news?id=3526206","pics":["appletrecommend/201804/5ae26c8da4dd9.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":0,"source":"","type_sign":"","inner_news":1,"views":176,"comment_amount_label":"0","views_label":"176"},{"id":3526058,"title":"合肥市民用\u201c七个钱包\u201d付首付 困住三代人的房子值得买吗?","link":"lsapp://cn.ahurls.news/news?id=3526058","pics":["appletrecommend/201804/5ae25b0ae8518.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":2,"source":"","type_sign":"","inner_news":1,"views":444,"comment_amount_label":"2","views_label":"444"},{"id":3526106,"title":"映像第65期:蓬莱仙洞9米\u201c金钟\u201d震撼游人 五一出游开启\u201c躲雨\u201d计划","link":"lsapp://cn.ahurls.news/image_news?id=3526106","pics":["special/tuku/201804/5ae1c280ceae926314.jpg","special/tuku/201804/5ae1baad59f1d65946.jpg","special/tuku/201804/5ae1baadab00a12875.jpg"],"t":"url","type":"images","alias":"headline","pic_amount":3,"style":"multi","comment_amount":1,"source":"","type_sign":"","inner_news":1,"views":418,"comment_amount_label":"1","views_label":"418","pics_new":["special/tuku/201804/5ae1c280ceae926314.jpg"]},{"id":3526134,"title":"调查:合肥共享单车禁停区域仍有车辆乱停 公交站点被围堵,你怎么看?","link":"lsapp://cn.ahurls.news/news?id=3526134","pics":["appletrecommend/201804/5adbc9336ad61.jpg"],"t":"url","type":"vote","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":2,"source":"","type_sign":"投票","inner_news":1,"views":282,"comment_amount_label":"2","views_label":"282","pics_new":["appletrecommend/201804/5adbc9336ad61.jpg"]},{"id":3526173,"title":"合肥地铁3号线高架段4站点封顶最快6月初铺轨 空中站点洗手间设置有区别","link":"lsapp://cn.ahurls.news/news?id=3526173","pics":["appletrecommend/201804/5ae25c5513d6b.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":1,"source":"","type_sign":"","inner_news":1,"views":360,"comment_amount_label":"1","views_label":"360"},{"id":3526072,"title":"合肥葛洲坝玖珑府小区设备平台未封闭引业主投诉 拖延近一个月未解决","link":"lsapp://cn.ahurls.news/news?id=3526072","pics":["appletrecommend/201804/5ae25b5e84a85.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":1,"source":"","type_sign":"","inner_news":1,"views":520,"comment_amount_label":"1","views_label":"520"},{"id":3526140,"title":"安徽下发紧急通知:加强\u201c五一\u201d和汛期安全生产工作","link":"lsapp://cn.ahurls.news/news?id=3526140","pics":["appletrecommend/201804/5ae2594261e5d.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":2,"source":"","type_sign":"","inner_news":1,"views":1149,"comment_amount_label":"2","views_label":"1149"},{"id":3522438,"title":"【专题】\u201c五一\u201d合肥庐阳8大景点游玩攻略 假期教你如何玩转家门口","link":"lsapp://cn.ahurls.news/special?id=3522438","pics":["18/0419/5ad85e298287a.jpg"],"t":"url","type":"special","alias":"headline","pic_amount":0,"style":"single_fill","comment_amount":2,"source":"","type_sign":"专题","inner_news":1,"views":4062,"comment_amount_label":"2","views_label":"4062","pics_new":["18/0419/5ad85e298287a.jpg"]},{"id":3526145,"title":"恶心!女子吃冰棍吃出一截老鼠尾巴索赔10万 厂家这样说","link":"lsapp://cn.ahurls.news/news?id=3526145","pics":["appletrecommend/201804/5ae25a16d74f0.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":1,"source":"","type_sign":"","inner_news":1,"views":1251,"comment_amount_label":"1","views_label":"1251"},{"id":3526146,"title":"微商将20元\u201c三无\u201d化妆品卖到280元 购置二手宾利豪车充门面","link":"lsapp://cn.ahurls.news/news?id=3526146","pics":["appletrecommend/201804/5ae25a7dd5587.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":1,"source":"","type_sign":"","inner_news":1,"views":1248,"comment_amount_label":"1","views_label":"1248"},{"id":3526175,"title":"合肥一淘宝店售卖低价\u201c施华洛世奇\u201d遭查处 十万元饰品仅售万元","link":"lsapp://cn.ahurls.news/news?id=3526175","pics":["appletrecommend/201804/5ae261e27aa52.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":0,"source":"","type_sign":"","inner_news":1,"views":313,"comment_amount_label":"0","views_label":"313"},{"id":3526187,"title":"女子嫁人11年还生2个娃 给孩子上户口时才发现嫁错人","link":"lsapp://cn.ahurls.news/image_news?id=3526187","pics":["special/tuku/201804/5ae2615c17a0070271.jpg","special/tuku/201804/5ae2615c039ad44690.jpg","special/tuku/201804/5ae2615bda73d65837.jpg"],"t":"url","type":"images","alias":"headline","pic_amount":3,"style":"multi","comment_amount":1,"source":"","type_sign":"","inner_news":1,"views":1801,"comment_amount_label":"1","views_label":"1801","pics_new":["special/tuku/201804/5ae2615c17a0070271.jpg"]},{"id":3526188,"title":"合肥周谷堆物流园部分商户疯狂偷倒垃圾 每日产生约8吨垃圾","link":"lsapp://cn.ahurls.news/news?id=3526188","pics":["appletrecommend/201804/5ae263fa1eae8.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":0,"source":"","type_sign":"","inner_news":1,"views":215,"comment_amount_label":"0","views_label":"215"},{"id":3526178,"title":"5月1日起这些新规实施:进口抗癌药实施零关税 特定严重失信人限乘火车","link":"lsapp://cn.ahurls.news/news?id=3526178","pics":["appletrecommend/201804/5ae2642743184.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":1,"source":"","type_sign":"","inner_news":1,"views":280,"comment_amount_label":"1","views_label":"280"},{"id":3526181,"title":"富士康员工翻新美版苹果手机9000余部 被罚441万元","link":"lsapp://cn.ahurls.news/news?id=3526181","pics":["appletrecommend/201804/5ae26454b5244.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":1,"source":"","type_sign":"","inner_news":1,"views":282,"comment_amount_label":"1","views_label":"282"},{"id":3526189,"title":"女子被夹屏蔽门与车厢间,地铁疾驶而过 独家对话目击者","link":"lsapp://cn.ahurls.news/image_news?id=3526189","pics":["special/tuku/201804/5ae262914449844649.jpg","special/tuku/201804/5ae2629179c3f46626.jpg","special/tuku/201804/5ae26291ae40997770.jpg"],"t":"url","type":"images","alias":"headline","pic_amount":3,"style":"multi","comment_amount":0,"source":"","type_sign":"","inner_news":1,"views":2000,"comment_amount_label":"0","views_label":"2000","pics_new":["special/tuku/201804/5ae262914449844649.jpg"]},{"id":3526079,"title":"4月29日上午10点将迎五一出行高峰 合肥交警公布高速易堵点","link":"lsapp://cn.ahurls.news/news?id=3526079","pics":["appletrecommend/201804/5ae1cb5cf22db.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":3,"source":"","type_sign":"","inner_news":1,"views":2319,"comment_amount_label":"3","views_label":"2319"},{"id":3526048,"title":"@所有人 合肥地铁有这16类行为活动的最高罚3万元","link":"lsapp://cn.ahurls.news/news?id=3526048","pics":["appletrecommend/201804/5ae1986722583.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":4,"source":"","type_sign":"","inner_news":1,"views":3200,"comment_amount_label":"4","views_label":"3200"},{"id":3526008,"title":"合肥胜利路有女孩因彩礼跳楼?速来看真相!","link":"lsapp://cn.ahurls.news/news?id=3526008","pics":["appletrecommend/201804/5ae1833db5cd7.png"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":3,"source":"","type_sign":"","inner_news":1,"views":3936,"comment_amount_label":"3","views_label":"3936"},{"id":3525994,"title":"【专题】美司法部调查华为 华为回应被调查称遵守所有适用法律","link":"lsapp://cn.ahurls.news/special?id=3525994","pics":["18/0426/5ae17a98e94ca.jpg"],"t":"url","type":"special","alias":"headline","pic_amount":0,"style":"single_fill","comment_amount":3,"source":"","type_sign":"专题","inner_news":1,"views":2166,"comment_amount_label":"3","views_label":"2166","pics_new":["18/0426/5ae17a98e94ca.jpg"]},{"id":3526075,"title":"4月26日24时安徽油价上调 50升油箱加满92号油多花10元","link":"lsapp://cn.ahurls.news/news?id=3526075","pics":["appletrecommend/201804/5ae19e8b99d23.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":3,"source":"","type_sign":"","inner_news":1,"views":4044,"comment_amount_label":"3","views_label":"4044"},{"id":3525407,"title":"\u201c住改商\u201d多年顽疾难处理 合肥多部门联合整治餐饮业或成突破口","link":"lsapp://cn.ahurls.news/news?id=3525407","pics":["appletrecommend/201804/5ae12ca5b8397.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":4,"source":"","type_sign":"","inner_news":1,"views":4509,"comment_amount_label":"4","views_label":"4509"},{"id":3525981,"title":"女子吃冰棍\u201c大赤豆\u201d吃到死老鼠 要超市老板吃掉不要赔偿","link":"lsapp://cn.ahurls.news/news?id=3525981","pics":["appletrecommend/201804/5ae1846d39c2f.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":7,"source":"","type_sign":"","inner_news":1,"views":3176,"comment_amount_label":"7","views_label":"3176"},{"id":3525287,"title":"【小万探园】合肥一幼儿园现迷你\u201c空中操场\u201d \u201c后花园\u201d是天鹅湖沙滩的6倍","link":"lsapp://cn.ahurls.news/image_news?id=3525287","pics":["special/tuku/201804/5ae01b28ae13980792.jpg","special/tuku/201804/5ae01b2850d4910630.jpg","special/tuku/201804/5ae01b2869b8929497.jpg"],"t":"url","type":"images","alias":"headline","pic_amount":3,"style":"multi","comment_amount":9,"source":"","type_sign":"","inner_news":1,"views":8139,"comment_amount_label":"9","views_label":"8139","pics_new":["special/tuku/201804/5ae01b28ae13980792.jpg"]},{"id":3525542,"title":"合肥共享单车禁停区域仍有车辆乱停 公交站点被围堵 ","link":"lsapp://cn.ahurls.news/news?id=3525542","pics":["appletrecommend/201804/5ae1086474d8c.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":5,"source":"","type_sign":"","inner_news":1,"views":4036,"comment_amount_label":"5","views_label":"4036"},{"id":3525977,"title":"合肥逍遥津公园发现一具女性尸体 位于公园隐蔽角落水沟里","link":"lsapp://cn.ahurls.news/news?id=3525977","pics":["appletrecommend/201804/5ae1795b8df9f.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":3,"source":"","type_sign":"","inner_news":1,"views":4948,"comment_amount_label":"3","views_label":"4948"},{"id":3526093,"title":"合肥黄山路一轿车侧翻母女俩被困 城管队员路过紧急救援","link":"lsapp://cn.ahurls.news/news?id=3526093","pics":["appletrecommend/201804/5ae1c91374de6.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":3,"source":"","type_sign":"","inner_news":1,"views":3051,"comment_amount_label":"3","views_label":"3051"},{"id":3525312,"title":"实探合肥政务区空置地块 位居区域核心最大面积近500亩闲置多年无人问","link":"lsapp://cn.ahurls.news/image_news?id=3525312","pics":["special/tuku/201804/5ae0201ab9aa619285.jpg","special/tuku/201804/5ae0201b6a10d17178.jpg","special/tuku/201804/5ae0201b7b66043231.jpg"],"t":"url","type":"images","alias":"headline","pic_amount":3,"style":"multi","comment_amount":5,"source":"","type_sign":"","inner_news":1,"views":5943,"comment_amount_label":"5","views_label":"5943","pics_new":["special/tuku/201804/5ae0201ab9aa619285.jpg"]}],"extras":{"slider":[{"id":3526190,"pic":"18/0427/5ae2659fb4f14.jpg","link":"lsapp://cn.ahurls.news/news?id=3526190","t":"url","inner_news":1,"title":"合肥杏花公园将添一处城市阅读空间","type":"nomal","type_sign":""},{"id":3525591,"pic":"18/0426/5ae1c70c928e1.jpg","link":"lsapp://cn.ahurls.news/news?id=3525591","t":"url","inner_news":1,"title":"合肥1.3万名环卫工人披星戴月","type":"nomal","type_sign":""},{"id":3525594,"pic":"18/0426/5ae16840d8e60.jpg","link":"lsapp://cn.ahurls.news/news?id=3525594","t":"url","inner_news":1,"title":"合肥城东将建一条文化山水旅游公路","type":"nomal","type_sign":""},{"id":3525556,"pic":"18/0426/5ae12b60a4a0a.jpg","link":"lsapp://cn.ahurls.news/news?id=3525556","t":"url","inner_news":1,"title":"滨湖新区四条道路慢行系统建成开放","type":"nomal","type_sign":""},{"id":3525563,"pic":"18/0426/5ae11e600ba07.jpg","link":"lsapp://cn.ahurls.news/news?id=3525563","t":"url","inner_news":1,"title":"合肥第二届青年文化节月底举行","type":"nomal","type_sign":""}]},"bindtips":""}
     */

    private int httpStatusCode;
    private int code;
    private DataBeanX data;

    public int getHttpStatusCode() {
        return httpStatusCode;
    }

    public void setHttpStatusCode(int httpStatusCode) {
        this.httpStatusCode = httpStatusCode;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBeanX getData() {
        return data;
    }

    public void setData(DataBeanX data) {
        this.data = data;
    }

    public static class DataBeanX {
        /**
         * page : 1
         * perpage : 20
         * max_page : 35
         * total : 688
         * data : [{"id":3526171,"title":"合肥再推人才新政豪掷超百亿元\u201c养人\u201d 无房大学生享有租房补贴","link":"lsapp://cn.ahurls.news/news?id=3526171","pics":["appletrecommend/201804/5ae258fa85fd7.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":4,"source":"","type_sign":"","inner_news":1,"views":1022,"comment_amount_label":"4","views_label":"1022"},{"id":3526179,"title":"合肥市区到机场多一条便捷通道 望江西路延伸段有望6月放行通车","link":"lsapp://cn.ahurls.news/news?id=3526179","pics":["appletrecommend/201804/5ae2602324c7c.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":2,"source":"","type_sign":"","inner_news":1,"views":447,"comment_amount_label":"2","views_label":"447"},{"id":3526206,"title":"合肥人的\u201c五一\u201d假期可能要\u201c泡汤\u201d 一放假就下雨天气的小船说翻就翻","link":"lsapp://cn.ahurls.news/news?id=3526206","pics":["appletrecommend/201804/5ae26c8da4dd9.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":0,"source":"","type_sign":"","inner_news":1,"views":176,"comment_amount_label":"0","views_label":"176"},{"id":3526058,"title":"合肥市民用\u201c七个钱包\u201d付首付 困住三代人的房子值得买吗?","link":"lsapp://cn.ahurls.news/news?id=3526058","pics":["appletrecommend/201804/5ae25b0ae8518.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":2,"source":"","type_sign":"","inner_news":1,"views":444,"comment_amount_label":"2","views_label":"444"},{"id":3526106,"title":"映像第65期:蓬莱仙洞9米\u201c金钟\u201d震撼游人 五一出游开启\u201c躲雨\u201d计划","link":"lsapp://cn.ahurls.news/image_news?id=3526106","pics":["special/tuku/201804/5ae1c280ceae926314.jpg","special/tuku/201804/5ae1baad59f1d65946.jpg","special/tuku/201804/5ae1baadab00a12875.jpg"],"t":"url","type":"images","alias":"headline","pic_amount":3,"style":"multi","comment_amount":1,"source":"","type_sign":"","inner_news":1,"views":418,"comment_amount_label":"1","views_label":"418","pics_new":["special/tuku/201804/5ae1c280ceae926314.jpg"]},{"id":3526134,"title":"调查:合肥共享单车禁停区域仍有车辆乱停 公交站点被围堵,你怎么看?","link":"lsapp://cn.ahurls.news/news?id=3526134","pics":["appletrecommend/201804/5adbc9336ad61.jpg"],"t":"url","type":"vote","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":2,"source":"","type_sign":"投票","inner_news":1,"views":282,"comment_amount_label":"2","views_label":"282","pics_new":["appletrecommend/201804/5adbc9336ad61.jpg"]},{"id":3526173,"title":"合肥地铁3号线高架段4站点封顶最快6月初铺轨 空中站点洗手间设置有区别","link":"lsapp://cn.ahurls.news/news?id=3526173","pics":["appletrecommend/201804/5ae25c5513d6b.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":1,"source":"","type_sign":"","inner_news":1,"views":360,"comment_amount_label":"1","views_label":"360"},{"id":3526072,"title":"合肥葛洲坝玖珑府小区设备平台未封闭引业主投诉 拖延近一个月未解决","link":"lsapp://cn.ahurls.news/news?id=3526072","pics":["appletrecommend/201804/5ae25b5e84a85.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":1,"source":"","type_sign":"","inner_news":1,"views":520,"comment_amount_label":"1","views_label":"520"},{"id":3526140,"title":"安徽下发紧急通知:加强\u201c五一\u201d和汛期安全生产工作","link":"lsapp://cn.ahurls.news/news?id=3526140","pics":["appletrecommend/201804/5ae2594261e5d.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":2,"source":"","type_sign":"","inner_news":1,"views":1149,"comment_amount_label":"2","views_label":"1149"},{"id":3522438,"title":"【专题】\u201c五一\u201d合肥庐阳8大景点游玩攻略 假期教你如何玩转家门口","link":"lsapp://cn.ahurls.news/special?id=3522438","pics":["18/0419/5ad85e298287a.jpg"],"t":"url","type":"special","alias":"headline","pic_amount":0,"style":"single_fill","comment_amount":2,"source":"","type_sign":"专题","inner_news":1,"views":4062,"comment_amount_label":"2","views_label":"4062","pics_new":["18/0419/5ad85e298287a.jpg"]},{"id":3526145,"title":"恶心!女子吃冰棍吃出一截老鼠尾巴索赔10万 厂家这样说","link":"lsapp://cn.ahurls.news/news?id=3526145","pics":["appletrecommend/201804/5ae25a16d74f0.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":1,"source":"","type_sign":"","inner_news":1,"views":1251,"comment_amount_label":"1","views_label":"1251"},{"id":3526146,"title":"微商将20元\u201c三无\u201d化妆品卖到280元 购置二手宾利豪车充门面","link":"lsapp://cn.ahurls.news/news?id=3526146","pics":["appletrecommend/201804/5ae25a7dd5587.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":1,"source":"","type_sign":"","inner_news":1,"views":1248,"comment_amount_label":"1","views_label":"1248"},{"id":3526175,"title":"合肥一淘宝店售卖低价\u201c施华洛世奇\u201d遭查处 十万元饰品仅售万元","link":"lsapp://cn.ahurls.news/news?id=3526175","pics":["appletrecommend/201804/5ae261e27aa52.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":0,"source":"","type_sign":"","inner_news":1,"views":313,"comment_amount_label":"0","views_label":"313"},{"id":3526187,"title":"女子嫁人11年还生2个娃 给孩子上户口时才发现嫁错人","link":"lsapp://cn.ahurls.news/image_news?id=3526187","pics":["special/tuku/201804/5ae2615c17a0070271.jpg","special/tuku/201804/5ae2615c039ad44690.jpg","special/tuku/201804/5ae2615bda73d65837.jpg"],"t":"url","type":"images","alias":"headline","pic_amount":3,"style":"multi","comment_amount":1,"source":"","type_sign":"","inner_news":1,"views":1801,"comment_amount_label":"1","views_label":"1801","pics_new":["special/tuku/201804/5ae2615c17a0070271.jpg"]},{"id":3526188,"title":"合肥周谷堆物流园部分商户疯狂偷倒垃圾 每日产生约8吨垃圾","link":"lsapp://cn.ahurls.news/news?id=3526188","pics":["appletrecommend/201804/5ae263fa1eae8.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":0,"source":"","type_sign":"","inner_news":1,"views":215,"comment_amount_label":"0","views_label":"215"},{"id":3526178,"title":"5月1日起这些新规实施:进口抗癌药实施零关税 特定严重失信人限乘火车","link":"lsapp://cn.ahurls.news/news?id=3526178","pics":["appletrecommend/201804/5ae2642743184.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":1,"source":"","type_sign":"","inner_news":1,"views":280,"comment_amount_label":"1","views_label":"280"},{"id":3526181,"title":"富士康员工翻新美版苹果手机9000余部 被罚441万元","link":"lsapp://cn.ahurls.news/news?id=3526181","pics":["appletrecommend/201804/5ae26454b5244.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":1,"source":"","type_sign":"","inner_news":1,"views":282,"comment_amount_label":"1","views_label":"282"},{"id":3526189,"title":"女子被夹屏蔽门与车厢间,地铁疾驶而过 独家对话目击者","link":"lsapp://cn.ahurls.news/image_news?id=3526189","pics":["special/tuku/201804/5ae262914449844649.jpg","special/tuku/201804/5ae2629179c3f46626.jpg","special/tuku/201804/5ae26291ae40997770.jpg"],"t":"url","type":"images","alias":"headline","pic_amount":3,"style":"multi","comment_amount":0,"source":"","type_sign":"","inner_news":1,"views":2000,"comment_amount_label":"0","views_label":"2000","pics_new":["special/tuku/201804/5ae262914449844649.jpg"]},{"id":3526079,"title":"4月29日上午10点将迎五一出行高峰 合肥交警公布高速易堵点","link":"lsapp://cn.ahurls.news/news?id=3526079","pics":["appletrecommend/201804/5ae1cb5cf22db.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":3,"source":"","type_sign":"","inner_news":1,"views":2319,"comment_amount_label":"3","views_label":"2319"},{"id":3526048,"title":"@所有人 合肥地铁有这16类行为活动的最高罚3万元","link":"lsapp://cn.ahurls.news/news?id=3526048","pics":["appletrecommend/201804/5ae1986722583.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":4,"source":"","type_sign":"","inner_news":1,"views":3200,"comment_amount_label":"4","views_label":"3200"},{"id":3526008,"title":"合肥胜利路有女孩因彩礼跳楼?速来看真相!","link":"lsapp://cn.ahurls.news/news?id=3526008","pics":["appletrecommend/201804/5ae1833db5cd7.png"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":3,"source":"","type_sign":"","inner_news":1,"views":3936,"comment_amount_label":"3","views_label":"3936"},{"id":3525994,"title":"【专题】美司法部调查华为 华为回应被调查称遵守所有适用法律","link":"lsapp://cn.ahurls.news/special?id=3525994","pics":["18/0426/5ae17a98e94ca.jpg"],"t":"url","type":"special","alias":"headline","pic_amount":0,"style":"single_fill","comment_amount":3,"source":"","type_sign":"专题","inner_news":1,"views":2166,"comment_amount_label":"3","views_label":"2166","pics_new":["18/0426/5ae17a98e94ca.jpg"]},{"id":3526075,"title":"4月26日24时安徽油价上调 50升油箱加满92号油多花10元","link":"lsapp://cn.ahurls.news/news?id=3526075","pics":["appletrecommend/201804/5ae19e8b99d23.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":3,"source":"","type_sign":"","inner_news":1,"views":4044,"comment_amount_label":"3","views_label":"4044"},{"id":3525407,"title":"\u201c住改商\u201d多年顽疾难处理 合肥多部门联合整治餐饮业或成突破口","link":"lsapp://cn.ahurls.news/news?id=3525407","pics":["appletrecommend/201804/5ae12ca5b8397.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":4,"source":"","type_sign":"","inner_news":1,"views":4509,"comment_amount_label":"4","views_label":"4509"},{"id":3525981,"title":"女子吃冰棍\u201c大赤豆\u201d吃到死老鼠 要超市老板吃掉不要赔偿","link":"lsapp://cn.ahurls.news/news?id=3525981","pics":["appletrecommend/201804/5ae1846d39c2f.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":7,"source":"","type_sign":"","inner_news":1,"views":3176,"comment_amount_label":"7","views_label":"3176"},{"id":3525287,"title":"【小万探园】合肥一幼儿园现迷你\u201c空中操场\u201d \u201c后花园\u201d是天鹅湖沙滩的6倍","link":"lsapp://cn.ahurls.news/image_news?id=3525287","pics":["special/tuku/201804/5ae01b28ae13980792.jpg","special/tuku/201804/5ae01b2850d4910630.jpg","special/tuku/201804/5ae01b2869b8929497.jpg"],"t":"url","type":"images","alias":"headline","pic_amount":3,"style":"multi","comment_amount":9,"source":"","type_sign":"","inner_news":1,"views":8139,"comment_amount_label":"9","views_label":"8139","pics_new":["special/tuku/201804/5ae01b28ae13980792.jpg"]},{"id":3525542,"title":"合肥共享单车禁停区域仍有车辆乱停 公交站点被围堵 ","link":"lsapp://cn.ahurls.news/news?id=3525542","pics":["appletrecommend/201804/5ae1086474d8c.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":5,"source":"","type_sign":"","inner_news":1,"views":4036,"comment_amount_label":"5","views_label":"4036"},{"id":3525977,"title":"合肥逍遥津公园发现一具女性尸体 位于公园隐蔽角落水沟里","link":"lsapp://cn.ahurls.news/news?id=3525977","pics":["appletrecommend/201804/5ae1795b8df9f.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":3,"source":"","type_sign":"","inner_news":1,"views":4948,"comment_amount_label":"3","views_label":"4948"},{"id":3526093,"title":"合肥黄山路一轿车侧翻母女俩被困 城管队员路过紧急救援","link":"lsapp://cn.ahurls.news/news?id=3526093","pics":["appletrecommend/201804/5ae1c91374de6.jpg"],"t":"url","type":"normal","alias":"headline","pic_amount":0,"style":"single_right","comment_amount":3,"source":"","type_sign":"","inner_news":1,"views":3051,"comment_amount_label":"3","views_label":"3051"},{"id":3525312,"title":"实探合肥政务区空置地块 位居区域核心最大面积近500亩闲置多年无人问","link":"lsapp://cn.ahurls.news/image_news?id=3525312","pics":["special/tuku/201804/5ae0201ab9aa619285.jpg","special/tuku/201804/5ae0201b6a10d17178.jpg","special/tuku/201804/5ae0201b7b66043231.jpg"],"t":"url","type":"images","alias":"headline","pic_amount":3,"style":"multi","comment_amount":5,"source":"","type_sign":"","inner_news":1,"views":5943,"comment_amount_label":"5","views_label":"5943","pics_new":["special/tuku/201804/5ae0201ab9aa619285.jpg"]}]
         * extras : {"slider":[{"id":3526190,"pic":"18/0427/5ae2659fb4f14.jpg","link":"lsapp://cn.ahurls.news/news?id=3526190","t":"url","inner_news":1,"title":"合肥杏花公园将添一处城市阅读空间","type":"nomal","type_sign":""},{"id":3525591,"pic":"18/0426/5ae1c70c928e1.jpg","link":"lsapp://cn.ahurls.news/news?id=3525591","t":"url","inner_news":1,"title":"合肥1.3万名环卫工人披星戴月","type":"nomal","type_sign":""},{"id":3525594,"pic":"18/0426/5ae16840d8e60.jpg","link":"lsapp://cn.ahurls.news/news?id=3525594","t":"url","inner_news":1,"title":"合肥城东将建一条文化山水旅游公路","type":"nomal","type_sign":""},{"id":3525556,"pic":"18/0426/5ae12b60a4a0a.jpg","link":"lsapp://cn.ahurls.news/news?id=3525556","t":"url","inner_news":1,"title":"滨湖新区四条道路慢行系统建成开放","type":"nomal","type_sign":""},{"id":3525563,"pic":"18/0426/5ae11e600ba07.jpg","link":"lsapp://cn.ahurls.news/news?id=3525563","t":"url","inner_news":1,"title":"合肥第二届青年文化节月底举行","type":"nomal","type_sign":""}]}
         * bindtips :
         */

        private int page;
        private int perpage;
        private int max_page;
        private int total;
        private ExtrasBean extras;
        private String bindtips;
        private List data;

        public int getPage() {
            return page;
        }

        public void setPage(int page) {
            this.page = page;
        }

        public int getPerpage() {
            return perpage;
        }

        public void setPerpage(int perpage) {
            this.perpage = perpage;
        }

        public int getMax_page() {
            return max_page;
        }

        public void setMax_page(int max_page) {
            this.max_page = max_page;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public ExtrasBean getExtras() {
            return extras;
        }

        public void setExtras(ExtrasBean extras) {
            this.extras = extras;
        }

        public String getBindtips() {
            return bindtips;
        }

        public void setBindtips(String bindtips) {
            this.bindtips = bindtips;
        }

        public List getData() {
            return data;
        }

        public void setData(List data) {
            this.data = data;
        }

        public static class ExtrasBean {
            private List slider;

            public List getSlider() {
                return slider;
            }

            public void setSlider(List slider) {
                this.slider = slider;
            }

            public static class SliderBean {
                /**
                 * id : 3526190
                 * pic : 18/0427/5ae2659fb4f14.jpg
                 * link : lsapp://cn.ahurls.news/news?id=3526190
                 * t : url
                 * inner_news : 1
                 * title : 合肥杏花公园将添一处城市阅读空间
                 * type : nomal
                 * type_sign :
                 */

                private int id;
                private String pic;
                private String link;
                private String t;
                private int inner_news;
                private String title;
                private String type;
                private String type_sign;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getPic() {
                    return pic;
                }

                public void setPic(String pic) {
                    this.pic = pic;
                }

                public String getLink() {
                    return link;
                }

                public void setLink(String link) {
                    this.link = link;
                }

                public String getT() {
                    return t;
                }

                public void setT(String t) {
                    this.t = t;
                }

                public int getInner_news() {
                    return inner_news;
                }

                public void setInner_news(int inner_news) {
                    this.inner_news = inner_news;
                }

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }

                public String getType() {
                    return type;
                }

                public void setType(String type) {
                    this.type = type;
                }

                public String getType_sign() {
                    return type_sign;
                }

                public void setType_sign(String type_sign) {
                    this.type_sign = type_sign;
                }
            }
        }

        public static class DataBean {
            /**
             * id : 3526171
             * title : 合肥再推人才新政豪掷超百亿元“养人” 无房大学生享有租房补贴
             * link : lsapp://cn.ahurls.news/news?id=3526171
             * pics : ["appletrecommend/201804/5ae258fa85fd7.jpg"]
             * t : url
             * type : normal
             * alias : headline
             * pic_amount : 0
             * style : single_right
             * comment_amount : 4
             * source :
             * type_sign :
             * inner_news : 1
             * views : 1022
             * comment_amount_label : 4
             * views_label : 1022
             * pics_new : ["special/tuku/201804/5ae1c280ceae926314.jpg"]
             */

            private int id;
            private String title;
            private String link;
            private String t;
            private String type;
            private String alias;
            private int pic_amount;
            private String style;
            private int comment_amount;
            private String source;
            private String type_sign;
            private int inner_news;
            private int views;
            private String comment_amount_label;
            private String views_label;
            private List pics;
            private List pics_new;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getLink() {
                return link;
            }

            public void setLink(String link) {
                this.link = link;
            }

            public String getT() {
                return t;
            }

            public void setT(String t) {
                this.t = t;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public String getAlias() {
                return alias;
            }

            public void setAlias(String alias) {
                this.alias = alias;
            }

            public int getPic_amount() {
                return pic_amount;
            }

            public void setPic_amount(int pic_amount) {
                this.pic_amount = pic_amount;
            }

            public String getStyle() {
                return style;
            }

            public void setStyle(String style) {
                this.style = style;
            }

            public int getComment_amount() {
                return comment_amount;
            }

            public void setComment_amount(int comment_amount) {
                this.comment_amount = comment_amount;
            }

            public String getSource() {
                return source;
            }

            public void setSource(String source) {
                this.source = source;
            }

            public String getType_sign() {
                return type_sign;
            }

            public void setType_sign(String type_sign) {
                this.type_sign = type_sign;
            }

            public int getInner_news() {
                return inner_news;
            }

            public void setInner_news(int inner_news) {
                this.inner_news = inner_news;
            }

            public int getViews() {
                return views;
            }

            public void setViews(int views) {
                this.views = views;
            }

            public String getComment_amount_label() {
                return comment_amount_label;
            }

            public void setComment_amount_label(String comment_amount_label) {
                this.comment_amount_label = comment_amount_label;
            }

            public String getViews_label() {
                return views_label;
            }

            public void setViews_label(String views_label) {
                this.views_label = views_label;
            }

            public List getPics() {
                return pics;
            }

            public void setPics(List pics) {
                this.pics = pics;
            }

            public List getPics_new() {
                return pics_new;
            }

            public void setPics_new(List pics_new) {
                this.pics_new = pics_new;
            }
        }
    }
}

依赖=======================

compile 'com.google.code.gson:gson:2.6.2'

compile 'com.squareup.okhttp3:okhttp:3.3.0'

compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.android.support:recyclerview-v7:27.0.0'

你可能感兴趣的:(移动开发)