Skip to content

Commit

Permalink
Merge pull request CatVodTVOfficial#137 from CatVodTVOfficial/dev
Browse files Browse the repository at this point in the history
Fix auto size padding.
  • Loading branch information
lite-cucumber authored Jul 5, 2022
2 parents d908313 + e059699 commit ba435d1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private void initView() {
tvDelTip = findViewById(R.id.tvDelTip);
mGridView = findViewById(R.id.mGridView);
mGridView.setHasFixedSize(true);
mGridView.setLayoutManager(new V7GridLayoutManager(this.mContext, 5));
mGridView.setLayoutManager(new V7GridLayoutManager(this.mContext, isBaseOnWidth() ? 5 : 6));
collectAdapter = new CollectAdapter();
mGridView.setAdapter(collectAdapter);
tvDel.setOnClickListener(new View.OnClickListener() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private void initView() {
mEmptyPlayList = findViewById(R.id.mEmptyPlaylist);
mGridView = findViewById(R.id.mGridView);
mGridView.setHasFixedSize(true);
mGridView.setLayoutManager(new V7GridLayoutManager(this.mContext, 6));
mGridView.setLayoutManager(new V7GridLayoutManager(this.mContext, isBaseOnWidth() ? 6 : 7));
seriesAdapter = new SeriesAdapter();
mGridView.setAdapter(seriesAdapter);
mGridViewFlag = findViewById(R.id.mGridViewFlag);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private void initView() {
tvDelTip = findViewById(R.id.tvDelTip);
mGridView = findViewById(R.id.mGridView);
mGridView.setHasFixedSize(true);
mGridView.setLayoutManager(new V7GridLayoutManager(this.mContext, 5));
mGridView.setLayoutManager(new V7GridLayoutManager(this.mContext, isBaseOnWidth() ? 5 : 6));
historyAdapter = new HistoryAdapter();
mGridView.setAdapter(historyAdapter);
tvDel.setOnClickListener(new View.OnClickListener() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private void initView() {
mGridView.setHasFixedSize(true);
gridAdapter = new GridAdapter();
mGridView.setAdapter(gridAdapter);
mGridView.setLayoutManager(new V7GridLayoutManager(this.mContext, 5));
mGridView.setLayoutManager(new V7GridLayoutManager(this.mContext, isBaseOnWidth() ? 5 : 6));
gridAdapter.setOnLoadMoreListener(new BaseQuickAdapter.RequestLoadMoreListener() {
@Override
public void onLoadMoreRequested() {
Expand Down

0 comments on commit ba435d1

Please sign in to comment.