add logout button and use default album art in more locations

This commit is contained in:
dkanada 2020-05-04 00:30:16 +09:00
commit 9a20e51bcc
9 changed files with 38 additions and 10 deletions

View file

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/player_album_art_frame"
android:layout_width="match_parent"
android:layout_height="match_parent"
@ -11,13 +12,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
app:srcCompat="@drawable/default_album_art"
tools:ignore="ContentDescription,UnusedAttribute" />
<!--<ImageView-->
<!--android:id="@+id/player_image_background"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="match_parent"-->
<!--android:scaleType="centerCrop"-->
<!--tools:ignore="ContentDescription,UnusedAttribute" />-->
</FrameLayout>

View file

@ -3,6 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_margin="2dp"
android:foreground="?rectSelectorStrong">
@ -23,6 +24,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
app:srcCompat="@drawable/default_album_art"
tools:ignore="ContentDescription" />
</com.kabouzeid.gramophone.views.WidthFitSquareLayout>

View file

@ -41,6 +41,7 @@
android:layout_height="40dp"
android:layout_gravity="center"
android:scaleType="centerCrop"
app:srcCompat="@drawable/default_album_art"
tools:ignore="ContentDescription" />
<TextView

View file

@ -16,9 +16,14 @@
<item
android:id="@+id/nav_about"
android:icon="@drawable/ic_help_white_24dp"
android:icon="@drawable/ic_info_outline_white_24dp"
android:title="@string/action_about" />
<item
android:id="@+id/nav_logout"
android:icon="@drawable/ic_exit_to_app_white_48dp"
android:title="@string/logout" />
</group>
</menu>

View file

@ -195,6 +195,7 @@
<string name="app_widget_small_name">Phonograph - Small</string>
<string name="app_widget_card_name">Phonograph - Card</string>
<string name="login">Login</string>
<string name="logout">Logout</string>
<string name="username">Username</string>
<string name="password">Password</string>
<string name="server">Server</string>