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() {
|
||||
recyclerView.setPadding(0, albumArtViewHeight + titleViewHeight, 0, getBottomOffset());
|
||||
recyclerView.setPadding(0, albumArtViewHeight + titleViewHeight, 0, 0);
|
||||
}
|
||||
|
||||
private void setUpToolBar() {
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ public class ArtistDetailActivity extends AbsSlidingMusicPanelActivity implement
|
|||
}
|
||||
|
||||
private void setUpSongListPadding() {
|
||||
songListView.setPadding(0, artistImageViewHeight + titleViewHeight, 0, getBottomOffset());
|
||||
songListView.setPadding(0, artistImageViewHeight + titleViewHeight, 0, 0);
|
||||
}
|
||||
|
||||
private void setUpAlbumRecyclerView() {
|
||||
|
|
|
|||
|
|
@ -79,7 +79,6 @@ public class PlaylistDetailActivity extends AbsSlidingMusicPanelActivity impleme
|
|||
}
|
||||
|
||||
private void setUpRecyclerView() {
|
||||
setUpRecyclerViewPadding();
|
||||
recyclerView.setLayoutManager(new GridLayoutManager(this, 1));
|
||||
if (playlist instanceof AbsSmartPlaylist) {
|
||||
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() {
|
||||
if (playlist instanceof AbsSmartPlaylist) {
|
||||
adapter.swapDataSet(loadSmartPlaylistDataSet());
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ import android.support.annotation.LayoutRes;
|
|||
import android.support.annotation.NonNull;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.support.design.widget.FloatingActionButton;
|
||||
import android.support.v4.content.ContextCompat;
|
||||
import android.support.v7.widget.CardView;
|
||||
import android.support.v7.widget.Toolbar;
|
||||
import android.util.TypedValue;
|
||||
|
|
@ -312,7 +313,7 @@ public abstract class AbsSlidingMusicPanelActivity extends AbsMusicServiceActivi
|
|||
updatePlayPauseDrawableState(false);
|
||||
|
||||
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();
|
||||
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() {
|
||||
setUpRecyclerViewPadding();
|
||||
invalidateLayoutManager();
|
||||
invalidateAdapter();
|
||||
}
|
||||
|
||||
private void setUpRecyclerViewPadding() {
|
||||
recyclerView.setPadding(0, 0, 0, getMainActivity().getBottomOffset());
|
||||
}
|
||||
|
||||
protected void invalidateAdapter() {
|
||||
adapter = createAdapter();
|
||||
adapter.registerAdapterDataObserver(new RecyclerView.AdapterDataObserver() {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@
|
|||
android:gravity="bottom"
|
||||
sothree:umanoDragView="@+id/player_container"
|
||||
sothree:umanoPanelHeight="@dimen/mini_player_height"
|
||||
sothree:umanoParalaxOffset="0dp"
|
||||
sothree:umanoShadowHeight="@dimen/card_elevation">
|
||||
|
||||
<FrameLayout
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue