refactor: music discovery section
This commit is contained in:
@@ -136,7 +136,7 @@ public class HomeTabMusicFragment extends Fragment implements ClickCallback {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void init() {
|
private void init() {
|
||||||
bind.musicDiscoveryTextViewRefreshable.setOnLongClickListener(v -> {
|
bind.discoveryTextViewRefreshable.setOnLongClickListener(v -> {
|
||||||
homeViewModel.refreshDiscoverySongSample(getViewLifecycleOwner());
|
homeViewModel.refreshDiscoverySongSample(getViewLifecycleOwner());
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginHorizontal="16dp"
|
android:layout_marginHorizontal="16dp"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="16dp"
|
||||||
android:layout_marginBottom="24dp"
|
android:layout_marginBottom="24dp"
|
||||||
android:visibility="gone">
|
android:visibility="gone">
|
||||||
|
|
||||||
@@ -114,15 +114,15 @@
|
|||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/music_discovery_text_view_refreshable"
|
android:id="@+id/discovery_text_view_refreshable"
|
||||||
style="@style/TitleLarge"
|
style="@style/TitleLarge"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="8dp"
|
android:layout_marginBottom="8dp"
|
||||||
android:paddingStart="16dp"
|
android:paddingStart="16dp"
|
||||||
android:paddingTop="8dp"
|
android:paddingTop="16dp"
|
||||||
android:paddingEnd="16dp"
|
android:paddingEnd="16dp"
|
||||||
android:text="@string/home_title_music_discovery" />
|
android:text="@string/home_title_discovery" />
|
||||||
|
|
||||||
<!-- slideview -->
|
<!-- slideview -->
|
||||||
<androidx.viewpager2.widget.ViewPager2
|
<androidx.viewpager2.widget.ViewPager2
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
<string name="home_title_made_for_you">Made for you</string>
|
<string name="home_title_made_for_you">Made for you</string>
|
||||||
<string name="home_title_most_played">Most played</string>
|
<string name="home_title_most_played">Most played</string>
|
||||||
<string name="home_title_most_played_see_all_button">See all</string>
|
<string name="home_title_most_played_see_all_button">See all</string>
|
||||||
<string name="home_title_music_discovery">Music discovery</string>
|
<string name="home_title_discovery">Discovery</string>
|
||||||
<string name="home_title_recently_added">Recently added</string>
|
<string name="home_title_recently_added">Recently added</string>
|
||||||
<string name="home_title_recently_added_see_all_button">See all</string>
|
<string name="home_title_recently_added_see_all_button">See all</string>
|
||||||
<string name="home_title_starred_albums">★ Starred albums</string>
|
<string name="home_title_starred_albums">★ Starred albums</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user