| | |
| | | import com.google.gson.GsonBuilder; |
| | | import com.google.gson.reflect.TypeToken; |
| | | import com.hanju.video.app.entity.recommend.HomeSpecial; |
| | | import com.hanju.video.app.util.JsonUtil; |
| | | import com.hanju.video.app.util.UserUtil; |
| | | import com.umeng.analytics.MobclickAgent; |
| | | import com.hanju.video.app.util.http.BasicTextHttpResponseHandler; |
| | |
| | | @Override |
| | | public void onResume() { |
| | | super.onResume(); |
| | | MobclickAgent.onPageStart("分类详情页"); |
| | | } |
| | | |
| | | @Override |
| | | public void onPause() { |
| | | super.onPause(); |
| | | MobclickAgent.onPageEnd("分类详情页"); |
| | | } |
| | | |
| | | @Override |
| | |
| | | throws Exception { |
| | | if (jsonObject.getBoolean("IsPost")) { |
| | | iv_download_failure.setVisibility(View.GONE); |
| | | Gson gson = new GsonBuilder().setFieldNamingPolicy( |
| | | FieldNamingPolicy.UPPER_CAMEL_CASE) |
| | | .create(); |
| | | List<VideoInfo> videoInfos = gson.fromJson( |
| | | |
| | | List<VideoInfo> videoInfos = JsonUtil.videoGson.fromJson( |
| | | jsonObject.getJSONObject("Data") |
| | | .getJSONArray("data").toString(), |
| | | new TypeToken<List<VideoInfo>>() { |
| | |
| | | throws Exception { |
| | | if (jsonObject.getBoolean("IsPost")) { |
| | | iv_download_failure.setVisibility(View.GONE); |
| | | Gson gson = new GsonBuilder().setFieldNamingPolicy( |
| | | FieldNamingPolicy.UPPER_CAMEL_CASE) |
| | | .create(); |
| | | |
| | | |
| | | JSONObject data = jsonObject.getJSONObject("Data"); |
| | | |
| | |
| | | else |
| | | adapter.initRecyclerViewDisplayWidthColumn3(rv_category_video); |
| | | } |
| | | List<VideoInfo> videoInfos = gson.fromJson( |
| | | List<VideoInfo> videoInfos = JsonUtil.videoGson.fromJson( |
| | | data.getJSONArray("list").toString(), |
| | | new TypeToken<List<VideoInfo>>() { |
| | | }.getType()); |