| | |
| | | import com.weikou.beibeivideo.ui.video.VideoCloumn1Adapter; |
| | | import com.weikou.beibeivideo.ui.video.VideoColumn2Adapter; |
| | | import com.weikou.beibeivideo.util.DimenUtils; |
| | | import com.weikou.beibeivideo.util.UserUtil; |
| | | import com.weikou.beibeivideo.util.ui.DividerItemDecoration; |
| | | import com.weikou.beibeivideo.R; |
| | | |
| | |
| | | |
| | | type = (VideoType) getArguments().getSerializable("videotype"); |
| | | |
| | | if(getArguments()!=null) |
| | | if (getArguments() != null) |
| | | getArguments().clear(); |
| | | |
| | | mHomeType = getActivity().getIntent().getStringExtra("home_type"); |
| | |
| | | mHomeType = (mHomeType == null ? "" : mHomeType); |
| | | mVideoType = (mVideoType == null ? "" : mVideoType); |
| | | mStarId = (mStarId == null ? "" : mStarId); |
| | | |
| | | |
| | | |
| | | mVideoInfos = new ArrayList<>(); |
| | |
| | | } |
| | | |
| | | private void getVideoList() { |
| | | SharedPreferences preferences = rv_category_video.getContext().getSharedPreferences( |
| | | "user", Context.MODE_PRIVATE); |
| | | String uid = preferences.getString("uid", ""); |
| | | String uid = UserUtil.getUid(rv_category_video.getContext()); |
| | | if (type == null) |
| | | return; |
| | | BeibeiVideoAPI.getVideoList(rv_category_video.getContext(), uid, mStarId, mHomeType, |
| | | type.getId(), String.valueOf(mCurrentPage), category_two + "", type.getCategoryType(), |
| | | new BasicTextHttpResponseHandler() { |
| | |
| | | |
| | | @Override |
| | | public void onClick(View v) { |
| | | TextView tv_new= view.findViewById(R.id.tv_more_new); |
| | | TextView tv_hot= view.findViewById(R.id.tv_more_hot); |
| | | TextView tv_new = view.findViewById(R.id.tv_more_new); |
| | | TextView tv_hot = view.findViewById(R.id.tv_more_hot); |
| | | |
| | | switch (v.getId()) { |
| | | case R.id.iv_videosfragment_download_failure: |