Removed bottom offset from all lists.
This commit is contained in:
parent
b77abacd1f
commit
1d06642747
6 changed files with 4 additions and 14 deletions
|
|
@ -286,7 +286,7 @@ public class AlbumDetailActivity extends AbsSlidingMusicPanelActivity implements
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setUpRecyclerViewPadding() {
|
private void setUpRecyclerViewPadding() {
|
||||||
recyclerView.setPadding(0, albumArtViewHeight + titleViewHeight, 0, getBottomOffset());
|
recyclerView.setPadding(0, albumArtViewHeight + titleViewHeight, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setUpToolBar() {
|
private void setUpToolBar() {
|
||||||
|
|
|
||||||
|
|
@ -226,7 +226,7 @@ public class ArtistDetailActivity extends AbsSlidingMusicPanelActivity implement
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setUpSongListPadding() {
|
private void setUpSongListPadding() {
|
||||||
songListView.setPadding(0, artistImageViewHeight + titleViewHeight, 0, getBottomOffset());
|
songListView.setPadding(0, artistImageViewHeight + titleViewHeight, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setUpAlbumRecyclerView() {
|
private void setUpAlbumRecyclerView() {
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,6 @@ public class PlaylistDetailActivity extends AbsSlidingMusicPanelActivity impleme
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setUpRecyclerView() {
|
private void setUpRecyclerView() {
|
||||||
setUpRecyclerViewPadding();
|
|
||||||
recyclerView.setLayoutManager(new GridLayoutManager(this, 1));
|
recyclerView.setLayoutManager(new GridLayoutManager(this, 1));
|
||||||
if (playlist instanceof AbsSmartPlaylist) {
|
if (playlist instanceof AbsSmartPlaylist) {
|
||||||
adapter = new SmartPlaylistSongAdapter(this, loadSmartPlaylistDataSet(), R.layout.item_list, false, this);
|
adapter = new SmartPlaylistSongAdapter(this, loadSmartPlaylistDataSet(), R.layout.item_list, false, this);
|
||||||
|
|
@ -117,10 +116,6 @@ public class PlaylistDetailActivity extends AbsSlidingMusicPanelActivity impleme
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setUpRecyclerViewPadding() {
|
|
||||||
recyclerView.setPadding(0, 0, 0, getBottomOffset());
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reloadDataSet() {
|
private void reloadDataSet() {
|
||||||
if (playlist instanceof AbsSmartPlaylist) {
|
if (playlist instanceof AbsSmartPlaylist) {
|
||||||
adapter.swapDataSet(loadSmartPlaylistDataSet());
|
adapter.swapDataSet(loadSmartPlaylistDataSet());
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ import android.support.annotation.LayoutRes;
|
||||||
import android.support.annotation.NonNull;
|
import android.support.annotation.NonNull;
|
||||||
import android.support.annotation.Nullable;
|
import android.support.annotation.Nullable;
|
||||||
import android.support.design.widget.FloatingActionButton;
|
import android.support.design.widget.FloatingActionButton;
|
||||||
|
import android.support.v4.content.ContextCompat;
|
||||||
import android.support.v7.widget.CardView;
|
import android.support.v7.widget.CardView;
|
||||||
import android.support.v7.widget.Toolbar;
|
import android.support.v7.widget.Toolbar;
|
||||||
import android.util.TypedValue;
|
import android.util.TypedValue;
|
||||||
|
|
@ -312,7 +313,7 @@ public abstract class AbsSlidingMusicPanelActivity extends AbsMusicServiceActivi
|
||||||
updatePlayPauseDrawableState(false);
|
updatePlayPauseDrawableState(false);
|
||||||
|
|
||||||
miniPlayerPlayPauseButton.setImageDrawable(playPauseDrawable);
|
miniPlayerPlayPauseButton.setImageDrawable(playPauseDrawable);
|
||||||
playerPlayPauseFab.setImageDrawable(getDrawable(R.drawable.ic_keyboard_arrow_up_white_24dp));
|
playerPlayPauseFab.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.ic_keyboard_arrow_up_white_24dp));
|
||||||
setUpPlayerPlayPauseFabTint();
|
setUpPlayerPlayPauseFabTint();
|
||||||
miniPlayerPlayPauseButton.getDrawable().mutate().setColorFilter(ColorUtil.resolveColor(this, android.R.attr.textColorSecondary), PorterDuff.Mode.SRC_IN);
|
miniPlayerPlayPauseButton.getDrawable().mutate().setColorFilter(ColorUtil.resolveColor(this, android.R.attr.textColorSecondary), PorterDuff.Mode.SRC_IN);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,15 +63,10 @@ public abstract class AbsMainActivityRecyclerViewFragment<A extends RecyclerView
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setUpRecyclerView() {
|
private void setUpRecyclerView() {
|
||||||
setUpRecyclerViewPadding();
|
|
||||||
invalidateLayoutManager();
|
invalidateLayoutManager();
|
||||||
invalidateAdapter();
|
invalidateAdapter();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setUpRecyclerViewPadding() {
|
|
||||||
recyclerView.setPadding(0, 0, 0, getMainActivity().getBottomOffset());
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void invalidateAdapter() {
|
protected void invalidateAdapter() {
|
||||||
adapter = createAdapter();
|
adapter = createAdapter();
|
||||||
adapter.registerAdapterDataObserver(new RecyclerView.AdapterDataObserver() {
|
adapter.registerAdapterDataObserver(new RecyclerView.AdapterDataObserver() {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
android:gravity="bottom"
|
android:gravity="bottom"
|
||||||
sothree:umanoDragView="@+id/player_container"
|
sothree:umanoDragView="@+id/player_container"
|
||||||
sothree:umanoPanelHeight="@dimen/mini_player_height"
|
sothree:umanoPanelHeight="@dimen/mini_player_height"
|
||||||
sothree:umanoParalaxOffset="0dp"
|
|
||||||
sothree:umanoShadowHeight="@dimen/card_elevation">
|
sothree:umanoShadowHeight="@dimen/card_elevation">
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue