mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-03 07:53:37 +00:00
Added suffle fab in artist page fragment
This commit is contained in:
@@ -95,8 +95,10 @@ public class ArtistPageFragment extends Fragment {
|
||||
bind.appbar.addOnOffsetChangedListener((appBarLayout, verticalOffset) -> {
|
||||
if ((bind.collapsingToolbar.getHeight() + verticalOffset) < (2 * ViewCompat.getMinimumHeight(bind.collapsingToolbar))) {
|
||||
bind.animToolbar.getNavigationIcon().setColorFilter(getResources().getColor(R.color.titleTextColor, null), PorterDuff.Mode.SRC_ATOP);
|
||||
bind.artistPageFabButton.setVisibility(View.GONE);
|
||||
} else {
|
||||
bind.animToolbar.getNavigationIcon().setColorFilter(getResources().getColor(R.color.white, null), PorterDuff.Mode.SRC_ATOP);
|
||||
bind.artistPageFabButton.setVisibility(View.VISIBLE);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
android:src="@drawable/ic_shuffle"
|
||||
app:backgroundTint="@color/colorAccent"
|
||||
app:tint="@android:color/white"
|
||||
app:fabSize="normal"
|
||||
app:fabSize="mini"
|
||||
app:layout_anchor="@id/app_bar_layout"
|
||||
app:layout_anchorGravity="bottom|end"
|
||||
android:layout_margin="16dp"
|
||||
|
||||
Reference in New Issue
Block a user