style: even out the top padding and hide one too many dividers

This commit is contained in:
antonio 2023-06-04 12:09:40 +02:00
parent 69e9d5686f
commit 5a2d74a2f4
4 changed files with 4 additions and 2 deletions

View file

@ -454,6 +454,7 @@ public class HomeTabMusicFragment extends Fragment implements ClickCallback {
} else {
if (bind != null) bind.starredArtistsPlaceholder.placeholder.setVisibility(View.GONE);
if (bind != null) bind.starredArtistsSector.setVisibility(!artists.isEmpty() ? View.VISIBLE : View.GONE);
if (bind != null) bind.afterFavoritesDivider.setVisibility(!artists.isEmpty() ? View.VISIBLE : View.GONE);
if (bind != null) bind.starredArtistsRecyclerView.setLayoutManager(new GridLayoutManager(requireContext(), UIUtil.getSpanCount(artists.size(), 5), GridLayoutManager.HORIZONTAL, false));
starredArtistAdapter.setItems(artists);

View file

@ -112,7 +112,7 @@
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:paddingStart="16dp"
android:paddingTop="8dp"
android:paddingTop="16dp"
android:paddingEnd="16dp"
android:text="@string/download_title_section" />

View file

@ -479,6 +479,7 @@
android:visibility="gone" />
<View
android:id="@+id/after_favorites_divider"
style="@style/Divider"
android:layout_marginStart="16dp"
android:layout_marginTop="12dp"

View file

@ -65,7 +65,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="16dp"
android:paddingTop="8dp"
android:paddingTop="16dp"
android:paddingEnd="16dp"
android:text="@string/library_title_music_folder" />