home: reflect no music state in tabs
This commit is contained in:
@@ -1,8 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<org.oxycblt.auxio.list.recycler.FastScrollRecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/home_recycler"
|
||||
style="@style/Widget.Auxio.RecyclerView.Grid.WithAdaptiveFab"
|
||||
android:animateLayoutChanges="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:listitem="@layout/item_song" />
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<org.oxycblt.auxio.list.recycler.FastScrollRecyclerView
|
||||
android:id="@+id/home_recycler"
|
||||
style="@style/Widget.Auxio.RecyclerView.Grid.WithAdaptiveFab"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:listitem="@layout/item_song" />
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/home_no_music"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center_horizontal"
|
||||
android:visibility="invisible"
|
||||
android:orientation="vertical"
|
||||
android:padding="@dimen/spacing_medium">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/home_no_music_placeholder"
|
||||
android:layout_width="@dimen/size_icon_huge"
|
||||
android:layout_height="@dimen/size_icon_huge"
|
||||
android:layout_marginBottom="@dimen/spacing_small"
|
||||
android:src="@drawable/ic_song_24"
|
||||
app:tint="?attr/colorOnSurface" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/home_no_music_msg"
|
||||
android:layout_width="256dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/spacing_small"
|
||||
tools:text="@string/lng_no_songs"
|
||||
android:textAlignment="center"
|
||||
android:textAppearance="?attr/textAppearanceBodyLarge" />
|
||||
|
||||
<org.oxycblt.auxio.ui.RippleFixMaterialButton
|
||||
android:id="@+id/home_choose_music_sources"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/lbl_music_sources" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
@@ -87,6 +87,9 @@
|
||||
<action
|
||||
android:id="@+id/report_error"
|
||||
app:destination="@id/error_details_dialog" />
|
||||
<action
|
||||
android:id="@+id/choose_locations"
|
||||
app:destination="@id/music_dirs_dialog" />
|
||||
</fragment>
|
||||
|
||||
<dialog
|
||||
@@ -564,4 +567,10 @@
|
||||
android:name="parcel"
|
||||
app:argType="org.oxycblt.auxio.list.menu.Menu$ForSelection$Parcel" />
|
||||
</dialog>
|
||||
|
||||
<dialog
|
||||
android:id="@+id/music_dirs_dialog"
|
||||
android:name="org.oxycblt.auxio.music.dirs.MusicDirsDialog"
|
||||
android:label="music_dirs_dialog"
|
||||
tools:layout="@layout/dialog_music_dirs" />
|
||||
</navigation>
|
||||
@@ -16,6 +16,7 @@
|
||||
<string name="lbl_observing">Monitoring music library</string>
|
||||
<!-- As in to retry loading music -->
|
||||
<string name="lbl_retry">Retry</string>
|
||||
<string name="lbl_music_sources">Pick folders</string>
|
||||
<!-- As in to show additional information about a music loading error -->
|
||||
<string name="lbl_show_error_info">More</string>
|
||||
<!-- As in grant permission -->
|
||||
@@ -214,6 +215,11 @@
|
||||
Starts Auxio using the previously saved state. If no saved state is available, all songs will be shuffled. Playback will start immediately.
|
||||
\n\nWARNING: Be careful controlling this service, if you close it and then try to use it again, you will probably crash the app.
|
||||
</string>
|
||||
<string name="lng_no_songs">Your songs will show up here once you add some music.</string>
|
||||
<string name="lng_no_albums">Your albums will show up here once you add some music.</string>
|
||||
<string name="lng_no_artists">Your artists will show up here once you add some music.</string>
|
||||
<string name="lng_no_genres">Your genres will show up here once you add some music.</string>
|
||||
<string name="lng_no_playlists">Your playlists will show up here once you add some music.</string>
|
||||
|
||||
<!-- Settings namespace | Settings-related labels -->
|
||||
<eat-comment />
|
||||
|
||||
Reference in New Issue
Block a user