<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:background="@drawable/w" android:layout_width="match_parent" android:layout_height="match_parent" > </RelativeLayout>
activity_second.xml
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout 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"> <android.support.v4.view.ViewPager android:id="@+id/pager" android:layout_width="match_parent" android:layout_height="match_parent"> </android.support.v4.view.ViewPager> <Button android:id="@+id/btn_start" android:text="跳转" android:onClick="TiaoZhuan" android:layout_alignParentBottom="true" android:visibility="gone" android:layout_marginBottom="100dp" android:layout_width="wrap_content" android:layout_centerHorizontal="true" android:layout_height="wrap_content" /> </RelativeLayout>
activity_third.xml
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout 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"> <android.support.v4.widget.DrawerLayout android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:background="#ffffff" android:layout_width="200dp" android:layout_gravity="left" android:layout_height="match_parent"> <ImageView android:src="@drawable/d1" android:layout_gravity="center_horizontal" android:layout_width="100dp" android:layout_height="100dp" /> </LinearLayout> </android.support.v4.widget.DrawerLayout> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent"> <FrameLayout android:id="@+id/fragment_layout" android:layout_width="match_parent" android:layout_height="match_parent"> </FrameLayout> <RadioGroup android:layout_alignParentBottom="true" android:layout_width="match_parent" android:orientation="horizontal" android:layout_height="wrap_content"> <RadioButton android:background="@drawable/button_selector" android:onClick="XinWen" android:id="@+id/xinwen" android:text="新闻" android:button="@null" android:textSize="30sp" android:gravity="center" android:layout_width="0dp" android:layout_weight="1" android:layout_height="wrap_content" /> <RadioButton android:background="@drawable/button_selector" android:onClick="ZiXun" android:id="@+id/zixun" android:text="资讯" android:button="@null" android:textSize="30sp" android:gravity="center" android:layout_width="0dp" android:layout_weight="1" android:layout_height="wrap_content" /> <RadioButton android:background="@drawable/button_selector" android:onClick="TuiJian" android:id="@+id/tuijian" android:text="推荐" android:button="@null" android:textSize="30sp" android:gravity="center" android:layout_width="0dp" android:layout_weight="1" android:layout_height="wrap_content" /> <RadioButton android:background="@drawable/button_selector" android:onClick="WoDe" android:id="@+id/gerenzhongxin" android:text="我的" android:button="@null" android:textSize="30sp" android:gravity="center" android:layout_width="0dp" android:layout_weight="1" android:layout_height="wrap_content" /> </RadioGroup> </RelativeLayout> </RelativeLayout>
item_layout.xml
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal"> <ImageView android:id="@+id/image_view" android:layout_width="100dp" android:layout_height="100dp" /> <TextView android:id="@+id/text_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:textSize="30sp" /> </LinearLayout>
item_group.xml
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <ImageView android:id="@+id/image_view" android:layout_width="100dp" android:layout_height="100dp" /> <TextView android:textSize="30sp" android:id="@+id/text_view" android:layout_width="match_parent" android:layout_height="wrap_content" /> </LinearLayout>
item_image_layout
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:padding="10dp" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:id="@+id/text_title" android:layout_weight="1" android:layout_width="0dp" android:layout_height="wrap_content" /> <ImageView android:id="@+id/image_view" android:layout_width="100dp" android:layout_height="100dp" /> </LinearLayout>
item_right
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:textSize="30sp" android:id="@+id/text_view" android:layout_width="0dp" android:layout_weight="10" android:layout_height="wrap_content" /> <ImageView android:id="@+id/image_view" android:layout_width="100dp" android:layout_weight="1" android:layout_height="100dp" /> </LinearLayout>
item_text_layout
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:padding="10dp" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:id="@+id/text_title" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </LinearLayout>
newfragment_layout
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <com.example.yuekao_02.view.XListView android:id="@+id/x_list_view" android:layout_width="match_parent" android:layout_height="match_parent"> </com.example.yuekao_02.view.XListView> </LinearLayout>
tuijian_fragment
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> </LinearLayout>
wode_fragment
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> </LinearLayout>xinwen_fragment
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.design.widget.TabLayout android:id="@+id/tab_layout" android:layout_width="match_parent" android:layout_height="40dp" app:tabGravity="center" app:tabIndicatorColor="#ff0000" app:tabMode="scrollable" app:tabSelectedTextColor="#ff0000" app:tabTextColor="#00ff00" > </android.support.design.widget.TabLayout> <android.support.v4.view.ViewPager android:id="@+id/pager" android:layout_width="match_parent" android:layout_height="match_parent"> </android.support.v4.view.ViewPager> </LinearLayout> zixun_fragmentThirdactivity.java<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <com.handmark.pulltorefresh.library.PullToRefreshScrollView xmlns:ptr="http://schemas.android.com/apk/res-auto" android:id="@+id/refresh_scroll_view" android:layout_width="match_parent" android:layout_height="match_parent" ptr:ptrAnimationStyle="flip" ptr:ptrDrawable="@drawable/default_ptr_flip" ptr:ptrHeaderBackground="#383838" ptr:ptrHeaderTextColor="#FFFFFF"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <android.support.v4.view.ViewPager android:id="@+id/image_view_pager" android:layout_width="match_parent" android:layout_height="200dp"> </android.support.v4.view.ViewPager> <com.example.yuekao_02.view.MyGridView android:numColumns="2" android:id="@+id/scroll_list_view" android:layout_width="match_parent" android:layout_height="match_parent"> </com.example.yuekao_02.view.MyGridView> </LinearLayout> </com.handmark.pulltorefresh.library.PullToRefreshScrollView> </LinearLayout>
mainactivity.javapackage com.example.yuekao_02; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.support.v7.app.AppCompatActivity; public class MainActivity extends AppCompatActivity { private Handler handler = new Handler() { @Override public void handleMessage(Message msg) { switch (msg.what) { case 0: Intent intent = new Intent(MainActivity.this, SecondActivity.class); startActivity(intent); finish(); break; case 1: Intent intent1 = new Intent(MainActivity.this, ThirdActivity.class); startActivity(intent1); finish(); break; default: break; } } }; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); SharedPreferences preferences = MainActivity.this.getSharedPreferences("config", Context.MODE_PRIVATE); boolean flag = preferences.getBoolean("flag", false); if (flag) { //已经是true,就延时跳转到第三个页面 handler.sendEmptyMessageDelayed(1, 3000); } else { //第一次进入页面.存值为false,跳转到第二个导航页面 preferences.edit().putBoolean("flag", true).commit(); //延时3秒跳转 handler.sendEmptyMessageDelayed(0, 3000); } } }
secondactivity.javapackage com.example.yuekao_02; import android.content.Intent; import android.os.Bundle; import android.support.v4.view.ViewPager; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import com.example.yuekao_02.adapter.ViewpagerAdapter; import java.util.ArrayList; import java.util.List; public class SecondActivity extends AppCompatActivity { private ViewPager pager; private Button btn_start; private List<Integer> list; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_second); pager = (ViewPager) findViewById(R.id.pager); btn_start = (Button) findViewById(R.id.btn_start); list = new ArrayList<>(); list.add(R.drawable.d1); list.add(R.drawable.d2); list.add(R.drawable.d3); list.add(R.drawable.d4); list.add(R.drawable.q); ViewpagerAdapter viewpagerAdapter = new ViewpagerAdapter( SecondActivity.this , list); pager.setAdapter(viewpagerAdapter); pager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() { @Override public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { } @Override public void onPageSelected(int position) { if (position==list.size()-1) { //如果在最后一页 btn_start.setVisibility(View.VISIBLE); }else { btn_start.setVisibility(View.GONE); } } @Override public void onPageScrollStateChanged(int state) { } }); } public void TiaoZhuan(View view){ Intent intent = new Intent(SecondActivity.this, ThirdActivity.class); startActivity(intent); finish(); } }
package com.example.yuekao_02; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import com.example.yuekao_02.fragment.TuiJian; import com.example.yuekao_02.fragment.WoDe; import com.example.yuekao_02.fragment.XinWen; import com.example.yuekao_02.fragment.ZiXun; public class ThirdActivity extends AppCompatActivity { private XinWen frasgment_01; private TuiJian frasgment_02; private ZiXun frasgment_03; private WoDe frasgment_04; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_third); frasgment_01 = new XinWen(); frasgment_02 = new TuiJian(); frasgment_03 = new ZiXun(); frasgment_04 = new WoDe(); } public void XinWen(View view){ getSupportFragmentManager().beginTransaction().replace(R.id.fragment_layout,frasgment_01).commit(); } public void ZiXun(View view){ getSupportFragmentManager().beginTransaction().replace(R.id.fragment_layout,frasgment_03).commit(); } public void TuiJian(View view){ getSupportFragmentManager().beginTransaction().replace(R.id.fragment_layout,frasgment_02).commit(); } public void WoDe(View view){ getSupportFragmentManager().beginTransaction().replace(R.id.fragment_layout,frasgment_04).commit(); } }
Xinwen.java
package com.example.yuekao_02.fragment; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.design.widget.TabLayout; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentPagerAdapter; import android.support.v4.view.ViewPager; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.example.yuekao_02.R; import java.util.ArrayList; import java.util.List; /** * Created by 崔加俊 on 2017/10/24. */ public class XinWen extends Fragment { private ViewPager pager; private TabLayout tab_layout; private List<String> list; @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View view = inflater.inflate(R.layout.xinwen_fragment, container, false); pager = (ViewPager) view.findViewById(R.id.pager); tab_layout = (TabLayout) view.findViewById(R.id.tab_layout); return view; } @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); list = new ArrayList<>(); list.add("动态"); list.add("热门"); list.add("添加"); list.add("头条"); list.add("军事"); pager.setAdapter(new FragmentPagerAdapter(getChildFragmentManager()) { @Override public CharSequence getPageTitle(int position) { return list.get(position); } @Override public Fragment getItem(int position) { NewsFragment newsFragment = new NewsFragment(); Bundle bundle = new Bundle(); if (list.get(position).equals("动态")){ bundle.putString("name","top"); }else if (list.get(position).equals("热门")){ bundle.putString("name","shehui"); }else if (list.get(position).equals("添加")){ bundle.putString("name","guonei"); }else if (list.get(position).equals("头条")){ bundle.putString("name","guoji"); }else if (list.get(position).equals("军事")){ bundle.putString("name","yule"); } newsFragment.setArguments(bundle); return newsFragment; } @Override public int getCount() { return list.size(); } }); tab_layout.setupWithViewPager(pager); pager.setOffscreenPageLimit(list.size()); } }
Newfragment
package com.example.yuekao_02.fragment; import android.os.AsyncTask; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.example.yuekao_02.Beann.DataDataBean; import com.example.yuekao_02.R; import com.example.yuekao_02.adapter.MyAdapter; import com.example.yuekao_02.view.XListView; import com.google.gson.Gson; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.util.List; /** * Created by 崔加俊 on 2017/10/24. */ public class NewsFragment extends Fragment implements XListView.IXListViewListener { private XListView list_view; private int num = 1; @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View view = inflater.inflate(R.layout.newsfragment, container, false); list_view = (XListView) view.findViewById(R.id.x_list_view); return view; } @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); list_view.setPullLoadEnable(true); list_view.setPullLoadEnable(true); list_view.setXListViewListener(this); Bundle bundle = getArguments(); String name = bundle.getString("name", ""); if (name.equals("动态")) { name = "top"; } else if (name.equals("热门")) { name = "junshi"; } else if (name.equals("添加")) { name = "shehui"; } else if (name.equals("头条")) { name = "caijing"; } else if (name.equals("军事")) { name = "guonei"; } getDataFromNet(); } private void getDataFromNet() { AsyncTask<Void, Void, String> asyncTask = new AsyncTask<Void, Void, String>() { @Override protected String doInBackground(Void... voids) { String path = "https://api.tianapi.com/wxnew/?key=8d6e3228d25298f13af4fc40ce6c9679&num=10"; try { URL url = new URL(path); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setReadTimeout(5000); connection.setConnectTimeout(5000); int responseCode = connection.getResponseCode(); if (responseCode == 200) { InputStream inputStream = connection.getInputStream(); String json = streamToString(inputStream, "utf-8"); Log.i("--------------------", json); return json; } } catch (Exception e) { e.printStackTrace(); } return ""; } @Override protected void onPostExecute(String json) { Gson gson = new Gson(); DataDataBean dataDataBean = gson.fromJson(json, DataDataBean.class); List<DataDataBean.NewslistBean> list = dataDataBean.getNewslist(); MyAdapter myAdapter = new MyAdapter(getActivity(), list); list_view.setAdapter(myAdapter); } }; asyncTask.execute(); } private String streamToString(InputStream inputStream, String charset) { try { InputStreamReader inputStreamReader = new InputStreamReader(inputStream, charset); BufferedReader bufferedReader = new BufferedReader(inputStreamReader); String s = null; StringBuilder builder = new StringBuilder(); while ((s = bufferedReader.readLine()) != null) { builder.append(s); } bufferedReader.close(); return builder.toString(); } catch (Exception e) { e.printStackTrace(); } return null; } @Override public void onRefresh() { getDataFromNet(); list_view.stopRefresh(); } @Override public void onLoadMore() { num = num+10; AsyncTask<Void, Void, String> asyncTask = new AsyncTask<Void, Void, String>() { @Override protected String doInBackground(Void... voids) { String path = "https://api.tianapi.com/wxnew/?key=8d6e3228d25298f13af4fc40ce6c9679&num="+num; try { URL url = new URL(path); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setReadTimeout(5000); connection.setConnectTimeout(5000); int responseCode = connection.getResponseCode(); if (responseCode == 200) { InputStream inputStream = connection.getInputStream(); String json = streamToString(inputStream, "utf-8"); Log.i("--------------------", json); return json; } } catch (Exception e) { e.printStackTrace(); } return ""; } @Override protected void onPostExecute(String json) { Gson gson = new Gson(); DataDataBean dataDataBean = gson.fromJson(json, DataDataBean.class); List<DataDataBean.NewslistBean> list = dataDataBean.getNewslist(); MyAdapter myAdapter = new MyAdapter(getActivity(), list); list_view.setAdapter(myAdapter); } }; asyncTask.execute(); list_view.stopLoadMore(); } }
bean
package com.example.yuekao_02.Beann; import java.util.List; public class DataDataBean { /** * code : 200 * msg : success * newslist : [{"ctime":"2017-10-24","title":"重庆多个事业单位公招!看看有没有适合你的?","description":"重庆两江新区","picUrl":"https://zxpic.gtimg.com/infonew/0/wechat_pics_-39834165.static/640","url":"https://mp.weixin.qq.com/s?src=16&ver=446×tamp=1508846438&signature=Yiqp7NM2VaFCYyXKHwFKAF7EovRYQlecemggSQ0QSQAhnU8SosNdz8Lnj7OgmMAKduWZTPxlOFG8dH8OYJ6RA62ARscn0VUkPpYfCcLPXH4="},{"ctime":"2017-10-24","title":"城里媳妇回农村,气死人!","description":"走心音乐","picUrl":"https://t1.qpic.cn/mblogpic/f01a972dbcc1060fd456/2000","url":"https://mp.weixin.qq.com/s?src=16&ver=446×tamp=1508846438&signature=JbYuGn*d17M6dXcHfSREJZMZBCMqv2hzNL8Pc-ncXfyA3qdQLfqVTZF6-DQvvRo4v8FsjFOeuWwasjH4moTDJYMw1ICXhwPkRpFM59Hqv0A="},{"ctime":"2017-10-24","title":"【写实】人称\u201c小冷军\u201d的他说:经过不断打磨出来的作品更加耐人寻味.....","description":"51美术高考网","picUrl":"https://zxpic.gtimg.com/infonew/0/wechat_pics_-46916954.static/640","url":"https://mp.weixin.qq.com/s?src=16&ver=446×tamp=1508846437&signature=tWa7qQky2sJaYD*HPYi0POCV0Pip3LTRA1tj6RIHMZ22xHjKBQLPC9l-uZZsALXNzoUcy3BL8V4ihty8qjUeBpFDcT1HM5TXJPVhTHUlFAI="},{"ctime":"2017-10-24","title":"江北嘴推进跨境结算便利化 重庆金融版图迈向全球化","description":"重庆两江新区","picUrl":"https://zxpic.gtimg.com/infonew/0/wechat_pics_-39834165.static/640","url":"https://mp.weixin.qq.com/s?src=16&ver=446×tamp=1508846437&signature=QUNRp8Yb9Z50llyfZY66L5Eh30kvXDakw1Mz1Pv2m836J4E5gHxRfa4A0gnF7SwZuM7UZ4wHZ5-Nxiivh*DG7UafZSxvD4vGsIDt9LH*RSQ="},{"ctime":"2017-10-24","title":"AI风起,华为EMUI8.0引领手机操作系统行业智能之路","description":"雷锋网","picUrl":"https://zxpic.gtimg.com/infonew/0/wechat_pics_-55958261.jpg/640","url":"https://mp.weixin.qq.com/s?src=16&ver=446×tamp=1508846437&signature=wyPiXHyj5qMVcwLasWMkXURuXBenwkVo32l0t92h0baYoDaDDfqC5Ic-6Xgcr1VJWmVP*R6oocSnWFPoigcvk8lss7-2N2oWW6lh-0zqN-8="},{"ctime":"2017-10-24","title":"【速写】人物速写中错误的临摹方式,会让你误入\u201c歧途\u201d","description":"51美术高考网","picUrl":"https://zxpic.gtimg.com/infonew/0/wechat_pics_-46916954.static/640","url":"https://mp.weixin.qq.com/s?src=16&ver=446×tamp=1508846436&signature=pIZN8T4iA5-l1qt3WIB5u3TeKX*MVpq8C1kXWuwMmT3Ex8H*oo0MsrH9w2QcbOF9ZZ-odYvoSjFsI2p-fpIDk69hg2wZq9kVcn-SICXtgik="},{"ctime":"2017-10-24","title":"人穷了不如鬼,不信你看!","description":"走心音乐","picUrl":"https://t1.qpic.cn/mblogpic/f01a972dbcc1060fd456/2000","url":"https://mp.weixin.qq.com/s?src=16&ver=446×tamp=1508846436&signature=GjKHxUzEYMw6ovoZNfia4s1*EITfrHQwy5hl4Rpr-Ps5c0n3jvOTgN48j4WbXspNluUJjJBKxY*Om967YqYRX3U-vibfg4bAXOyXBBA01cM="},{"ctime":"2017-10-24","title":"【堂主说】每天和我大谈脚本的他,真的不是足控?","description":"任玩堂","picUrl":"https://zxpic.gtimg.com/infonew/0/wechat_pics_-26535999.jpg/640","url":"https://mp.weixin.qq.com/s?src=16&ver=446×tamp=1508846436&signature=ZVTMmu3zXx0Ii15osxkEIbEl5M5NyyQZmmGxN5SGYXBB*dSrjHaasizIDqCUtwTAPYCJjekFN*u2tS7Un20sTP-zWV235ykM3elRxk7GuBo="},{"ctime":"2017-10-24","title":"低配版凤凰传奇,笑我一下午","description":"走心音乐","picUrl":"https://t1.qpic.cn/mblogpic/34d9dfb75cfceb04a840/2000","url":"https://mp.weixin.qq.com/s?src=16&ver=446×tamp=1508846435&signature=jbHRoWwm8X2LEqSdIvCpsFuPjkV-fThb6Jsqfj749dEW8js7Hcn1vSqVgAswANrZSxL20sn1LtSHcWoUrb-lXjxShiG-ThyGM35e13Z5JOg="},{"ctime":"2017-10-24","title":"互动丨\u201c欺我感情,骗我钱财\u201d,数一数你在电影院看过的烂片","description":"Vista看天下","picUrl":"https://zxpic.gtimg.com/infonew/0/wechat_pics_-55958240.jpg/640","url":"https://mp.weixin.qq.com/s?src=16&ver=446×tamp=1508846435&signature=pko8bnB5CHIiNcAbiyOlTa8pVJq6R*ht7zmEEASH*R3fEs3pHnZx5LQnDWXCLM0VoZNGCUvFFXUCINFvSh17e-x2W3EEadIMuAoxsOLEHh4="}] */ private int code; private String msg; private List<NewslistBean> newslist; public int getCode() { return code; } public void setCode(int code) { this.code = code; } public String getMsg() { return msg; } public void setMsg(String msg) { this.msg = msg; } public List<NewslistBean> getNewslist() { return newslist; } public void setNewslist(List<NewslistBean> newslist) { this.newslist = newslist; } public static class NewslistBean { /** * ctime : 2017-10-24 * title : 重庆多个事业单位公招!看看有没有适合你的? * description : 重庆两江新区 * picUrl : https://zxpic.gtimg.com/infonew/0/wechat_pics_-39834165.static/640 * url : https://mp.weixin.qq.com/s?src=16&ver=446×tamp=1508846438&signature=Yiqp7NM2VaFCYyXKHwFKAF7EovRYQlecemggSQ0QSQAhnU8SosNdz8Lnj7OgmMAKduWZTPxlOFG8dH8OYJ6RA62ARscn0VUkPpYfCcLPXH4= */ private String ctime; private String title; private String description; private String picUrl; private String url; public String getCtime() { return ctime; } public void setCtime(String ctime) { this.ctime = ctime; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getPicUrl() { return picUrl; } public void setPicUrl(String picUrl) { this.picUrl = picUrl; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } } }
LIstdataBean
package com.example.yuekao_02.Beann; import java.util.List; /** * Created by 崔加俊 on 2017/10/24. */ public class ListDataBean { /** * res : 0 * data : {"essay":[{"content_id":"2878","hp_title":"直到大地深处","hp_makettime":"2017-10-24 06:00:00","guide_word":"我,只有我,才是真正的光,别想骗我,这种世界,有什么意思?","start_video":"","author":[{"user_id":"4813463","user_name":"老王子","desc":"作家,广告人。@新老王子","wb_name":"@新老王子","is_settled":"0","settled_type":"0","summary":"作家,广告人。@新老王子","fans_total":"1306","web_url":"http://image.wufazhuce.com/FgegDExkkeP8izCd3fkGKRwoyKiS"}],"has_audio":true,"author_list":[{"user_id":"4813463","user_name":"老王子","desc":"作家,广告人。@新老王子","wb_name":"@新老王子","is_settled":"0","settled_type":"0","summary":"作家,广告人。@新老王子","fans_total":"1306","web_url":"http://image.wufazhuce.com/FgegDExkkeP8izCd3fkGKRwoyKiS"}]},{"content_id":"2877","hp_title":"我能想到最浪漫的重逢,就是看到前男友变成秃头","hp_makettime":"2017-10-23 06:00:00","guide_word":"如何优雅地杀死前男/女友?","start_video":"","author":[{"user_id":"7888901","user_name":"青年狒狒","desc":"为了遇见您,我翻山越岭地来了,然后还要翻山越岭地回家去。","wb_name":"@会塔罗的青年狒狒","is_settled":"0","settled_type":"0","summary":"君子珍重其志,而玮其辞焉。","fans_total":"3170","web_url":"http://image.wufazhuce.com/Fkfbe09S4YZTlP9ZwvG0fS2z7TQZ"}],"has_audio":false,"author_list":[{"user_id":"7888901","user_name":"青年狒狒","desc":"为了遇见您,我翻山越岭地来了,然后还要翻山越岭地回家去。","wb_name":"@会塔罗的青年狒狒","is_settled":"0","settled_type":"0","summary":"君子珍重其志,而玮其辞焉。","fans_total":"3170","web_url":"http://image.wufazhuce.com/Fkfbe09S4YZTlP9ZwvG0fS2z7TQZ"}]},{"content_id":"2871","hp_title":"山阴路厨师","hp_makettime":"2017-10-23 06:00:00","guide_word":"他们猜不到那一轮剪影究竟需要花怎样一番人生去酿造,而且转瞬即逝。","start_video":"","author":[{"user_id":"4814667","user_name":"凉炘","desc":"青年作家、「ONE·一个」常驻作者。","wb_name":"@凉炘","is_settled":"0","settled_type":"0","summary":"青年作家、「ONE·一个」常驻作者。","fans_total":"8856","web_url":"http://image.wufazhuce.com/Fgnxy66nFQ7wSQekWMCtsclejWHi"}],"has_audio":true,"author_list":[{"user_id":"4814667","user_name":"凉炘","desc":"青年作家、「ONE·一个」常驻作者。","wb_name":"@凉炘","is_settled":"0","settled_type":"0","summary":"青年作家、「ONE·一个」常驻作者。","fans_total":"8856","web_url":"http://image.wufazhuce.com/Fgnxy66nFQ7wSQekWMCtsclejWHi"}]},{"content_id":"2875","hp_title":"太阳照在苏州河上 ","hp_makettime":"2017-10-22 06:00:00","guide_word":"没有人愿意成为替代品,也没有人甘受他人的摆布。","start_video":"","author":[{"user_id":"7374963","user_name":"单桐兴","desc":"高概念长篇小说《停水男女》即将上市。","wb_name":"@少年单的奇幻漂流","is_settled":"0","settled_type":"0","summary":"青年作家,编剧","fans_total":"1607","web_url":"http://image.wufazhuce.com/FtOIL7BskeYMiIH90UlWcLp50Hhg"}],"has_audio":false,"author_list":[{"user_id":"7374963","user_name":"单桐兴","desc":"高概念长篇小说《停水男女》即将上市。","wb_name":"@少年单的奇幻漂流","is_settled":"0","settled_type":"0","summary":"青年作家,编剧","fans_total":"1607","web_url":"http://image.wufazhuce.com/FtOIL7BskeYMiIH90UlWcLp50Hhg"}]},{"content_id":"2872","hp_title":"我这一辈子瞎混过去了","hp_makettime":"2017-10-22 06:00:00","guide_word":"那团包裹着身前身后的迷雾,总是越来越涨大,真实几不可见。","start_video":"","author":[{"user_id":"7654034","user_name":"黄集伟","desc":"黄集伟,专栏作者,曾有\u201c阅读笔记\u201d系列、\u201c语词笔记\u201d系列、《孤岛访谈录》等闲书出版。","wb_name":"","is_settled":"0","settled_type":"0","summary":"黄集伟,专栏作者。","fans_total":"3828","web_url":"http://image.wufazhuce.com/FvVmWbqlle7jlUCTeozoval9NyBH"}],"has_audio":false,"author_list":[{"user_id":"7654034","user_name":"黄集伟","desc":"黄集伟,专栏作者,曾有\u201c阅读笔记\u201d系列、\u201c语词笔记\u201d系列、《孤岛访谈录》等闲书出版。","wb_name":"","is_settled":"0","settled_type":"0","summary":"黄集伟,专栏作者。","fans_total":"3828","web_url":"http://image.wufazhuce.com/FvVmWbqlle7jlUCTeozoval9NyBH"}]},{"content_id":"2874","hp_title":"爱情阶段论","hp_makettime":"2017-10-21 06:00:00","guide_word":"理解爱情关系跟其他所有人际关系一样,爱情也是两人互动的结果。","start_video":"","author":[{"user_id":"7671727","user_name":"陈雪","desc":"小说《蝴蝶》曾被香港导演麦婉欣改编成同名电影,著有《恋爱课》《台妹时光》《人妻日记》《迷宫中的恋人》等,微信公众号:小说家陈雪(ID:twchenxue)。","wb_name":"","is_settled":"0","settled_type":"0","summary":"作家","fans_total":"3034","web_url":"http://image.wufazhuce.com/Fu6o0fqKHsI_TjdpPX3N2Kc99vNP"}],"has_audio":false,"author_list":[{"user_id":"7671727","user_name":"陈雪","desc":"小说《蝴蝶》曾被香港导演麦婉欣改编成同名电影,著有《恋爱课》《台妹时光》《人妻日记》《迷宫中的恋人》等,微信公众号:小说家陈雪(ID:twchenxue)。","wb_name":"","is_settled":"0","settled_type":"0","summary":"作家","fans_total":"3034","web_url":"http://image.wufazhuce.com/Fu6o0fqKHsI_TjdpPX3N2Kc99vNP"}]},{"content_id":"2869","hp_title":"天使","hp_makettime":"2017-10-21 06:00:00","guide_word":"\u201c人死了以后真的有灵魂吗?\u201d\u201c当然,不然春天如何再次降临。\u201d","start_video":"","author":[{"user_id":"7381968","user_name":"程姬","desc":"电影从业者。","wb_name":"@程姬_","is_settled":"0","settled_type":"0","summary":"电影从业者。","fans_total":"1846","web_url":"http://image.wufazhuce.com/FuppaH0wjw--gmhDoi0I69c7bGP7"}],"has_audio":true,"author_list":[{"user_id":"7381968","user_name":"程姬","desc":"电影从业者。","wb_name":"@程姬_","is_settled":"0","settled_type":"0","summary":"电影从业者。","fans_total":"1846","web_url":"http://image.wufazhuce.com/FuppaH0wjw--gmhDoi0I69c7bGP7"}]},{"content_id":"2868","hp_title":"忧伤萨莉亚","hp_makettime":"2017-10-20 06:00:00","guide_word":"意识到了这个世界运转的正常规则,却只能无动于衷。","start_video":"","author":[{"user_id":"7455011","user_name":"余欣","desc":"男,想当中年作家。","wb_name":"","is_settled":"0","settled_type":"0","summary":"男,想当中年作家。","fans_total":"203","web_url":"http://image.wufazhuce.com/FtOZMXK8nYyZSBQY4PgSmIvg0cMn"}],"has_audio":true,"author_list":[{"user_id":"7455011","user_name":"余欣","desc":"男,想当中年作家。","wb_name":"","is_settled":"0","settled_type":"0","summary":"男,想当中年作家。","fans_total":"203","web_url":"http://image.wufazhuce.com/FtOZMXK8nYyZSBQY4PgSmIvg0cMn"}]},{"content_id":"2867","hp_title":"200万很好啊,但我就想要5000月薪","hp_makettime":"2017-10-19 06:00:00","guide_word":"你以为自己是天才枪手,其实只是炮灰。","start_video":"","author":[{"user_id":"7181466","user_name":"十三妹丁无畏","desc":"菜鸟乐评小编,专业观众。不客观,杂食,偏爱postpunk&newwave。超典型射手,LGBTQ人权平等拥护。\r\n微博:@十三妹丁无畏","wb_name":"@十三妹丁无畏","is_settled":"0","settled_type":"0","summary":"音乐编辑","fans_total":"3071","web_url":"http://image.wufazhuce.com/Fng58eK6AcGwxDjTftvM4_j9DfeB"}],"has_audio":false,"author_list":[{"user_id":"7181466","user_name":"十三妹丁无畏","desc":"菜鸟乐评小编,专业观众。不客观,杂食,偏爱postpunk&newwave。超典型射手,LGBTQ人权平等拥护。\r\n微博:@十三妹丁无畏","wb_name":"@十三妹丁无畏","is_settled":"0","settled_type":"0","summary":"音乐编辑","fans_total":"3071","web_url":"http://image.wufazhuce.com/Fng58eK6AcGwxDjTftvM4_j9DfeB"}]},{"content_id":"2866","hp_title":"去屠宰场谈恋爱好吗?","hp_makettime":"2017-10-19 06:00:00","guide_word":"无论从哪条路走下来,都会跌入相同滑道,相同结局。","start_video":"","author":[{"user_id":"6859004","user_name":"兔草","desc":"生于武汉,现居上海。写小说、评论、剧本等。小说见ONE、豆瓣、《野草》等。","wb_name":"@兔草啊吐槽","is_settled":"0","settled_type":"0","summary":"退役文案,杂耍写手","fans_total":"119","web_url":"http://image.wufazhuce.com/FmIxumvucSMThvBqzjla4dEmFbwL"}],"has_audio":false,"author_list":[{"user_id":"6859004","user_name":"兔草","desc":"生于武汉,现居上海。写小说、评论、剧本等。小说见ONE、豆瓣、《野草》等。","wb_name":"@兔草啊吐槽","is_settled":"0","settled_type":"0","summary":"退役文案,杂耍写手","fans_total":"119","web_url":"http://image.wufazhuce.com/FmIxumvucSMThvBqzjla4dEmFbwL"}]}],"serial":[{"id":"446","serial_id":"50","number":"11","title":"相亲攻略手册(8)·八月,我是瓶中的水(下)","excerpt":"但我真的害怕就这么孤独地走下去,我渴望有个可以共度余生的人。","read_num":"24000","maketime":"2017-10-24 06:00:00","start_video":"","author":{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"},"has_audio":false,"author_list":[{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"}],"serial_list":["430","431","434","435","437","438","444","439","445","441","446"]},{"id":"459","serial_id":"49","number":"12","title":" 我在三十岁的第一年 II · 第十二话","excerpt":"人总归还是人呀,怎么能一个人孤零零在世上?","read_num":"29500","maketime":"2017-10-23 06:00:00","start_video":"","author":{"user_id":"4808838","user_name":"毛利","desc":"毛利,专栏作家。《我在三十岁的第一年》即将上市。","wb_name":"@毛利","is_settled":"0","settled_type":"0","summary":"专栏作家。","fans_total":"8954","web_url":"http://image.wufazhuce.com/Fl3AgUQb4i6WocmORrnhMPkcDkV4"},"has_audio":false,"author_list":[{"user_id":"4808838","user_name":"毛利","desc":"毛利,专栏作家。《我在三十岁的第一年》即将上市。","wb_name":"@毛利","is_settled":"0","settled_type":"0","summary":"专栏作家。","fans_total":"8954","web_url":"http://image.wufazhuce.com/Fl3AgUQb4i6WocmORrnhMPkcDkV4"}],"serial_list":["428","429","433","436","440","442","448","449","450","452","458","459"]},{"id":"441","serial_id":"50","number":"10","title":"相亲攻略手册(8)·八月,我是瓶中的水(上)","excerpt":"命运告诉我,他不会留,我也留不住。","read_num":"41200","maketime":"2017-10-21 06:00:00","start_video":"","author":{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"},"has_audio":false,"author_list":[{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"}],"serial_list":["430","431","434","435","437","438","444","439","445","441","446"]},{"id":"458","serial_id":"49","number":"11","title":"我在三十岁的第一年 II · 第十一话","excerpt":"可怕的不是欺骗,是欺骗后面满墙污垢的人生罢了。","read_num":"44200","maketime":"2017-10-20 06:00:00","start_video":"","author":{"user_id":"4808838","user_name":"毛利","desc":"毛利,专栏作家。《我在三十岁的第一年》即将上市。","wb_name":"@毛利","is_settled":"0","settled_type":"0","summary":"专栏作家。","fans_total":"8954","web_url":"http://image.wufazhuce.com/Fl3AgUQb4i6WocmORrnhMPkcDkV4"},"has_audio":false,"author_list":[{"user_id":"4808838","user_name":"毛利","desc":"毛利,专栏作家。《我在三十岁的第一年》即将上市。","wb_name":"@毛利","is_settled":"0","settled_type":"0","summary":"专栏作家。","fans_total":"8954","web_url":"http://image.wufazhuce.com/Fl3AgUQb4i6WocmORrnhMPkcDkV4"}],"serial_list":["428","429","433","436","440","442","448","449","450","452","458","459"]},{"id":"445","serial_id":"50","number":"9","title":"相亲攻略手册(7)·七月,悲喜交加(下)","excerpt":"我很感谢他最后没有跟我说抱歉,或者跟我说,我是个好姑娘。","read_num":"48000","maketime":"2017-10-19 06:00:00","start_video":"","author":{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"},"has_audio":false,"author_list":[{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"}],"serial_list":["430","431","434","435","437","438","444","439","445","441","446"]},{"id":"452","serial_id":"49","number":"10","title":"我在三十岁的第一年 II · 第十话","excerpt":"人生就是一场大型错位。","read_num":"49200","maketime":"2017-10-18 06:00:00","start_video":"","author":{"user_id":"4808838","user_name":"毛利","desc":"毛利,专栏作家。《我在三十岁的第一年》即将上市。","wb_name":"@毛利","is_settled":"0","settled_type":"0","summary":"专栏作家。","fans_total":"8954","web_url":"http://image.wufazhuce.com/Fl3AgUQb4i6WocmORrnhMPkcDkV4"},"has_audio":false,"author_list":[{"user_id":"4808838","user_name":"毛利","desc":"毛利,专栏作家。《我在三十岁的第一年》即将上市。","wb_name":"@毛利","is_settled":"0","settled_type":"0","summary":"专栏作家。","fans_total":"8954","web_url":"http://image.wufazhuce.com/Fl3AgUQb4i6WocmORrnhMPkcDkV4"}],"serial_list":["428","429","433","436","440","442","448","449","450","452","458","459"]},{"id":"439","serial_id":"50","number":"8","title":"相亲攻略手册(7)·七月,悲喜交加(上)","excerpt":"我想等的人,也不再是你。","read_num":"51600","maketime":"2017-10-17 06:00:00","start_video":"","author":{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"},"has_audio":false,"author_list":[{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"}],"serial_list":["430","431","434","435","437","438","444","439","445","441","446"]},{"id":"450","serial_id":"49","number":"9","title":"我在三十岁的第一年 II · 第九话","excerpt":"如果一个人被迫过着清心寡欲的生活,只要有一个机会,她就会跑向纵情享乐。","read_num":"48300","maketime":"2017-10-16 06:00:00","start_video":"","author":{"user_id":"4808838","user_name":"毛利","desc":"毛利,专栏作家。《我在三十岁的第一年》即将上市。","wb_name":"@毛利","is_settled":"0","settled_type":"0","summary":"专栏作家。","fans_total":"8954","web_url":"http://image.wufazhuce.com/Fl3AgUQb4i6WocmORrnhMPkcDkV4"},"has_audio":false,"author_list":[{"user_id":"4808838","user_name":"毛利","desc":"毛利,专栏作家。《我在三十岁的第一年》即将上市。","wb_name":"@毛利","is_settled":"0","settled_type":"0","summary":"专栏作家。","fans_total":"8954","web_url":"http://image.wufazhuce.com/Fl3AgUQb4i6WocmORrnhMPkcDkV4"}],"serial_list":["428","429","433","436","440","442","448","449","450","452","458","459"]},{"id":"444","serial_id":"50","number":"7","title":"相亲攻略手册(6)·六月,青草盛开(下)","excerpt":"他始终横亘在我的生活里,就像是心头一根温和的刺。","read_num":"49200","maketime":"2017-10-14 06:00:00","start_video":"","author":{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"},"has_audio":false,"author_list":[{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"}],"serial_list":["430","431","434","435","437","438","444","439","445","441","446"]},{"id":"449","serial_id":"49","number":"8","title":"我在三十岁的第一年 II · 第八话","excerpt":"日常生活给再多奇迹,也总是乏味和平庸的结尾最多。","read_num":"48800","maketime":"2017-10-13 06:00:00","start_video":"","author":{"user_id":"4808838","user_name":"毛利","desc":"毛利,专栏作家。《我在三十岁的第一年》即将上市。","wb_name":"@毛利","is_settled":"0","settled_type":"0","summary":"专栏作家。","fans_total":"8954","web_url":"http://image.wufazhuce.com/Fl3AgUQb4i6WocmORrnhMPkcDkV4"},"has_audio":false,"author_list":[{"user_id":"4808838","user_name":"毛利","desc":"毛利,专栏作家。《我在三十岁的第一年》即将上市。","wb_name":"@毛利","is_settled":"0","settled_type":"0","summary":"专栏作家。","fans_total":"8954","web_url":"http://image.wufazhuce.com/Fl3AgUQb4i6WocmORrnhMPkcDkV4"}],"serial_list":["428","429","433","436","440","442","448","449","450","452","458","459"]}],"question":[{"question_id":"1893","question_title":"男人不给女朋友买包就是不爱她吗?","answer_title":"","answer_content":"会送礼物的男人,本就是凤毛麟角。","question_makettime":"2017-10-24 06:00:00","start_video":"","author_list":[{"user_id":"4813463","user_name":"老王子","desc":"作家,广告人。@新老王子","wb_name":"@新老王子","is_settled":"0","settled_type":"0","summary":"作家,广告人。@新老王子","fans_total":"1306","web_url":"http://image.wufazhuce.com/FgegDExkkeP8izCd3fkGKRwoyKiS"}],"asker_list":[{"user_id":"0","user_name":"夜铺盖你","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}]},{"question_id":"1892","question_title":"在将近30岁的年龄你是怎样的心境?","answer_title":"","answer_content":"这个时间里,能把握的事情那么少,一件事都不要怠慢。","question_makettime":"2017-10-23 06:00:00","start_video":"","author_list":[{"user_id":"4814749","user_name":"张怡微","desc":"张怡微,作家。作品《云物如故乡》、《情关西游》等。","wb_name":"@张怡微 ","is_settled":"0","settled_type":"0","summary":"张怡微,作家。","fans_total":"2797","web_url":"http://image.wufazhuce.com/FpFQFQenJh2RsWjdlGb7t6sr-qVs"}],"asker_list":[{"user_id":"0","user_name":"月亮石","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}]},{"question_id":"1890","question_title":"为什么学理科的人大都不懂浪漫?","answer_title":"","answer_content":"如果非要送玫瑰,可以在建军节买嘛。","question_makettime":"2017-10-22 06:00:00","start_video":"","author_list":[{"user_id":"7566818","user_name":"温义飞","desc":"有时也会迷惑,人们爱的究竟是我的美貌还是我的才华。 ","wb_name":"@Blake老实人","is_settled":"0","settled_type":"0","summary":"温义飞,ONE热门回答者。","fans_total":"599","web_url":"http://image.wufazhuce.com/FjN55lHN2vK5VgA5c1c8opFeUrG1"}],"asker_list":[{"user_id":"0","user_name":"nothing","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}]},{"question_id":"1891","question_title":"男人油不油腻谁说了算?","answer_title":"","answer_content":"记住,谁也没有辜负你,并不是生活把你变成这样的。","question_makettime":"2017-10-21 06:00:00","start_video":"","author_list":[{"user_id":"7609609","user_name":"胡不归","desc":"不严肃文学作者","wb_name":"","is_settled":"0","settled_type":"0","summary":"不严肃文学作者","fans_total":"156","web_url":"http://image.wufazhuce.com/FidpPXiSppV_kEZ-pZsDOwYOXKYk"}],"asker_list":[{"user_id":"0","user_name":"理查德椰菜","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}]},{"question_id":"1889","question_title":"为什么每隔一段时间就不想上班?","answer_title":"","answer_content":"倦怠是21世纪的职场感冒。","question_makettime":"2017-10-20 06:00:00","start_video":"","author_list":[{"user_id":"8161929","user_name":"古典","desc":"古典,三百万册畅销书《拆掉思维里的墙》作者,罗辑思维得到专栏\u201c超级个体\u201d主理人。新精英生涯公司创始人。最新作品《跃迁:成为高手的技术》已全面上线。","wb_name":"@古典","is_settled":"0","settled_type":"0","summary":"新精英创始人、全球职业规划师。","fans_total":"726","web_url":"http://image.wufazhuce.com/FliuAySelCaFB--oCJwL1IBG0fVW"}],"asker_list":[{"user_id":"0","user_name":"KK","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}]},{"question_id":"1888","question_title":"我们能为想自杀的人做点什么?","answer_title":"","answer_content":"不要对一个没有双腿的人说奔跑是一件多么轻松的事情。","question_makettime":"2017-10-19 06:00:00","start_video":"","author_list":[{"user_id":"7834279","user_name":"露易莎大能个儿","desc":"你想看到什么?","wb_name":"@露易莎大能个儿","is_settled":"0","settled_type":"0","summary":"朝阳区唯一的精灵。","fans_total":"809","web_url":"http://image.wufazhuce.com/FjREAxQyRS8OCKo9VJ1pmMFWCEKA"}],"asker_list":[{"user_id":"0","user_name":"高高","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}]},{"question_id":"1886","question_title":"受邀参加前任婚礼该怎么办?","answer_title":"","answer_content":"当初是你要分开,分开就分开,现在又要用婚礼,来抢我的钱。","question_makettime":"2017-10-18 06:00:00","start_video":"","author_list":[{"user_id":"0","user_name":"网友","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}],"asker_list":[{"user_id":"0","user_name":"丰博","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}]},{"question_id":"1887","question_title":"为人父母之后心境会有怎样的变化?","answer_title":"","answer_content":"当森林甬道遍布,我也只有祝福。","question_makettime":"2017-10-17 06:00:00","start_video":"","author_list":[{"user_id":"4814673","user_name":"刘墨闻","desc":"设计师,青年作者。@刘墨闻","wb_name":"","is_settled":"0","settled_type":"0","summary":"设计师,青年作者。","fans_total":"2127","web_url":"http://image.wufazhuce.com/FvHffjDa1ORrg83qhajnR_zhwJlg"}],"asker_list":[{"user_id":"0","user_name":"in_Mars","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}]},{"question_id":"1884","question_title":"世界上有会亏钱的老虎机吗?","answer_title":"","answer_content":"所有看似随机的人工结果背后都有迹可循。","question_makettime":"2017-10-16 06:00:00","start_video":"","author_list":[{"user_id":"0","user_name":"温义飞","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}],"asker_list":[{"user_id":"0","user_name":"老李","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}]},{"question_id":"1885","question_title":"智商高的人会缺少人情味儿吗?","answer_title":"","answer_content":"智商高的人会缺少人情味儿吗?","question_makettime":"2017-10-15 06:00:00","start_video":"","author_list":[{"user_id":"8185629","user_name":"行尸走肥肉","desc":"一位拥有三双拖鞋的便衣诗人。","wb_name":"@行尸走肥肉","is_settled":"0","settled_type":"0","summary":"一位拥有三双拖鞋的便衣诗人。","fans_total":"1518","web_url":"http://image.wufazhuce.com/FiE2WkXRL8Vf3k1683CDDgU7VqgM"}],"asker_list":[{"user_id":"0","user_name":"网友","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}]}]} */ private int res; private DataBean data; public int getRes() { return res; } public void setRes(int res) { this.res = res; } public DataBean getData() { return data; } public void setData(DataBean data) { this.data = data; } public static class DataBean { private List<EssayBean> essay; private List<SerialBean> serial; private List<QuestionBean> question; public List<EssayBean> getEssay() { return essay; } public void setEssay(List<EssayBean> essay) { this.essay = essay; } public List<SerialBean> getSerial() { return serial; } public void setSerial(List<SerialBean> serial) { this.serial = serial; } public List<QuestionBean> getQuestion() { return question; } public void setQuestion(List<QuestionBean> question) { this.question = question; } public static class EssayBean { /** * content_id : 2878 * hp_title : 直到大地深处 * hp_makettime : 2017-10-24 06:00:00 * guide_word : 我,只有我,才是真正的光,别想骗我,这种世界,有什么意思? * start_video : * author : [{"user_id":"4813463","user_name":"老王子","desc":"作家,广告人。@新老王子","wb_name":"@新老王子","is_settled":"0","settled_type":"0","summary":"作家,广告人。@新老王子","fans_total":"1306","web_url":"http://image.wufazhuce.com/FgegDExkkeP8izCd3fkGKRwoyKiS"}] * has_audio : true * author_list : [{"user_id":"4813463","user_name":"老王子","desc":"作家,广告人。@新老王子","wb_name":"@新老王子","is_settled":"0","settled_type":"0","summary":"作家,广告人。@新老王子","fans_total":"1306","web_url":"http://image.wufazhuce.com/FgegDExkkeP8izCd3fkGKRwoyKiS"}] */ private String content_id; private String hp_title; private String hp_makettime; private String guide_word; private String start_video; private boolean has_audio; private List<AuthorBean> author; private List<AuthorListBean> author_list; public String getContent_id() { return content_id; } public void setContent_id(String content_id) { this.content_id = content_id; } public String getHp_title() { return hp_title; } public void setHp_title(String hp_title) { this.hp_title = hp_title; } public String getHp_makettime() { return hp_makettime; } public void setHp_makettime(String hp_makettime) { this.hp_makettime = hp_makettime; } public String getGuide_word() { return guide_word; } public void setGuide_word(String guide_word) { this.guide_word = guide_word; } public String getStart_video() { return start_video; } public void setStart_video(String start_video) { this.start_video = start_video; } public boolean isHas_audio() { return has_audio; } public void setHas_audio(boolean has_audio) { this.has_audio = has_audio; } public List<AuthorBean> getAuthor() { return author; } public void setAuthor(List<AuthorBean> author) { this.author = author; } public List<AuthorListBean> getAuthor_list() { return author_list; } public void setAuthor_list(List<AuthorListBean> author_list) { this.author_list = author_list; } public static class AuthorBean { /** * user_id : 4813463 * user_name : 老王子 * desc : 作家,广告人。@新老王子 * wb_name : @新老王子 * is_settled : 0 * settled_type : 0 * summary : 作家,广告人。@新老王子 * fans_total : 1306 * web_url : http://image.wufazhuce.com/FgegDExkkeP8izCd3fkGKRwoyKiS */ private String user_id; private String user_name; private String desc; private String wb_name; private String is_settled; private String settled_type; private String summary; private String fans_total; private String web_url; public String getUser_id() { return user_id; } public void setUser_id(String user_id) { this.user_id = user_id; } public String getUser_name() { return user_name; } public void setUser_name(String user_name) { this.user_name = user_name; } public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } public String getWb_name() { return wb_name; } public void setWb_name(String wb_name) { this.wb_name = wb_name; } public String getIs_settled() { return is_settled; } public void setIs_settled(String is_settled) { this.is_settled = is_settled; } public String getSettled_type() { return settled_type; } public void setSettled_type(String settled_type) { this.settled_type = settled_type; } public String getSummary() { return summary; } public void setSummary(String summary) { this.summary = summary; } public String getFans_total() { return fans_total; } public void setFans_total(String fans_total) { this.fans_total = fans_total; } public String getWeb_url() { return web_url; } public void setWeb_url(String web_url) { this.web_url = web_url; } } public static class AuthorListBean { /** * user_id : 4813463 * user_name : 老王子 * desc : 作家,广告人。@新老王子 * wb_name : @新老王子 * is_settled : 0 * settled_type : 0 * summary : 作家,广告人。@新老王子 * fans_total : 1306 * web_url : http://image.wufazhuce.com/FgegDExkkeP8izCd3fkGKRwoyKiS */ private String user_id; private String user_name; private String desc; private String wb_name; private String is_settled; private String settled_type; private String summary; private String fans_total; private String web_url; public String getUser_id() { return user_id; } public void setUser_id(String user_id) { this.user_id = user_id; } public String getUser_name() { return user_name; } public void setUser_name(String user_name) { this.user_name = user_name; } public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } public String getWb_name() { return wb_name; } public void setWb_name(String wb_name) { this.wb_name = wb_name; } public String getIs_settled() { return is_settled; } public void setIs_settled(String is_settled) { this.is_settled = is_settled; } public String getSettled_type() { return settled_type; } public void setSettled_type(String settled_type) { this.settled_type = settled_type; } public String getSummary() { return summary; } public void setSummary(String summary) { this.summary = summary; } public String getFans_total() { return fans_total; } public void setFans_total(String fans_total) { this.fans_total = fans_total; } public String getWeb_url() { return web_url; } public void setWeb_url(String web_url) { this.web_url = web_url; } } } public static class SerialBean { /** * id : 446 * serial_id : 50 * number : 11 * title : 相亲攻略手册(8)·八月,我是瓶中的水(下) * excerpt : 但我真的害怕就这么孤独地走下去,我渴望有个可以共度余生的人。 * read_num : 24000 * maketime : 2017-10-24 06:00:00 * start_video : * author : {"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"} * has_audio : false * author_list : [{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"}] * serial_list : ["430","431","434","435","437","438","444","439","445","441","446"] */ private String id; private String serial_id; private String number; private String title; private String excerpt; private String read_num; private String maketime; private String start_video; private AuthorBeanX author; private boolean has_audio; private List<AuthorListBeanX> author_list; private List<String> serial_list; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getSerial_id() { return serial_id; } public void setSerial_id(String serial_id) { this.serial_id = serial_id; } public String getNumber() { return number; } public void setNumber(String number) { this.number = number; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getExcerpt() { return excerpt; } public void setExcerpt(String excerpt) { this.excerpt = excerpt; } public String getRead_num() { return read_num; } public void setRead_num(String read_num) { this.read_num = read_num; } public String getMaketime() { return maketime; } public void setMaketime(String maketime) { this.maketime = maketime; } public String getStart_video() { return start_video; } public void setStart_video(String start_video) { this.start_video = start_video; } public AuthorBeanX getAuthor() { return author; } public void setAuthor(AuthorBeanX author) { this.author = author; } public boolean isHas_audio() { return has_audio; } public void setHas_audio(boolean has_audio) { this.has_audio = has_audio; } public List<AuthorListBeanX> getAuthor_list() { return author_list; } public void setAuthor_list(List<AuthorListBeanX> author_list) { this.author_list = author_list; } public List<String> getSerial_list() { return serial_list; } public void setSerial_list(List<String> serial_list) { this.serial_list = serial_list; } public static class AuthorBeanX { /** * user_id : 4814710 * user_name : 姚佳黛 * desc : 喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。 * wb_name : * is_settled : 0 * settled_type : 0 * summary : 学医的见过手术室血肉横飞的文字编辑。 * fans_total : 3931 * web_url : http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt */ private String user_id; private String user_name; private String desc; private String wb_name; private String is_settled; private String settled_type; private String summary; private String fans_total; private String web_url; public String getUser_id() { return user_id; } public void setUser_id(String user_id) { this.user_id = user_id; } public String getUser_name() { return user_name; } public void setUser_name(String user_name) { this.user_name = user_name; } public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } public String getWb_name() { return wb_name; } public void setWb_name(String wb_name) { this.wb_name = wb_name; } public String getIs_settled() { return is_settled; } public void setIs_settled(String is_settled) { this.is_settled = is_settled; } public String getSettled_type() { return settled_type; } public void setSettled_type(String settled_type) { this.settled_type = settled_type; } public String getSummary() { return summary; } public void setSummary(String summary) { this.summary = summary; } public String getFans_total() { return fans_total; } public void setFans_total(String fans_total) { this.fans_total = fans_total; } public String getWeb_url() { return web_url; } public void setWeb_url(String web_url) { this.web_url = web_url; } } public static class AuthorListBeanX { /** * user_id : 4814710 * user_name : 姚佳黛 * desc : 喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。 * wb_name : * is_settled : 0 * settled_type : 0 * summary : 学医的见过手术室血肉横飞的文字编辑。 * fans_total : 3931 * web_url : http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt */ private String user_id; private String user_name; private String desc; private String wb_name; private String is_settled; private String settled_type; private String summary; private String fans_total; private String web_url; public String getUser_id() { return user_id; } public void setUser_id(String user_id) { this.user_id = user_id; } public String getUser_name() { return user_name; } public void setUser_name(String user_name) { this.user_name = user_name; } public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } public String getWb_name() { return wb_name; } public void setWb_name(String wb_name) { this.wb_name = wb_name; } public String getIs_settled() { return is_settled; } public void setIs_settled(String is_settled) { this.is_settled = is_settled; } public String getSettled_type() { return settled_type; } public void setSettled_type(String settled_type) { this.settled_type = settled_type; } public String getSummary() { return summary; } public void setSummary(String summary) { this.summary = summary; } public String getFans_total() { return fans_total; } public void setFans_total(String fans_total) { this.fans_total = fans_total; } public String getWeb_url() { return web_url; } public void setWeb_url(String web_url) { this.web_url = web_url; } } } public static class QuestionBean { /** * question_id : 1893 * question_title : 男人不给女朋友买包就是不爱她吗? * answer_title : * answer_content : 会送礼物的男人,本就是凤毛麟角。 * question_makettime : 2017-10-24 06:00:00 * start_video : * author_list : [{"user_id":"4813463","user_name":"老王子","desc":"作家,广告人。@新老王子","wb_name":"@新老王子","is_settled":"0","settled_type":"0","summary":"作家,广告人。@新老王子","fans_total":"1306","web_url":"http://image.wufazhuce.com/FgegDExkkeP8izCd3fkGKRwoyKiS"}] * asker_list : [{"user_id":"0","user_name":"夜铺盖你","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}] */ private String question_id; private String question_title; private String answer_title; private String answer_content; private String question_makettime; private String start_video; private List<AuthorListBeanXX> author_list; private List<AskerListBean> asker_list; public String getQuestion_id() { return question_id; } public void setQuestion_id(String question_id) { this.question_id = question_id; } public String getQuestion_title() { return question_title; } public void setQuestion_title(String question_title) { this.question_title = question_title; } public String getAnswer_title() { return answer_title; } public void setAnswer_title(String answer_title) { this.answer_title = answer_title; } public String getAnswer_content() { return answer_content; } public void setAnswer_content(String answer_content) { this.answer_content = answer_content; } public String getQuestion_makettime() { return question_makettime; } public void setQuestion_makettime(String question_makettime) { this.question_makettime = question_makettime; } public String getStart_video() { return start_video; } public void setStart_video(String start_video) { this.start_video = start_video; } public List<AuthorListBeanXX> getAuthor_list() { return author_list; } public void setAuthor_list(List<AuthorListBeanXX> author_list) { this.author_list = author_list; } public List<AskerListBean> getAsker_list() { return asker_list; } public void setAsker_list(List<AskerListBean> asker_list) { this.asker_list = asker_list; } public static class AuthorListBeanXX { /** * user_id : 4813463 * user_name : 老王子 * desc : 作家,广告人。@新老王子 * wb_name : @新老王子 * is_settled : 0 * settled_type : 0 * summary : 作家,广告人。@新老王子 * fans_total : 1306 * web_url : http://image.wufazhuce.com/FgegDExkkeP8izCd3fkGKRwoyKiS */ private String user_id; private String user_name; private String desc; private String wb_name; private String is_settled; private String settled_type; private String summary; private String fans_total; private String web_url; public String getUser_id() { return user_id; } public void setUser_id(String user_id) { this.user_id = user_id; } public String getUser_name() { return user_name; } public void setUser_name(String user_name) { this.user_name = user_name; } public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } public String getWb_name() { return wb_name; } public void setWb_name(String wb_name) { this.wb_name = wb_name; } public String getIs_settled() { return is_settled; } public void setIs_settled(String is_settled) { this.is_settled = is_settled; } public String getSettled_type() { return settled_type; } public void setSettled_type(String settled_type) { this.settled_type = settled_type; } public String getSummary() { return summary; } public void setSummary(String summary) { this.summary = summary; } public String getFans_total() { return fans_total; } public void setFans_total(String fans_total) { this.fans_total = fans_total; } public String getWeb_url() { return web_url; } public void setWeb_url(String web_url) { this.web_url = web_url; } } public static class AskerListBean { /** * user_id : 0 * user_name : 夜铺盖你 * web_url : http://image.wufazhuce.com/placeholder-author-avatar.png * summary : * desc : * is_settled : * settled_type : * fans_total : * wb_name : */ private String user_id; private String user_name; private String web_url; private String summary; private String desc; private String is_settled; private String settled_type; private String fans_total; private String wb_name; public String getUser_id() { return user_id; } public void setUser_id(String user_id) { this.user_id = user_id; } public String getUser_name() { return user_name; } public void setUser_name(String user_name) { this.user_name = user_name; } public String getWeb_url() { return web_url; } public void setWeb_url(String web_url) { this.web_url = web_url; } public String getSummary() { return summary; } public void setSummary(String summary) { this.summary = summary; } public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } public String getIs_settled() { return is_settled; } public void setIs_settled(String is_settled) { this.is_settled = is_settled; } public String getSettled_type() { return settled_type; } public void setSettled_type(String settled_type) { this.settled_type = settled_type; } public String getFans_total() { return fans_total; } public void setFans_total(String fans_total) { this.fans_total = fans_total; } public String getWb_name() { return wb_name; } public void setWb_name(String wb_name) { this.wb_name = wb_name; } } } } }Myadapter
package com.example.yuekao_02.adapter; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import com.example.yuekao_02.Beann.DataDataBean; import com.example.yuekao_02.R; import com.example.yuekao_02.util.ImageLoaderUtil; import com.nostra13.universalimageloader.core.ImageLoader; import java.util.List; /** * Created by 崔加俊 on 2017/10/24. */ public class MyAdapter extends BaseAdapter{ Context context; List<DataDataBean.NewslistBean> list; int IMAGE_LEFT = 0; int IMAGE_RIGHT = 1; public MyAdapter(Context context, List<DataDataBean.NewslistBean> list) { this.context = context; this.list = list; } @Override public int getCount() { return list.size(); } @Override public Object getItem(int i) { return list.get(i); } @Override public long getItemId(int i) { return i; } @Override public int getItemViewType(int position) { if (position%2 == 0){ return IMAGE_LEFT; } return IMAGE_RIGHT; } @Override public int getViewTypeCount() { return 2; } @Override public View getView(int i, View view, ViewGroup viewGroup) { if(getItemViewType(i) == IMAGE_LEFT){ ViewHolder holder; if (view == null){ view = View.inflate(context, R.layout.item, null); holder = new ViewHolder(); holder.image_view = (ImageView) view.findViewById(R.id.image_view); holder.text_view = (TextView) view.findViewById(R.id.text_view); view.setTag(holder); }else{ holder = (ViewHolder) view.getTag(); } holder.text_view.setText(list.get(i).getTitle()); ImageLoader.getInstance().displayImage(list.get(i).getPicUrl(), holder.image_view , ImageLoaderUtil.getDefaultOption()); }else if (getItemViewType(i) == IMAGE_RIGHT){ ViewHolder holder; if (view == null){ view = View.inflate(context, R.layout.item_right, null); holder = new ViewHolder(); holder.image_view = (ImageView) view.findViewById(R.id.image_view); holder.text_view = (TextView) view.findViewById(R.id.text_view); view.setTag(holder); }else{ holder = (ViewHolder) view.getTag(); } holder.text_view.setText(list.get(i).getTitle()); ImageLoader.getInstance().displayImage(list.get(i).getPicUrl() , holder.image_view , ImageLoaderUtil.getDefaultOption()); } return view; } class ViewHolder{ ImageView image_view; TextView text_view; } }
zixun.java
package com.example.yuekao_02.fragment; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v4.view.ViewPager; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ScrollView; import com.example.yuekao_02.Beann.DataDataBean; import com.example.yuekao_02.R; import com.example.yuekao_02.adapter.LunBoBean; import com.example.yuekao_02.adapter.Pager1Adapter; import com.example.yuekao_02.adapter.RadioGroupAdapter; import com.example.yuekao_02.inte.JsonCallBack; import com.example.yuekao_02.util.NetDataUtil; import com.example.yuekao_02.view.MyGridView; import com.google.gson.Gson; import com.handmark.pulltorefresh.library.ILoadingLayout; import com.handmark.pulltorefresh.library.PullToRefreshBase; import com.handmark.pulltorefresh.library.PullToRefreshScrollView; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * Created by 崔加俊 on 2017/10/24. */ public class ZiXun extends Fragment{ private PullToRefreshScrollView refreshScrollView; private ViewPager viewPager; private List<DataDataBean.NewslistBean> list = new ArrayList<>();//记录当前展示的所有数据 private int page_num = 1; private RadioGroupAdapter listViewAdapter; private ILoadingLayout startLabels; private List<String> imageUrlList; private Handler handler = new Handler(){ @Override public void handleMessage(Message msg) { if (msg.what == 0){ //显示下一页....拿到当前页+1 viewPager.setCurrentItem(viewPager.getCurrentItem() +1); //再次发送消息 handler.sendEmptyMessageDelayed(0,2000); } } }; private MyGridView listView; @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View view = inflater.inflate(R.layout.zixun_fragment, container, false); refreshScrollView = (PullToRefreshScrollView) view.findViewById(R.id.refresh_scroll_view); viewPager = (ViewPager) view.findViewById(R.id.image_view_pager); listView = (MyGridView) view.findViewById(R.id.scroll_list_view); return view; } @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); //失去焦点 listView.setFocusable(false); //轮播图 lunBoTu(); //listView展示数据 //1.获取网络数据,,,展示在listView上 getDataFromNet(); //2.设置刷新模式 /*设置pullToRefreshListView的刷新模式,BOTH代表支持上拉和下拉,PULL_FROM_END代表上拉,PULL_FROM_START代表下拉 */ refreshScrollView.setMode(PullToRefreshBase.Mode.BOTH); //3.通过getLoadingLayoutProxy 方法来指定上拉和下拉时显示的状态的区别(也就是设置向下拉的时候头部里面显示的文字) //此时这里设置的是下拉刷新的时候显示的文字,所以第一个设置true表示现在是刷新,第二个设置为false startLabels = refreshScrollView.getLoadingLayoutProxy(true, false); startLabels.setPullLabel("下拉刷新"); startLabels.setRefreshingLabel("正在刷新..."); startLabels.setReleaseLabel("放开刷新"); ILoadingLayout endLabels = refreshScrollView.getLoadingLayoutProxy(false, true); endLabels.setPullLabel("上拉刷新"); endLabels.setRefreshingLabel("正在载入..."); endLabels.setReleaseLabel("放开刷新..."); /** * 监听事件 */ refreshScrollView.setOnRefreshListener(new PullToRefreshBase.OnRefreshListener2<ScrollView>() { @Override public void onPullDownToRefresh(PullToRefreshBase<ScrollView> refreshView) { getRefreshData(); } @Override public void onPullUpToRefresh(PullToRefreshBase<ScrollView> refreshView) { page_num = page_num+10; getDataFromNet(); } }); } /** * 轮播图的方法 */ private void lunBoTu() { NetDataUtil.getData("http://v3.wufazhuce.com:8000/api/reading/index/?version=3.5.0&platform=android", getActivity(), new JsonCallBack() { @Override public void getJsonString(String json) { //这个结合记录轮播图的所有地址 imageUrlList = new ArrayList<String>(); //解析数据 Gson gson = new Gson(); LunBoBean lunBoBean = gson.fromJson(json, LunBoBean.class); List<LunBoBean.DataBean.EssayBean> essay = lunBoBean.getData().getEssay(); for (LunBoBean.DataBean.EssayBean essayBean: essay) { //essayBean.getAuthor().get(0).getWeb_url() imageUrlList.add(essayBean.getAuthor().get(0).getWeb_url()); } //此时应该根据图片的路径,加载图片,设置适配器 Pager1Adapter viewPagerAdapter = new Pager1Adapter(getActivity(), imageUrlList); viewPager.setAdapter(viewPagerAdapter); //1.手动可以无限滑动....maxValue....把当前开始展示的位置放在足够大的某个位置 viewPager.setCurrentItem(imageUrlList.size()*100000); //2.自动轮播 handler.sendEmptyMessageDelayed(0,2000); } }); } /** * 下拉刷新获取数据 */ private void getRefreshData() { NetDataUtil.getData("https://api.tianapi.com/wxnew/?key=8d6e3228d25298f13af4fc40ce6c9679&num=10", getActivity(), new JsonCallBack() { @Override public void getJsonString(String json) { //解析 Gson gson = new Gson(); DataDataBean dataDataBean = gson.fromJson(json, DataDataBean.class); //先清空一下数据 list.clear(); //添加到集合的最前边,,,,(0,,,,) list.addAll(0,dataDataBean.getNewslist()); //设置适配器 setAdapter(); //设置适配器之后停止刷新的操作 refreshScrollView.onRefreshComplete(); //可以设置刷新的时间.... startLabels.setLastUpdatedLabel("上次更新时间:"+new SimpleDateFormat("HH:mm").format(new Date(System.currentTimeMillis())));//last最近的,最后一次update修改/更新 } }); } /** * 刚开始进入页面获取网络数据....还可以作为上拉加载获取数据的操作 * * */ private void getDataFromNet() { //第一个参数是接口,第二个上下文,第三个回调json数据 NetDataUtil.getData("https://api.tianapi.com/wxnew/?key=8d6e3228d25298f13af4fc40ce6c9679&num="+page_num, getActivity(), new JsonCallBack() { @Override public void getJsonString(String json) { //解析 Gson gson = new Gson(); DataDataBean dataDataBean = gson.fromJson(json, DataDataBean.class); //往后面添加... list.addAll(dataDataBean.getNewslist()); //设置适配器 setAdapter(); //停止刷新 refreshScrollView.onRefreshComplete(); } }); } /** * 设置适配器的方法 */ private void setAdapter() { if (listViewAdapter == null){ listViewAdapter = new RadioGroupAdapter(getActivity(),list); listView.setAdapter(listViewAdapter); }else { listViewAdapter.notifyDataSetChanged(); } }listviewAdapterpackage com.example.yuekao_02.adapter; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import com.example.yuekao_02.Beann.DataDataBean; import com.example.yuekao_02.R; import com.example.yuekao_02.util.ImageLoaderUtil; import com.nostra13.universalimageloader.core.ImageLoader; import java.util.List; /** * Created by 崔加俊 on 2017/10/24. */ public class ListViewAdapter extends BaseAdapter { Context context; List<DataDataBean.NewslistBean> list; private int TEXT_ONLY = 0; private int IMAGE_TEXT = 1; public ListViewAdapter(Context context, List<DataDataBean.NewslistBean> list) { this.context = context; this.list = list; } @Override public int getCount() { return list.size(); } @Override public Object getItem(int i) { return list.get(i); } @Override public long getItemId(int i) { return i; } @Override public int getViewTypeCount() {//返回有多少种条目的视图 return 2; } @Override public int getItemViewType(int position) {//返回当前条目视图的类型 //根据当前位置是否有图片决定,该条目的类型是什么 if (position%2 == 0){ return IMAGE_TEXT; } return TEXT_ONLY; } @Override public View getView(int i, View view, ViewGroup viewGroup) { if (getItemViewType(i) == TEXT_ONLY){ TextHolder holder; if (view == null){ view = View.inflate(context, R.layout.item_text_layout,null); holder = new TextHolder(); holder.textView = (TextView) view.findViewById(R.id.text_title); view.setTag(holder); }else { holder = (TextHolder) view.getTag(); } holder.textView.setText(list.get(i).getTitle()); }else if (getItemViewType(i) == IMAGE_TEXT){ ImageHolder holder; if (view == null){ view = View.inflate(context, R.layout.item_image_layout,null); holder = new ImageHolder(); holder.textView = (TextView) view.findViewById(R.id.text_title); holder.imageView = (ImageView) view.findViewById(R.id.image_view); view.setTag(holder); }else { holder = (ImageHolder) view.getTag(); } holder.textView.setText(list.get(i).getTitle()); //设置图片的显示 ImageLoader.getInstance().displayImage(list.get(i).getPicUrl(),holder.imageView, ImageLoaderUtil.getDefaultOption()); } return view; } private class TextHolder{ TextView textView; } private class ImageHolder{ TextView textView; ImageView imageView; } }}
LunBoBean
package com.example.yuekao_02.adapter; import java.util.List; /** * Created by 崔加俊 on 2017/10/24. */ public class LunBoBean { /** * res : 0 * data : {"essay":[{"content_id":"2878","hp_title":"直到大地深处","hp_makettime":"2017-10-24 06:00:00","guide_word":"我,只有我,才是真正的光,别想骗我,这种世界,有什么意思?","start_video":"","author":[{"user_id":"4813463","user_name":"老王子","desc":"作家,广告人。@新老王子","wb_name":"@新老王子","is_settled":"0","settled_type":"0","summary":"作家,广告人。@新老王子","fans_total":"1306","web_url":"http://image.wufazhuce.com/FgegDExkkeP8izCd3fkGKRwoyKiS"}],"has_audio":true,"author_list":[{"user_id":"4813463","user_name":"老王子","desc":"作家,广告人。@新老王子","wb_name":"@新老王子","is_settled":"0","settled_type":"0","summary":"作家,广告人。@新老王子","fans_total":"1306","web_url":"http://image.wufazhuce.com/FgegDExkkeP8izCd3fkGKRwoyKiS"}]},{"content_id":"2877","hp_title":"我能想到最浪漫的重逢,就是看到前男友变成秃头","hp_makettime":"2017-10-23 06:00:00","guide_word":"如何优雅地杀死前男/女友?","start_video":"","author":[{"user_id":"7888901","user_name":"青年狒狒","desc":"为了遇见您,我翻山越岭地来了,然后还要翻山越岭地回家去。","wb_name":"@会塔罗的青年狒狒","is_settled":"0","settled_type":"0","summary":"君子珍重其志,而玮其辞焉。","fans_total":"3170","web_url":"http://image.wufazhuce.com/Fkfbe09S4YZTlP9ZwvG0fS2z7TQZ"}],"has_audio":false,"author_list":[{"user_id":"7888901","user_name":"青年狒狒","desc":"为了遇见您,我翻山越岭地来了,然后还要翻山越岭地回家去。","wb_name":"@会塔罗的青年狒狒","is_settled":"0","settled_type":"0","summary":"君子珍重其志,而玮其辞焉。","fans_total":"3170","web_url":"http://image.wufazhuce.com/Fkfbe09S4YZTlP9ZwvG0fS2z7TQZ"}]},{"content_id":"2871","hp_title":"山阴路厨师","hp_makettime":"2017-10-23 06:00:00","guide_word":"他们猜不到那一轮剪影究竟需要花怎样一番人生去酿造,而且转瞬即逝。","start_video":"","author":[{"user_id":"4814667","user_name":"凉炘","desc":"青年作家、「ONE·一个」常驻作者。","wb_name":"@凉炘","is_settled":"0","settled_type":"0","summary":"青年作家、「ONE·一个」常驻作者。","fans_total":"8856","web_url":"http://image.wufazhuce.com/Fgnxy66nFQ7wSQekWMCtsclejWHi"}],"has_audio":true,"author_list":[{"user_id":"4814667","user_name":"凉炘","desc":"青年作家、「ONE·一个」常驻作者。","wb_name":"@凉炘","is_settled":"0","settled_type":"0","summary":"青年作家、「ONE·一个」常驻作者。","fans_total":"8856","web_url":"http://image.wufazhuce.com/Fgnxy66nFQ7wSQekWMCtsclejWHi"}]},{"content_id":"2875","hp_title":"太阳照在苏州河上 ","hp_makettime":"2017-10-22 06:00:00","guide_word":"没有人愿意成为替代品,也没有人甘受他人的摆布。","start_video":"","author":[{"user_id":"7374963","user_name":"单桐兴","desc":"高概念长篇小说《停水男女》即将上市。","wb_name":"@少年单的奇幻漂流","is_settled":"0","settled_type":"0","summary":"青年作家,编剧","fans_total":"1607","web_url":"http://image.wufazhuce.com/FtOIL7BskeYMiIH90UlWcLp50Hhg"}],"has_audio":false,"author_list":[{"user_id":"7374963","user_name":"单桐兴","desc":"高概念长篇小说《停水男女》即将上市。","wb_name":"@少年单的奇幻漂流","is_settled":"0","settled_type":"0","summary":"青年作家,编剧","fans_total":"1607","web_url":"http://image.wufazhuce.com/FtOIL7BskeYMiIH90UlWcLp50Hhg"}]},{"content_id":"2872","hp_title":"我这一辈子瞎混过去了","hp_makettime":"2017-10-22 06:00:00","guide_word":"那团包裹着身前身后的迷雾,总是越来越涨大,真实几不可见。","start_video":"","author":[{"user_id":"7654034","user_name":"黄集伟","desc":"黄集伟,专栏作者,曾有\u201c阅读笔记\u201d系列、\u201c语词笔记\u201d系列、《孤岛访谈录》等闲书出版。","wb_name":"","is_settled":"0","settled_type":"0","summary":"黄集伟,专栏作者。","fans_total":"3828","web_url":"http://image.wufazhuce.com/FvVmWbqlle7jlUCTeozoval9NyBH"}],"has_audio":false,"author_list":[{"user_id":"7654034","user_name":"黄集伟","desc":"黄集伟,专栏作者,曾有\u201c阅读笔记\u201d系列、\u201c语词笔记\u201d系列、《孤岛访谈录》等闲书出版。","wb_name":"","is_settled":"0","settled_type":"0","summary":"黄集伟,专栏作者。","fans_total":"3828","web_url":"http://image.wufazhuce.com/FvVmWbqlle7jlUCTeozoval9NyBH"}]},{"content_id":"2874","hp_title":"爱情阶段论","hp_makettime":"2017-10-21 06:00:00","guide_word":"理解爱情关系跟其他所有人际关系一样,爱情也是两人互动的结果。","start_video":"","author":[{"user_id":"7671727","user_name":"陈雪","desc":"小说《蝴蝶》曾被香港导演麦婉欣改编成同名电影,著有《恋爱课》《台妹时光》《人妻日记》《迷宫中的恋人》等,微信公众号:小说家陈雪(ID:twchenxue)。","wb_name":"","is_settled":"0","settled_type":"0","summary":"作家","fans_total":"3034","web_url":"http://image.wufazhuce.com/Fu6o0fqKHsI_TjdpPX3N2Kc99vNP"}],"has_audio":false,"author_list":[{"user_id":"7671727","user_name":"陈雪","desc":"小说《蝴蝶》曾被香港导演麦婉欣改编成同名电影,著有《恋爱课》《台妹时光》《人妻日记》《迷宫中的恋人》等,微信公众号:小说家陈雪(ID:twchenxue)。","wb_name":"","is_settled":"0","settled_type":"0","summary":"作家","fans_total":"3034","web_url":"http://image.wufazhuce.com/Fu6o0fqKHsI_TjdpPX3N2Kc99vNP"}]},{"content_id":"2869","hp_title":"天使","hp_makettime":"2017-10-21 06:00:00","guide_word":"\u201c人死了以后真的有灵魂吗?\u201d\u201c当然,不然春天如何再次降临。\u201d","start_video":"","author":[{"user_id":"7381968","user_name":"程姬","desc":"电影从业者。","wb_name":"@程姬_","is_settled":"0","settled_type":"0","summary":"电影从业者。","fans_total":"1846","web_url":"http://image.wufazhuce.com/FuppaH0wjw--gmhDoi0I69c7bGP7"}],"has_audio":true,"author_list":[{"user_id":"7381968","user_name":"程姬","desc":"电影从业者。","wb_name":"@程姬_","is_settled":"0","settled_type":"0","summary":"电影从业者。","fans_total":"1846","web_url":"http://image.wufazhuce.com/FuppaH0wjw--gmhDoi0I69c7bGP7"}]},{"content_id":"2868","hp_title":"忧伤萨莉亚","hp_makettime":"2017-10-20 06:00:00","guide_word":"意识到了这个世界运转的正常规则,却只能无动于衷。","start_video":"","author":[{"user_id":"7455011","user_name":"余欣","desc":"男,想当中年作家。","wb_name":"","is_settled":"0","settled_type":"0","summary":"男,想当中年作家。","fans_total":"203","web_url":"http://image.wufazhuce.com/FtOZMXK8nYyZSBQY4PgSmIvg0cMn"}],"has_audio":true,"author_list":[{"user_id":"7455011","user_name":"余欣","desc":"男,想当中年作家。","wb_name":"","is_settled":"0","settled_type":"0","summary":"男,想当中年作家。","fans_total":"203","web_url":"http://image.wufazhuce.com/FtOZMXK8nYyZSBQY4PgSmIvg0cMn"}]},{"content_id":"2867","hp_title":"200万很好啊,但我就想要5000月薪","hp_makettime":"2017-10-19 06:00:00","guide_word":"你以为自己是天才枪手,其实只是炮灰。","start_video":"","author":[{"user_id":"7181466","user_name":"十三妹丁无畏","desc":"菜鸟乐评小编,专业观众。不客观,杂食,偏爱postpunk&newwave。超典型射手,LGBTQ人权平等拥护。\r\n微博:@十三妹丁无畏","wb_name":"@十三妹丁无畏","is_settled":"0","settled_type":"0","summary":"音乐编辑","fans_total":"3071","web_url":"http://image.wufazhuce.com/Fng58eK6AcGwxDjTftvM4_j9DfeB"}],"has_audio":false,"author_list":[{"user_id":"7181466","user_name":"十三妹丁无畏","desc":"菜鸟乐评小编,专业观众。不客观,杂食,偏爱postpunk&newwave。超典型射手,LGBTQ人权平等拥护。\r\n微博:@十三妹丁无畏","wb_name":"@十三妹丁无畏","is_settled":"0","settled_type":"0","summary":"音乐编辑","fans_total":"3071","web_url":"http://image.wufazhuce.com/Fng58eK6AcGwxDjTftvM4_j9DfeB"}]},{"content_id":"2866","hp_title":"去屠宰场谈恋爱好吗?","hp_makettime":"2017-10-19 06:00:00","guide_word":"无论从哪条路走下来,都会跌入相同滑道,相同结局。","start_video":"","author":[{"user_id":"6859004","user_name":"兔草","desc":"生于武汉,现居上海。写小说、评论、剧本等。小说见ONE、豆瓣、《野草》等。","wb_name":"@兔草啊吐槽","is_settled":"0","settled_type":"0","summary":"退役文案,杂耍写手","fans_total":"119","web_url":"http://image.wufazhuce.com/FmIxumvucSMThvBqzjla4dEmFbwL"}],"has_audio":false,"author_list":[{"user_id":"6859004","user_name":"兔草","desc":"生于武汉,现居上海。写小说、评论、剧本等。小说见ONE、豆瓣、《野草》等。","wb_name":"@兔草啊吐槽","is_settled":"0","settled_type":"0","summary":"退役文案,杂耍写手","fans_total":"119","web_url":"http://image.wufazhuce.com/FmIxumvucSMThvBqzjla4dEmFbwL"}]}],"serial":[{"id":"446","serial_id":"50","number":"11","title":"相亲攻略手册(8)·八月,我是瓶中的水(下)","excerpt":"但我真的害怕就这么孤独地走下去,我渴望有个可以共度余生的人。","read_num":"24000","maketime":"2017-10-24 06:00:00","start_video":"","author":{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"},"has_audio":false,"author_list":[{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"}],"serial_list":["430","431","434","435","437","438","444","439","445","441","446"]},{"id":"459","serial_id":"49","number":"12","title":" 我在三十岁的第一年 II · 第十二话","excerpt":"人总归还是人呀,怎么能一个人孤零零在世上?","read_num":"29500","maketime":"2017-10-23 06:00:00","start_video":"","author":{"user_id":"4808838","user_name":"毛利","desc":"毛利,专栏作家。《我在三十岁的第一年》即将上市。","wb_name":"@毛利","is_settled":"0","settled_type":"0","summary":"专栏作家。","fans_total":"8954","web_url":"http://image.wufazhuce.com/Fl3AgUQb4i6WocmORrnhMPkcDkV4"},"has_audio":false,"author_list":[{"user_id":"4808838","user_name":"毛利","desc":"毛利,专栏作家。《我在三十岁的第一年》即将上市。","wb_name":"@毛利","is_settled":"0","settled_type":"0","summary":"专栏作家。","fans_total":"8954","web_url":"http://image.wufazhuce.com/Fl3AgUQb4i6WocmORrnhMPkcDkV4"}],"serial_list":["428","429","433","436","440","442","448","449","450","452","458","459"]},{"id":"441","serial_id":"50","number":"10","title":"相亲攻略手册(8)·八月,我是瓶中的水(上)","excerpt":"命运告诉我,他不会留,我也留不住。","read_num":"41200","maketime":"2017-10-21 06:00:00","start_video":"","author":{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"},"has_audio":false,"author_list":[{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"}],"serial_list":["430","431","434","435","437","438","444","439","445","441","446"]},{"id":"458","serial_id":"49","number":"11","title":"我在三十岁的第一年 II · 第十一话","excerpt":"可怕的不是欺骗,是欺骗后面满墙污垢的人生罢了。","read_num":"44200","maketime":"2017-10-20 06:00:00","start_video":"","author":{"user_id":"4808838","user_name":"毛利","desc":"毛利,专栏作家。《我在三十岁的第一年》即将上市。","wb_name":"@毛利","is_settled":"0","settled_type":"0","summary":"专栏作家。","fans_total":"8954","web_url":"http://image.wufazhuce.com/Fl3AgUQb4i6WocmORrnhMPkcDkV4"},"has_audio":false,"author_list":[{"user_id":"4808838","user_name":"毛利","desc":"毛利,专栏作家。《我在三十岁的第一年》即将上市。","wb_name":"@毛利","is_settled":"0","settled_type":"0","summary":"专栏作家。","fans_total":"8954","web_url":"http://image.wufazhuce.com/Fl3AgUQb4i6WocmORrnhMPkcDkV4"}],"serial_list":["428","429","433","436","440","442","448","449","450","452","458","459"]},{"id":"445","serial_id":"50","number":"9","title":"相亲攻略手册(7)·七月,悲喜交加(下)","excerpt":"我很感谢他最后没有跟我说抱歉,或者跟我说,我是个好姑娘。","read_num":"48000","maketime":"2017-10-19 06:00:00","start_video":"","author":{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"},"has_audio":false,"author_list":[{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"}],"serial_list":["430","431","434","435","437","438","444","439","445","441","446"]},{"id":"452","serial_id":"49","number":"10","title":"我在三十岁的第一年 II · 第十话","excerpt":"人生就是一场大型错位。","read_num":"49200","maketime":"2017-10-18 06:00:00","start_video":"","author":{"user_id":"4808838","user_name":"毛利","desc":"毛利,专栏作家。《我在三十岁的第一年》即将上市。","wb_name":"@毛利","is_settled":"0","settled_type":"0","summary":"专栏作家。","fans_total":"8954","web_url":"http://image.wufazhuce.com/Fl3AgUQb4i6WocmORrnhMPkcDkV4"},"has_audio":false,"author_list":[{"user_id":"4808838","user_name":"毛利","desc":"毛利,专栏作家。《我在三十岁的第一年》即将上市。","wb_name":"@毛利","is_settled":"0","settled_type":"0","summary":"专栏作家。","fans_total":"8954","web_url":"http://image.wufazhuce.com/Fl3AgUQb4i6WocmORrnhMPkcDkV4"}],"serial_list":["428","429","433","436","440","442","448","449","450","452","458","459"]},{"id":"439","serial_id":"50","number":"8","title":"相亲攻略手册(7)·七月,悲喜交加(上)","excerpt":"我想等的人,也不再是你。","read_num":"51600","maketime":"2017-10-17 06:00:00","start_video":"","author":{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"},"has_audio":false,"author_list":[{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"}],"serial_list":["430","431","434","435","437","438","444","439","445","441","446"]},{"id":"450","serial_id":"49","number":"9","title":"我在三十岁的第一年 II · 第九话","excerpt":"如果一个人被迫过着清心寡欲的生活,只要有一个机会,她就会跑向纵情享乐。","read_num":"48300","maketime":"2017-10-16 06:00:00","start_video":"","author":{"user_id":"4808838","user_name":"毛利","desc":"毛利,专栏作家。《我在三十岁的第一年》即将上市。","wb_name":"@毛利","is_settled":"0","settled_type":"0","summary":"专栏作家。","fans_total":"8954","web_url":"http://image.wufazhuce.com/Fl3AgUQb4i6WocmORrnhMPkcDkV4"},"has_audio":false,"author_list":[{"user_id":"4808838","user_name":"毛利","desc":"毛利,专栏作家。《我在三十岁的第一年》即将上市。","wb_name":"@毛利","is_settled":"0","settled_type":"0","summary":"专栏作家。","fans_total":"8954","web_url":"http://image.wufazhuce.com/Fl3AgUQb4i6WocmORrnhMPkcDkV4"}],"serial_list":["428","429","433","436","440","442","448","449","450","452","458","459"]},{"id":"444","serial_id":"50","number":"7","title":"相亲攻略手册(6)·六月,青草盛开(下)","excerpt":"他始终横亘在我的生活里,就像是心头一根温和的刺。","read_num":"49200","maketime":"2017-10-14 06:00:00","start_video":"","author":{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"},"has_audio":false,"author_list":[{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"}],"serial_list":["430","431","434","435","437","438","444","439","445","441","446"]},{"id":"449","serial_id":"49","number":"8","title":"我在三十岁的第一年 II · 第八话","excerpt":"日常生活给再多奇迹,也总是乏味和平庸的结尾最多。","read_num":"48800","maketime":"2017-10-13 06:00:00","start_video":"","author":{"user_id":"4808838","user_name":"毛利","desc":"毛利,专栏作家。《我在三十岁的第一年》即将上市。","wb_name":"@毛利","is_settled":"0","settled_type":"0","summary":"专栏作家。","fans_total":"8954","web_url":"http://image.wufazhuce.com/Fl3AgUQb4i6WocmORrnhMPkcDkV4"},"has_audio":false,"author_list":[{"user_id":"4808838","user_name":"毛利","desc":"毛利,专栏作家。《我在三十岁的第一年》即将上市。","wb_name":"@毛利","is_settled":"0","settled_type":"0","summary":"专栏作家。","fans_total":"8954","web_url":"http://image.wufazhuce.com/Fl3AgUQb4i6WocmORrnhMPkcDkV4"}],"serial_list":["428","429","433","436","440","442","448","449","450","452","458","459"]}],"question":[{"question_id":"1893","question_title":"男人不给女朋友买包就是不爱她吗?","answer_title":"","answer_content":"会送礼物的男人,本就是凤毛麟角。","question_makettime":"2017-10-24 06:00:00","start_video":"","author_list":[{"user_id":"4813463","user_name":"老王子","desc":"作家,广告人。@新老王子","wb_name":"@新老王子","is_settled":"0","settled_type":"0","summary":"作家,广告人。@新老王子","fans_total":"1306","web_url":"http://image.wufazhuce.com/FgegDExkkeP8izCd3fkGKRwoyKiS"}],"asker_list":[{"user_id":"0","user_name":"夜铺盖你","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}]},{"question_id":"1892","question_title":"在将近30岁的年龄你是怎样的心境?","answer_title":"","answer_content":"这个时间里,能把握的事情那么少,一件事都不要怠慢。","question_makettime":"2017-10-23 06:00:00","start_video":"","author_list":[{"user_id":"4814749","user_name":"张怡微","desc":"张怡微,作家。作品《云物如故乡》、《情关西游》等。","wb_name":"@张怡微 ","is_settled":"0","settled_type":"0","summary":"张怡微,作家。","fans_total":"2797","web_url":"http://image.wufazhuce.com/FpFQFQenJh2RsWjdlGb7t6sr-qVs"}],"asker_list":[{"user_id":"0","user_name":"月亮石","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}]},{"question_id":"1890","question_title":"为什么学理科的人大都不懂浪漫?","answer_title":"","answer_content":"如果非要送玫瑰,可以在建军节买嘛。","question_makettime":"2017-10-22 06:00:00","start_video":"","author_list":[{"user_id":"7566818","user_name":"温义飞","desc":"有时也会迷惑,人们爱的究竟是我的美貌还是我的才华。 ","wb_name":"@Blake老实人","is_settled":"0","settled_type":"0","summary":"温义飞,ONE热门回答者。","fans_total":"599","web_url":"http://image.wufazhuce.com/FjN55lHN2vK5VgA5c1c8opFeUrG1"}],"asker_list":[{"user_id":"0","user_name":"nothing","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}]},{"question_id":"1891","question_title":"男人油不油腻谁说了算?","answer_title":"","answer_content":"记住,谁也没有辜负你,并不是生活把你变成这样的。","question_makettime":"2017-10-21 06:00:00","start_video":"","author_list":[{"user_id":"7609609","user_name":"胡不归","desc":"不严肃文学作者","wb_name":"","is_settled":"0","settled_type":"0","summary":"不严肃文学作者","fans_total":"156","web_url":"http://image.wufazhuce.com/FidpPXiSppV_kEZ-pZsDOwYOXKYk"}],"asker_list":[{"user_id":"0","user_name":"理查德椰菜","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}]},{"question_id":"1889","question_title":"为什么每隔一段时间就不想上班?","answer_title":"","answer_content":"倦怠是21世纪的职场感冒。","question_makettime":"2017-10-20 06:00:00","start_video":"","author_list":[{"user_id":"8161929","user_name":"古典","desc":"古典,三百万册畅销书《拆掉思维里的墙》作者,罗辑思维得到专栏\u201c超级个体\u201d主理人。新精英生涯公司创始人。最新作品《跃迁:成为高手的技术》已全面上线。","wb_name":"@古典","is_settled":"0","settled_type":"0","summary":"新精英创始人、全球职业规划师。","fans_total":"726","web_url":"http://image.wufazhuce.com/FliuAySelCaFB--oCJwL1IBG0fVW"}],"asker_list":[{"user_id":"0","user_name":"KK","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}]},{"question_id":"1888","question_title":"我们能为想自杀的人做点什么?","answer_title":"","answer_content":"不要对一个没有双腿的人说奔跑是一件多么轻松的事情。","question_makettime":"2017-10-19 06:00:00","start_video":"","author_list":[{"user_id":"7834279","user_name":"露易莎大能个儿","desc":"你想看到什么?","wb_name":"@露易莎大能个儿","is_settled":"0","settled_type":"0","summary":"朝阳区唯一的精灵。","fans_total":"809","web_url":"http://image.wufazhuce.com/FjREAxQyRS8OCKo9VJ1pmMFWCEKA"}],"asker_list":[{"user_id":"0","user_name":"高高","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}]},{"question_id":"1886","question_title":"受邀参加前任婚礼该怎么办?","answer_title":"","answer_content":"当初是你要分开,分开就分开,现在又要用婚礼,来抢我的钱。","question_makettime":"2017-10-18 06:00:00","start_video":"","author_list":[{"user_id":"0","user_name":"网友","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}],"asker_list":[{"user_id":"0","user_name":"丰博","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}]},{"question_id":"1887","question_title":"为人父母之后心境会有怎样的变化?","answer_title":"","answer_content":"当森林甬道遍布,我也只有祝福。","question_makettime":"2017-10-17 06:00:00","start_video":"","author_list":[{"user_id":"4814673","user_name":"刘墨闻","desc":"设计师,青年作者。@刘墨闻","wb_name":"","is_settled":"0","settled_type":"0","summary":"设计师,青年作者。","fans_total":"2127","web_url":"http://image.wufazhuce.com/FvHffjDa1ORrg83qhajnR_zhwJlg"}],"asker_list":[{"user_id":"0","user_name":"in_Mars","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}]},{"question_id":"1884","question_title":"世界上有会亏钱的老虎机吗?","answer_title":"","answer_content":"所有看似随机的人工结果背后都有迹可循。","question_makettime":"2017-10-16 06:00:00","start_video":"","author_list":[{"user_id":"0","user_name":"温义飞","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}],"asker_list":[{"user_id":"0","user_name":"老李","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}]},{"question_id":"1885","question_title":"智商高的人会缺少人情味儿吗?","answer_title":"","answer_content":"智商高的人会缺少人情味儿吗?","question_makettime":"2017-10-15 06:00:00","start_video":"","author_list":[{"user_id":"8185629","user_name":"行尸走肥肉","desc":"一位拥有三双拖鞋的便衣诗人。","wb_name":"@行尸走肥肉","is_settled":"0","settled_type":"0","summary":"一位拥有三双拖鞋的便衣诗人。","fans_total":"1518","web_url":"http://image.wufazhuce.com/FiE2WkXRL8Vf3k1683CDDgU7VqgM"}],"asker_list":[{"user_id":"0","user_name":"网友","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}]}]} */ private int res; private DataBean data; public int getRes() { return res; } public void setRes(int res) { this.res = res; } public DataBean getData() { return data; } public void setData(DataBean data) { this.data = data; } public static class DataBean { private List<EssayBean> essay; private List<SerialBean> serial; private List<QuestionBean> question; public List<EssayBean> getEssay() { return essay; } public void setEssay(List<EssayBean> essay) { this.essay = essay; } public List<SerialBean> getSerial() { return serial; } public void setSerial(List<SerialBean> serial) { this.serial = serial; } public List<QuestionBean> getQuestion() { return question; } public void setQuestion(List<QuestionBean> question) { this.question = question; } public static class EssayBean { /** * content_id : 2878 * hp_title : 直到大地深处 * hp_makettime : 2017-10-24 06:00:00 * guide_word : 我,只有我,才是真正的光,别想骗我,这种世界,有什么意思? * start_video : * author : [{"user_id":"4813463","user_name":"老王子","desc":"作家,广告人。@新老王子","wb_name":"@新老王子","is_settled":"0","settled_type":"0","summary":"作家,广告人。@新老王子","fans_total":"1306","web_url":"http://image.wufazhuce.com/FgegDExkkeP8izCd3fkGKRwoyKiS"}] * has_audio : true * author_list : [{"user_id":"4813463","user_name":"老王子","desc":"作家,广告人。@新老王子","wb_name":"@新老王子","is_settled":"0","settled_type":"0","summary":"作家,广告人。@新老王子","fans_total":"1306","web_url":"http://image.wufazhuce.com/FgegDExkkeP8izCd3fkGKRwoyKiS"}] */ private String content_id; private String hp_title; private String hp_makettime; private String guide_word; private String start_video; private boolean has_audio; private List<AuthorBean> author; private List<AuthorListBean> author_list; public String getContent_id() { return content_id; } public void setContent_id(String content_id) { this.content_id = content_id; } public String getHp_title() { return hp_title; } public void setHp_title(String hp_title) { this.hp_title = hp_title; } public String getHp_makettime() { return hp_makettime; } public void setHp_makettime(String hp_makettime) { this.hp_makettime = hp_makettime; } public String getGuide_word() { return guide_word; } public void setGuide_word(String guide_word) { this.guide_word = guide_word; } public String getStart_video() { return start_video; } public void setStart_video(String start_video) { this.start_video = start_video; } public boolean isHas_audio() { return has_audio; } public void setHas_audio(boolean has_audio) { this.has_audio = has_audio; } public List<AuthorBean> getAuthor() { return author; } public void setAuthor(List<AuthorBean> author) { this.author = author; } public List<AuthorListBean> getAuthor_list() { return author_list; } public void setAuthor_list(List<AuthorListBean> author_list) { this.author_list = author_list; } public static class AuthorBean { /** * user_id : 4813463 * user_name : 老王子 * desc : 作家,广告人。@新老王子 * wb_name : @新老王子 * is_settled : 0 * settled_type : 0 * summary : 作家,广告人。@新老王子 * fans_total : 1306 * web_url : http://image.wufazhuce.com/FgegDExkkeP8izCd3fkGKRwoyKiS */ private String user_id; private String user_name; private String desc; private String wb_name; private String is_settled; private String settled_type; private String summary; private String fans_total; private String web_url; public String getUser_id() { return user_id; } public void setUser_id(String user_id) { this.user_id = user_id; } public String getUser_name() { return user_name; } public void setUser_name(String user_name) { this.user_name = user_name; } public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } public String getWb_name() { return wb_name; } public void setWb_name(String wb_name) { this.wb_name = wb_name; } public String getIs_settled() { return is_settled; } public void setIs_settled(String is_settled) { this.is_settled = is_settled; } public String getSettled_type() { return settled_type; } public void setSettled_type(String settled_type) { this.settled_type = settled_type; } public String getSummary() { return summary; } public void setSummary(String summary) { this.summary = summary; } public String getFans_total() { return fans_total; } public void setFans_total(String fans_total) { this.fans_total = fans_total; } public String getWeb_url() { return web_url; } public void setWeb_url(String web_url) { this.web_url = web_url; } } public static class AuthorListBean { /** * user_id : 4813463 * user_name : 老王子 * desc : 作家,广告人。@新老王子 * wb_name : @新老王子 * is_settled : 0 * settled_type : 0 * summary : 作家,广告人。@新老王子 * fans_total : 1306 * web_url : http://image.wufazhuce.com/FgegDExkkeP8izCd3fkGKRwoyKiS */ private String user_id; private String user_name; private String desc; private String wb_name; private String is_settled; private String settled_type; private String summary; private String fans_total; private String web_url; public String getUser_id() { return user_id; } public void setUser_id(String user_id) { this.user_id = user_id; } public String getUser_name() { return user_name; } public void setUser_name(String user_name) { this.user_name = user_name; } public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } public String getWb_name() { return wb_name; } public void setWb_name(String wb_name) { this.wb_name = wb_name; } public String getIs_settled() { return is_settled; } public void setIs_settled(String is_settled) { this.is_settled = is_settled; } public String getSettled_type() { return settled_type; } public void setSettled_type(String settled_type) { this.settled_type = settled_type; } public String getSummary() { return summary; } public void setSummary(String summary) { this.summary = summary; } public String getFans_total() { return fans_total; } public void setFans_total(String fans_total) { this.fans_total = fans_total; } public String getWeb_url() { return web_url; } public void setWeb_url(String web_url) { this.web_url = web_url; } } } public static class SerialBean { /** * id : 446 * serial_id : 50 * number : 11 * title : 相亲攻略手册(8)·八月,我是瓶中的水(下) * excerpt : 但我真的害怕就这么孤独地走下去,我渴望有个可以共度余生的人。 * read_num : 24000 * maketime : 2017-10-24 06:00:00 * start_video : * author : {"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"} * has_audio : false * author_list : [{"user_id":"4814710","user_name":"姚佳黛","desc":"喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。","wb_name":"","is_settled":"0","settled_type":"0","summary":"学医的见过手术室血肉横飞的文字编辑。 ","fans_total":"3931","web_url":"http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt"}] * serial_list : ["430","431","434","435","437","438","444","439","445","441","446"] */ private String id; private String serial_id; private String number; private String title; private String excerpt; private String read_num; private String maketime; private String start_video; private AuthorBeanX author; private boolean has_audio; private List<AuthorListBeanX> author_list; private List<String> serial_list; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getSerial_id() { return serial_id; } public void setSerial_id(String serial_id) { this.serial_id = serial_id; } public String getNumber() { return number; } public void setNumber(String number) { this.number = number; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getExcerpt() { return excerpt; } public void setExcerpt(String excerpt) { this.excerpt = excerpt; } public String getRead_num() { return read_num; } public void setRead_num(String read_num) { this.read_num = read_num; } public String getMaketime() { return maketime; } public void setMaketime(String maketime) { this.maketime = maketime; } public String getStart_video() { return start_video; } public void setStart_video(String start_video) { this.start_video = start_video; } public AuthorBeanX getAuthor() { return author; } public void setAuthor(AuthorBeanX author) { this.author = author; } public boolean isHas_audio() { return has_audio; } public void setHas_audio(boolean has_audio) { this.has_audio = has_audio; } public List<AuthorListBeanX> getAuthor_list() { return author_list; } public void setAuthor_list(List<AuthorListBeanX> author_list) { this.author_list = author_list; } public List<String> getSerial_list() { return serial_list; } public void setSerial_list(List<String> serial_list) { this.serial_list = serial_list; } public static class AuthorBeanX { /** * user_id : 4814710 * user_name : 姚佳黛 * desc : 喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。 * wb_name : * is_settled : 0 * settled_type : 0 * summary : 学医的见过手术室血肉横飞的文字编辑。 * fans_total : 3931 * web_url : http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt */ private String user_id; private String user_name; private String desc; private String wb_name; private String is_settled; private String settled_type; private String summary; private String fans_total; private String web_url; public String getUser_id() { return user_id; } public void setUser_id(String user_id) { this.user_id = user_id; } public String getUser_name() { return user_name; } public void setUser_name(String user_name) { this.user_name = user_name; } public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } public String getWb_name() { return wb_name; } public void setWb_name(String wb_name) { this.wb_name = wb_name; } public String getIs_settled() { return is_settled; } public void setIs_settled(String is_settled) { this.is_settled = is_settled; } public String getSettled_type() { return settled_type; } public void setSettled_type(String settled_type) { this.settled_type = settled_type; } public String getSummary() { return summary; } public void setSummary(String summary) { this.summary = summary; } public String getFans_total() { return fans_total; } public void setFans_total(String fans_total) { this.fans_total = fans_total; } public String getWeb_url() { return web_url; } public void setWeb_url(String web_url) { this.web_url = web_url; } } public static class AuthorListBeanX { /** * user_id : 4814710 * user_name : 姚佳黛 * desc : 喜欢码字儿的精分水瓶座菇凉,脑洞和食量一样大。过气网络小说作者,有一个公众号:头上没有草原的茸茸。 * wb_name : * is_settled : 0 * settled_type : 0 * summary : 学医的见过手术室血肉横飞的文字编辑。 * fans_total : 3931 * web_url : http://image.wufazhuce.com/FoREns_Rl0UOQCYzdBuMAxX239Dt */ private String user_id; private String user_name; private String desc; private String wb_name; private String is_settled; private String settled_type; private String summary; private String fans_total; private String web_url; public String getUser_id() { return user_id; } public void setUser_id(String user_id) { this.user_id = user_id; } public String getUser_name() { return user_name; } public void setUser_name(String user_name) { this.user_name = user_name; } public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } public String getWb_name() { return wb_name; } public void setWb_name(String wb_name) { this.wb_name = wb_name; } public String getIs_settled() { return is_settled; } public void setIs_settled(String is_settled) { this.is_settled = is_settled; } public String getSettled_type() { return settled_type; } public void setSettled_type(String settled_type) { this.settled_type = settled_type; } public String getSummary() { return summary; } public void setSummary(String summary) { this.summary = summary; } public String getFans_total() { return fans_total; } public void setFans_total(String fans_total) { this.fans_total = fans_total; } public String getWeb_url() { return web_url; } public void setWeb_url(String web_url) { this.web_url = web_url; } } } public static class QuestionBean { /** * question_id : 1893 * question_title : 男人不给女朋友买包就是不爱她吗? * answer_title : * answer_content : 会送礼物的男人,本就是凤毛麟角。 * question_makettime : 2017-10-24 06:00:00 * start_video : * author_list : [{"user_id":"4813463","user_name":"老王子","desc":"作家,广告人。@新老王子","wb_name":"@新老王子","is_settled":"0","settled_type":"0","summary":"作家,广告人。@新老王子","fans_total":"1306","web_url":"http://image.wufazhuce.com/FgegDExkkeP8izCd3fkGKRwoyKiS"}] * asker_list : [{"user_id":"0","user_name":"夜铺盖你","web_url":"http://image.wufazhuce.com/placeholder-author-avatar.png","summary":"","desc":"","is_settled":"","settled_type":"","fans_total":"","wb_name":""}] */ private String question_id; private String question_title; private String answer_title; private String answer_content; private String question_makettime; private String start_video; private List<AuthorListBeanXX> author_list; private List<AskerListBean> asker_list; public String getQuestion_id() { return question_id; } public void setQuestion_id(String question_id) { this.question_id = question_id; } public String getQuestion_title() { return question_title; } public void setQuestion_title(String question_title) { this.question_title = question_title; } public String getAnswer_title() { return answer_title; } public void setAnswer_title(String answer_title) { this.answer_title = answer_title; } public String getAnswer_content() { return answer_content; } public void setAnswer_content(String answer_content) { this.answer_content = answer_content; } public String getQuestion_makettime() { return question_makettime; } public void setQuestion_makettime(String question_makettime) { this.question_makettime = question_makettime; } public String getStart_video() { return start_video; } public void setStart_video(String start_video) { this.start_video = start_video; } public List<AuthorListBeanXX> getAuthor_list() { return author_list; } public void setAuthor_list(List<AuthorListBeanXX> author_list) { this.author_list = author_list; } public List<AskerListBean> getAsker_list() { return asker_list; } public void setAsker_list(List<AskerListBean> asker_list) { this.asker_list = asker_list; } public static class AuthorListBeanXX { /** * user_id : 4813463 * user_name : 老王子 * desc : 作家,广告人。@新老王子 * wb_name : @新老王子 * is_settled : 0 * settled_type : 0 * summary : 作家,广告人。@新老王子 * fans_total : 1306 * web_url : http://image.wufazhuce.com/FgegDExkkeP8izCd3fkGKRwoyKiS */ private String user_id; private String user_name; private String desc; private String wb_name; private String is_settled; private String settled_type; private String summary; private String fans_total; private String web_url; public String getUser_id() { return user_id; } public void setUser_id(String user_id) { this.user_id = user_id; } public String getUser_name() { return user_name; } public void setUser_name(String user_name) { this.user_name = user_name; } public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } public String getWb_name() { return wb_name; } public void setWb_name(String wb_name) { this.wb_name = wb_name; } public String getIs_settled() { return is_settled; } public void setIs_settled(String is_settled) { this.is_settled = is_settled; } public String getSettled_type() { return settled_type; } public void setSettled_type(String settled_type) { this.settled_type = settled_type; } public String getSummary() { return summary; } public void setSummary(String summary) { this.summary = summary; } public String getFans_total() { return fans_total; } public void setFans_total(String fans_total) { this.fans_total = fans_total; } public String getWeb_url() { return web_url; } public void setWeb_url(String web_url) { this.web_url = web_url; } } public static class AskerListBean { /** * user_id : 0 * user_name : 夜铺盖你 * web_url : http://image.wufazhuce.com/placeholder-author-avatar.png * summary : * desc : * is_settled : * settled_type : * fans_total : * wb_name : */ private String user_id; private String user_name; private String web_url; private String summary; private String desc; private String is_settled; private String settled_type; private String fans_total; private String wb_name; public String getUser_id() { return user_id; } public void setUser_id(String user_id) { this.user_id = user_id; } public String getUser_name() { return user_name; } public void setUser_name(String user_name) { this.user_name = user_name; } public String getWeb_url() { return web_url; } public void setWeb_url(String web_url) { this.web_url = web_url; } public String getSummary() { return summary; } public void setSummary(String summary) { this.summary = summary; } public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } public String getIs_settled() { return is_settled; } public void setIs_settled(String is_settled) { this.is_settled = is_settled; } public String getSettled_type() { return settled_type; } public void setSettled_type(String settled_type) { this.settled_type = settled_type; } public String getFans_total() { return fans_total; } public void setFans_total(String fans_total) { this.fans_total = fans_total; } public String getWb_name() { return wb_name; } public void setWb_name(String wb_name) { this.wb_name = wb_name; } } } } }pager1Adapterpackage com.example.yuekao_02.adapter; import android.content.Context; import android.support.v4.view.PagerAdapter; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import com.example.yuekao_02.util.ImageLoaderUtil; import com.nostra13.universalimageloader.core.ImageLoader; import java.util.List; /** * Created by 崔加俊 on 2017/10/24. */ public class Pager1Adapter extends PagerAdapter{ Context context; List<String> imageUrlList; public Pager1Adapter(Context context, List<String> imageUrlList) { this.context = context; this.imageUrlList = imageUrlList; } @Override public int getCount() { return Integer.MAX_VALUE; } @Override public boolean isViewFromObject(View view, Object object) { return view == object; } @Override public Object instantiateItem(ViewGroup container, int position) { //1.创建imageView...添加到容器中 ImageView imageView = new ImageView(context); imageView.setScaleType(ImageView.ScaleType.FIT_XY); //展示图片 ImageLoader.getInstance().displayImage(imageUrlList.get(position%imageUrlList.size()),imageView, ImageLoaderUtil.getDefaultOption()); //添加 container.addView(imageView); //2.返回当前展示的imageView控件 return imageView; } @Override public void destroyItem(ViewGroup container, int position, Object object) { container.removeView((View) object); } } RadioGroupAdapterViewpagerAdapterpackage com.example.yuekao_02.adapter; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import com.example.yuekao_02.Beann.DataDataBean; import com.example.yuekao_02.R; import com.example.yuekao_02.util.ImageLoaderUtil; import com.nostra13.universalimageloader.core.ImageLoader; import java.util.List; /** * Created by 崔加俊 on 2017/10/25. */ public class RadioGroupAdapter extends BaseAdapter{ Context context; List<DataDataBean.NewslistBean> list; public RadioGroupAdapter(Context context, List<DataDataBean.NewslistBean> list) { this.context = context; this.list = list; } @Override public int getCount() { return list.size(); } @Override public Object getItem(int i) { return list.get(i); } @Override public long getItemId(int i) { return i; } @Override public View getView(int i, View view, ViewGroup viewGroup) { ViewHolder holder; if (view == null){ view = View.inflate(context, R.layout.item_group, null); holder = new ViewHolder(); holder.image_view = (ImageView) view.findViewById(R.id.image_view); holder.text_view = (TextView) view.findViewById(R.id.text_view); view.setTag(holder); }else{ holder = (ViewHolder) view.getTag(); } holder.text_view.setText(list.get(i).getTitle()); ImageLoader.getInstance().displayImage(list.get(i).getPicUrl() , holder.image_view , ImageLoaderUtil.getDefaultOption()); return view; } class ViewHolder{ ImageView image_view; TextView text_view; } }package com.example.yuekao_02.adapter; import android.content.Context; import android.support.v4.view.PagerAdapter; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import java.util.List; /** * Created by 崔加俊 on 2017/10/24. */ public class ViewpagerAdapter extends PagerAdapter{ Context context; List<Integer> list; public ViewpagerAdapter(Context context, List<Integer> list) { this.context = context; this.list = list; } @Override public int getCount() { return list.size(); } @Override public boolean isViewFromObject(View view, Object object) { return view == object; } @Override public Object instantiateItem(ViewGroup container, int position) { ImageView imageView = new ImageView(context); imageView.setImageResource(list.get(position)); imageView.setScaleType(ImageView.ScaleType.FIT_XY); container.addView(imageView); return imageView; } @Override public void destroyItem(ViewGroup container, int position, Object object) { container.removeView((View) object); } }NetDatautilpackage com.example.yuekao_02.util; import android.content.Context; import android.os.AsyncTask; import com.example.yuekao_02.inte.JsonCallBack; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; /** * @author Dash * @date 2017/10/18 * @description: */ public class NetDataUtil { /** * 获取网络数据的方法 * @param path */ public static void getData(final String path, Context context, final JsonCallBack callBack){ if (NetWorkUtil.isConn(context)){ AsyncTask<Void, Void, String> asyncTask = new AsyncTask<Void, Void, String>() { @Override protected String doInBackground(Void... voids) { try { URL url = new URL(path); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setReadTimeout(5000); connection.setConnectTimeout(5000); int responseCode = connection.getResponseCode(); if (responseCode == 200){ InputStream inputStream = connection.getInputStream(); String json = StringUtil.streamToString(inputStream,"utf-8"); return json; } } catch (Exception e) { e.printStackTrace(); } return null; } @Override protected void onPostExecute(String s) { //通过接口把json格式的字符串传递回去.... callBack.getJsonString(s); } }; asyncTask.execute(); }else { NetWorkUtil.showNoNetWorkDlg(context); } } }Networkutilpackage com.example.yuekao_02.util; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.net.ConnectivityManager; import android.net.NetworkInfo; import com.example.yuekao_02.R; /** * @author Dash * @date 2017/9/27 * @description: * * 如果要使用网络状态的判断,需要权限....<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> */ public class NetWorkUtil { /** * 这个方法是判断网络状态是否可用的 * @param context * @return */ public static boolean isConn(Context context){ boolean bisConnFlag=false; //1.获取网络连接的管理对象 ConnectivityManager conManager = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE); //2.通过管理者对象拿到网络的信息 NetworkInfo network = conManager.getActiveNetworkInfo(); if(network!=null){ //3.网络状态是否可用的返回值 bisConnFlag=network.isAvailable(); } return bisConnFlag; } /** * 如果没有网络 弹出dialog对话框,,,是否进入设置网络的页面 * @param context */ public static void showNoNetWorkDlg(final Context context) { AlertDialog.Builder builder = new AlertDialog.Builder(context); builder.setIcon(R.mipmap.ic_launcher) // .setTitle("警告") // .setMessage("当前无网络,是否去设置?").setPositiveButton("设置", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { // 跳转到系统的网络设置界面 Intent intent = null; // 先判断当前系统版本 if(android.os.Build.VERSION.SDK_INT > 10){ // 3.0以上 intent = new Intent(android.provider.Settings.ACTION_WIRELESS_SETTINGS); }else{ intent = new Intent(); intent.setClassName("com.android.settings", "com.android.settings.WirelessSettings"); } context.startActivity(intent); } }).setNegativeButton("取消", null).show(); } }Stringutilpackage com.example.yuekao_02.util; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; /** * @author Dash * @date 2017/10/16 * @description: */ public class StringUtil { /** * 把一个字节流转成字符串 * * @param inputStream * @param charset * @return */ public static String streamToString(InputStream inputStream, String charset) { try { InputStreamReader inputStreamReader = new InputStreamReader(inputStream,charset); BufferedReader bufferedReader = new BufferedReader(inputStreamReader); String s = null; StringBuilder builder = new StringBuilder(); while ((s = bufferedReader.readLine()) != null){ builder.append(s); } bufferedReader.close(); return builder.toString(); } catch (Exception e) { e.printStackTrace(); } return null; } }Mygridviewpackage com.example.yuekao_02.view; import android.content.Context; import android.util.AttributeSet; import android.widget.GridView; /** * Created by 崔加俊 on 2017/10/24. */ public class MyGridView extends GridView { public MyGridView(Context context, AttributeSet attrs) { super(context, attrs); } public MyGridView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); } public MyGridView(Context context) { super(context); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); } }<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>