From a0d79d5751d04a99e2730c0e5dd59457e7188082 Mon Sep 17 00:00:00 2001 From: h4h13 Date: Sat, 8 Dec 2018 09:04:15 +0530 Subject: [PATCH] added lyrics page --- app/src/main/res/drawable/tab_indicator.xml | 7 + .../res/layout-land/fragment_banner_home.xml | 3 +- .../main/res/layout-land/fragment_blur.xml | 6 +- .../main/res/layout-land/fragment_player.xml | 10 +- app/src/main/res/layout-land/pager_item.xml | 4 +- .../res/layout-xlarge-land/fragment_blur.xml | 5 +- .../layout-xlarge-land/fragment_player.xml | 10 +- .../res/layout-xlarge-land/pager_item.xml | 4 +- .../main/res/layout-xlarge/abs_playlists.xml | 22 +++ .../main/res/layout-xlarge/fragment_blur.xml | 6 +- .../res/layout-xlarge/fragment_player.xml | 9 +- app/src/main/res/layout-xlarge/pager_item.xml | 4 +- app/src/main/res/layout/abs_playlists.xml | 22 +++ app/src/main/res/layout/activity_lyrics.xml | 167 ++++++------------ .../layout/activity_main_drawer_layout.xml | 1 + .../main/res/layout/activity_whats_new.xml | 2 +- .../main/res/layout/fragment_album_cover.xml | 24 +-- app/src/main/res/layout/fragment_library.xml | 6 +- ...fragment_lock_screen_playback_controls.xml | 115 +----------- app/src/main/res/layout/fragment_lyrics.xml | 16 ++ .../fragment_main_activity_recycler_view.xml | 5 +- .../res/layout/fragment_main_settings.xml | 49 +++++ app/src/main/res/layout/fragment_player.xml | 5 + app/src/main/res/layout/fragment_synced.xml | 19 ++ .../main/res/layout/home_section_content.xml | 5 + .../res/layout/navigation_drawer_header.xml | 10 +- app/src/main/res/layout/pager_item.xml | 6 +- app/src/main/res/menu/menu_main.xml | 6 +- app/src/main/res/values/strings.xml | 1 + app/src/main/res/values/styles.xml | 7 +- app/src/main/res/xml/pref_advanced.xml | 17 +- 31 files changed, 289 insertions(+), 284 deletions(-) create mode 100644 app/src/main/res/drawable/tab_indicator.xml create mode 100644 app/src/main/res/layout/fragment_lyrics.xml create mode 100644 app/src/main/res/layout/fragment_synced.xml diff --git a/app/src/main/res/drawable/tab_indicator.xml b/app/src/main/res/drawable/tab_indicator.xml new file mode 100644 index 00000000..2f6041ca --- /dev/null +++ b/app/src/main/res/drawable/tab_indicator.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout-land/fragment_banner_home.xml b/app/src/main/res/layout-land/fragment_banner_home.xml index a500740b..c530f5ab 100644 --- a/app/src/main/res/layout-land/fragment_banner_home.xml +++ b/app/src/main/res/layout-land/fragment_banner_home.xml @@ -88,7 +88,8 @@ android:layout_height="match_parent" android:layout_marginStart="64dp" android:layout_marginEnd="64dp" - app:behavior_overlapTop="24dp" + android:elevation="@dimen/card_elevation" + app:behavior_overlapTop="72dp" app:layout_behavior="@string/appbar_scrolling_view_behavior"> + + @@ -69,7 +69,7 @@ tools:background="@color/md_white_1000"> @@ -80,7 +80,6 @@ + + + + + + + + + diff --git a/app/src/main/res/layout-xlarge/fragment_blur.xml b/app/src/main/res/layout-xlarge/fragment_blur.xml index 60a52bb0..b2904b07 100644 --- a/app/src/main/res/layout-xlarge/fragment_blur.xml +++ b/app/src/main/res/layout-xlarge/fragment_blur.xml @@ -39,13 +39,12 @@ android:orientation="vertical"> @@ -58,7 +57,7 @@ tools:background="@color/md_white_1000"> - + + + + + + + + diff --git a/app/src/main/res/layout/activity_lyrics.xml b/app/src/main/res/layout/activity_lyrics.xml index dc307708..1a59b7d8 100644 --- a/app/src/main/res/layout/activity_lyrics.xml +++ b/app/src/main/res/layout/activity_lyrics.xml @@ -1,134 +1,67 @@ - - + android:layout_height="wrap_content"> - - - + android:layout_height="wrap_content" + android:navigationIcon="@drawable/ic_keyboard_arrow_down_black_24dp" + app:contentInsetLeft="0dp" + app:contentInsetStart="0dp" + app:contentInsetStartWithNavigation="0dp" + app:layout_scrollFlags="scroll|enterAlways" + app:subtitleTextAppearance="@style/TextAppearance.AppCompat.Caption" + app:titleMargin="0dp" + app:titleMarginStart="0dp" + app:titleTextAppearance="@style/TextAppearance.AppCompat.Subhead" /> + - - - + android:text="@string/synced_lyrics" /> - + + + - + - - + - - - - - - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_main_drawer_layout.xml b/app/src/main/res/layout/activity_main_drawer_layout.xml index 1ffcc1ee..368a024a 100644 --- a/app/src/main/res/layout/activity_main_drawer_layout.xml +++ b/app/src/main/res/layout/activity_main_drawer_layout.xml @@ -18,6 +18,7 @@ android:fitsSystemWindows="true" android:paddingStart="0dp" android:paddingEnd="8dp" + app:headerLayout="@layout/navigation_drawer_header" app:itemBackground="@drawable/navigation_item" app:itemTextAppearance="@style/NavigationViewTitleTextAppearance" app:menu="@menu/menu_drawer" /> diff --git a/app/src/main/res/layout/activity_whats_new.xml b/app/src/main/res/layout/activity_whats_new.xml index 4503ec8c..65073125 100644 --- a/app/src/main/res/layout/activity_whats_new.xml +++ b/app/src/main/res/layout/activity_whats_new.xml @@ -21,7 +21,7 @@ app:title=""> diff --git a/app/src/main/res/layout/fragment_album_cover.xml b/app/src/main/res/layout/fragment_album_cover.xml index 250f2d07..28967ad9 100644 --- a/app/src/main/res/layout/fragment_album_cover.xml +++ b/app/src/main/res/layout/fragment_album_cover.xml @@ -3,20 +3,19 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" - android:layout_height="match_parent"> + android:layout_height="wrap_content"> - - + android:layout_height="wrap_content"> - + android:layout_height="match_parent" + app:cardCornerRadius="8dp" + app:cardElevation="8dp" + app:cardUseCompatPadding="true"> - - + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_library.xml b/app/src/main/res/layout/fragment_library.xml index 16355f0d..47b315cc 100644 --- a/app/src/main/res/layout/fragment_library.xml +++ b/app/src/main/res/layout/fragment_library.xml @@ -23,7 +23,7 @@ android:layout_height="match_parent"> @@ -57,7 +57,7 @@ + + - - - - - - - - @@ -66,8 +33,7 @@ android:layout_height="wrap_content" android:ellipsize="end" android:gravity="center" - android:paddingEnd="16dp" - android:paddingStart="16dp" + android:padding="16dp" android:singleLine="true" android:textAppearance="@style/TextAppearance.AppCompat.Subhead" tools:text="Title" /> @@ -77,83 +43,20 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" - android:layout_marginTop="8dp" android:ellipsize="marquee" android:focusable="true" android:focusableInTouchMode="true" android:gravity="center" android:marqueeRepeatLimit="marquee_forever" - android:paddingEnd="16dp" android:paddingStart="16dp" + android:paddingEnd="16dp" android:scrollHorizontally="true" android:singleLine="true" android:textAppearance="@style/TextAppearance.AppCompat.Body1" tools:text="Title" /> - + - - - - - - - - - - - - - + diff --git a/app/src/main/res/layout/fragment_lyrics.xml b/app/src/main/res/layout/fragment_lyrics.xml new file mode 100644 index 00000000..610685b3 --- /dev/null +++ b/app/src/main/res/layout/fragment_lyrics.xml @@ -0,0 +1,16 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_main_activity_recycler_view.xml b/app/src/main/res/layout/fragment_main_activity_recycler_view.xml index 7eb06b37..1aecbf23 100644 --- a/app/src/main/res/layout/fragment_main_activity_recycler_view.xml +++ b/app/src/main/res/layout/fragment_main_activity_recycler_view.xml @@ -1,9 +1,9 @@ + android:layout_height="match_parent"> + - diff --git a/app/src/main/res/layout/fragment_main_settings.xml b/app/src/main/res/layout/fragment_main_settings.xml index 31436e21..f65a8a85 100644 --- a/app/src/main/res/layout/fragment_main_settings.xml +++ b/app/src/main/res/layout/fragment_main_settings.xml @@ -12,6 +12,55 @@ android:layout_height="wrap_content" android:orientation="vertical"> + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/home_section_content.xml b/app/src/main/res/layout/home_section_content.xml index 71103b18..6f58e7f7 100644 --- a/app/src/main/res/layout/home_section_content.xml +++ b/app/src/main/res/layout/home_section_content.xml @@ -150,4 +150,9 @@ android:layout_height="wrap_content" android:nestedScrollingEnabled="false" /> + + \ No newline at end of file diff --git a/app/src/main/res/layout/navigation_drawer_header.xml b/app/src/main/res/layout/navigation_drawer_header.xml index 3509b841..79158f7a 100644 --- a/app/src/main/res/layout/navigation_drawer_header.xml +++ b/app/src/main/res/layout/navigation_drawer_header.xml @@ -1,6 +1,8 @@ - + - \ No newline at end of file + + \ No newline at end of file diff --git a/app/src/main/res/layout/pager_item.xml b/app/src/main/res/layout/pager_item.xml index 6d899d9b..25f8719d 100644 --- a/app/src/main/res/layout/pager_item.xml +++ b/app/src/main/res/layout/pager_item.xml @@ -8,7 +8,7 @@ android:orientation="vertical"> diff --git a/app/src/main/res/menu/menu_main.xml b/app/src/main/res/menu/menu_main.xml index cb9fa8a4..5366e228 100644 --- a/app/src/main/res/menu/menu_main.xml +++ b/app/src/main/res/menu/menu_main.xml @@ -2,7 +2,11 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" tools:context=".DrawerActivity"> - + An unexpected error occurred. Please contact the app developer. Copied device info to clipboard. Your account data is only used for authentication. + Snow fall effect diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 96a6ec85..96f0d5ca 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -82,7 +82,8 @@ @@ -106,4 +107,8 @@ diff --git a/app/src/main/res/xml/pref_advanced.xml b/app/src/main/res/xml/pref_advanced.xml index 852b5d9a..43a561bc 100755 --- a/app/src/main/res/xml/pref_advanced.xml +++ b/app/src/main/res/xml/pref_advanced.xml @@ -19,13 +19,18 @@ android:title="@string/pref_keep_pause_on_zero_volume_title" app:iconSpaceReserved="false" /> - + + \ No newline at end of file