| | |
| | | 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.viewpagerindicator.MTabPageIndicator; |
| | | import com.hanju.video.app.util.http.BasicTextHttpResponseHandler; |
| | | import com.hanju.video.app.util.http.HttpApiUtil; |
| | |
| | | findViewById(R.id.pager) |
| | | .setVisibility(View.VISIBLE); |
| | | |
| | | Gson gson = new GsonBuilder().setFieldNamingPolicy( |
| | | FieldNamingPolicy.UPPER_CAMEL_CASE) |
| | | .create(); |
| | | List<VideoType> videoType = gson.fromJson( |
| | | |
| | | List<VideoType> videoType = JsonUtil.videoGson.fromJson( |
| | | jsonObject.getJSONObject("Data") |
| | | .getJSONArray("data").toString(), |
| | | new TypeToken<List<VideoType>>() { |