From e48d8ecbdc0fec04a1cc91387f5a2d382dcb5729 Mon Sep 17 00:00:00 2001 From: Splitter Date: Mon, 24 Mar 2014 19:33:54 -0400 Subject: [PATCH 01/10] Redesign NowPlaying/Recents & begin cleaning up Redesign NowPlaying/Recents & begin cleaning up layout/theme code --- AndroidManifest.xml | 6 +- res/drawable-hdpi/transparent_black.9.png | Bin 0 -> 170 bytes res/drawable-hdpi/view_more_now.png | Bin 0 -> 371 bytes res/layout/audio_controls.xml | 110 +++--- res/layout/audio_player.xml | 27 +- res/layout/bottom_action_bar.xml | 61 ++- res/layout/context_menu.xml | 12 +- res/layout/custom_action_bar.xml | 47 --- res/layout/gridview_items.xml | 9 +- res/layout/gridview_items_recent.xml | 69 ++++ res/layout/half_and_half.xml | 4 +- res/layout/listview_items.xml | 19 +- res/layout/nowplaying_album_art.xml | 4 +- res/layout/shuffle_all.xml | 2 +- res/layout/tabs.xml | 2 +- res/values/attrs.xml | 36 ++ res/values/colors.xml | 3 + res/values/dimens.xml | 16 +- res/values/strings.xml | 5 +- res/values/styles.xml | 364 +++++++++++++++--- res/values/themes.xml | 45 +++ .../apolloMod/activities/PlayExternal.java | 2 +- .../adapters/list/RecentlyAddedAdapter.java | 8 +- .../ui/fragments/AudioPlayerFragment.java | 63 ++- .../ui/fragments/BottomActionBarFragment.java | 55 ++- .../ui/fragments/base/GridViewFragment.java | 18 +- .../fragments/list/RecentlyAddedFragment.java | 18 +- .../apolloMod/ui/widgets/BottomActionBar.java | 16 +- .../apolloMod/views/ViewHolderGrid.java | 1 - 29 files changed, 736 insertions(+), 286 deletions(-) create mode 100644 res/drawable-hdpi/transparent_black.9.png create mode 100644 res/drawable-hdpi/view_more_now.png delete mode 100644 res/layout/custom_action_bar.xml create mode 100644 res/layout/gridview_items_recent.xml create mode 100644 res/values/attrs.xml create mode 100644 res/values/themes.xml diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 9c6db40..6a81780 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -32,7 +32,7 @@ android:largeHeap="true" android:process=":main" android:taskAffinity="apollo.task.music" - android:theme="@style/ApolloTheme" > + android:theme="@style/ApolloTheme.Light" > @@ -40,7 +40,7 @@ + android:theme="@style/ApolloTheme.Light" > @@ -102,7 +102,7 @@ android:excludeFromRecents="true" android:noHistory="true" android:launchMode="singleTask" - android:theme="@style/Theme.Light.Translucent" + android:theme="@style/Light.Translucent" android:label="@string/app_name" > diff --git a/res/drawable-hdpi/transparent_black.9.png b/res/drawable-hdpi/transparent_black.9.png new file mode 100644 index 0000000000000000000000000000000000000000..90c0762339e0dc4de43bae657377b8f8712b6c6f GIT binary patch literal 170 zcmeAS@N?(olHy`uVBq!ia0vp^+#t-s1|(OmDOUqhY)RhkE)4%caKYZ?lYt_f1s;*b zKvlvZ%*Zfnjs#GUy~NYkmHi&GsHl>rb=KBUppdzzi(`ny<>Z6|EdLiuFdHaoDzHe* zl<;8C38=CY%=&LE_>zSU1SZWn*z&~l)odT>qbjak4DZ*mZOl?>$pad};OXk;vd$@? F2>`%)EBycf literal 0 HcmV?d00001 diff --git a/res/drawable-hdpi/view_more_now.png b/res/drawable-hdpi/view_more_now.png new file mode 100644 index 0000000000000000000000000000000000000000..187c23764b55305fee1ffdefc1825de05c806aeb GIT binary patch literal 371 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpTCwj^(N7l!{JxM1({$v_d#0*}aI z1_o|n5N2eUHAey{$X?><>&kwQSy)_4_R9;0Cb22U5qkc@k8uUmVuIEu7B^iTKk z5#c%ObEcH>oRm+AA=|o>?hCpNj144f8r8BCdU_gjgIM1_P!Nt3f5-3Ze3AF-^_9!~ zCaZXUny>TF;>Mi%Gv$_5Oqvrw$a9j)O}EXx&m5iYeYV4)}RKw)B#ITg6oSuApgpC1;P6c!YjtNrle$0H)G;(NC)m zsLXOmUAyFC=;e%+UM1XrT=`bLF}RUf9&PvHx|M+I17YzUvwX8861aN{yS7*UUMbp_ zCRWmQ`hM8nt1Q3nJm7g>Z+qjG*sKRK*9BjHNwh4T98kl&TvP9{{pCO*VDK<_y85}S Ib4q9e09^l$uK)l5 literal 0 HcmV?d00001 diff --git a/res/layout/audio_controls.xml b/res/layout/audio_controls.xml index cfe0147..ce1865c 100644 --- a/res/layout/audio_controls.xml +++ b/res/layout/audio_controls.xml @@ -1,77 +1,87 @@ - - - - + android:paddingTop="@dimen/audio_player_text_padding_top" + android:paddingLeft="@dimen/audio_player_text_padding_left" > + - + android:id="@+id/audio_player_artist_text" + style="?AudioPlayerArtistAlbumText" + android:text="@string/artist_page_title"/> + android:id="@+id/audio_player_artist" + android:layout_toRightOf="@id/audio_player_artist_text" + style="?AudioPlayerInfoText"/> + + + + + + - + - - - + android:paddingTop="@dimen/audio_player_button_container_padding" > + + style="?AudioPlayerPrevious"/> + style="?AudioPlayerPlay"/> + style="?AudioPlayerNext"/> + + + style="?AudioPlayerShuffle" /> + + + + + + + + + + \ No newline at end of file diff --git a/res/layout/audio_player.xml b/res/layout/audio_player.xml index 13df2bc..2cd426c 100644 --- a/res/layout/audio_player.xml +++ b/res/layout/audio_player.xml @@ -22,27 +22,26 @@ android:id="@+id/visualizerView" android:layout_width="match_parent" android:layout_height="fill_parent" - android:layout_above="@+id/audio_player_text_border" /> - + android:layout_above="@+id/audio_player_nowplaying_text" /> + + + + + android:visibility="gone" + style="?AudioPlayerQueueBG"> + style="?AudioPlayerColorstrip"/> + + style="?AudioPlayerColorstripShadow"/> + diff --git a/res/layout/bottom_action_bar.xml b/res/layout/bottom_action_bar.xml index c3b8a80..a1319d6 100644 --- a/res/layout/bottom_action_bar.xml +++ b/res/layout/bottom_action_bar.xml @@ -2,27 +2,22 @@ + style="?BottomActionBarWrapper"> + style="?BottomActionBar"> + + + + + + android:layout_toRightOf="@+id/bottom_action_bar_album_art" /> + style="?BottomActionBarPrevious"/> + style="?BottomActionBarPlay" /> + style="?BottomActionBarNext"/> + style="?BottomActionBarItem" + android:visibility="gone"/>" diff --git a/res/layout/context_menu.xml b/res/layout/context_menu.xml index 4682936..6c84058 100644 --- a/res/layout/context_menu.xml +++ b/res/layout/context_menu.xml @@ -10,18 +10,10 @@ + style="?ContextMenuLine" /> + style="?ContextMenuArrow"/> diff --git a/res/layout/custom_action_bar.xml b/res/layout/custom_action_bar.xml deleted file mode 100644 index 9389ad5..0000000 --- a/res/layout/custom_action_bar.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - diff --git a/res/layout/gridview_items.xml b/res/layout/gridview_items.xml index ecf8dc3..3ea698e 100644 --- a/res/layout/gridview_items.xml +++ b/res/layout/gridview_items.xml @@ -14,7 +14,7 @@ android:id="@+id/gridview_image" android:layout_width="@dimen/gridview_image_width" android:layout_height="@dimen/gridview_image_height" - android:scaleType="centerCrop" + android:scaleType="matrix" android:background="@drawable/no_art_small"/> - + diff --git a/res/layout/gridview_items_recent.xml b/res/layout/gridview_items_recent.xml new file mode 100644 index 0000000..8f40020 --- /dev/null +++ b/res/layout/gridview_items_recent.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/layout/half_and_half.xml b/res/layout/half_and_half.xml index 2cc6fd3..16b5190 100644 --- a/res/layout/half_and_half.xml +++ b/res/layout/half_and_half.xml @@ -20,14 +20,14 @@ android:id="@+id/half_artist_image" android:layout_width="match_parent" android:layout_height="@dimen/half_and_half_imageheight" - android:scaleType="centerCrop" /> + android:scaleType="matrix" /> + style="?ListviewItemWrapper" > + style="?ListviewItemArt"/> @@ -27,9 +17,9 @@ android:maxLength="29" android:paddingLeft="@dimen/listview_items_padding_left_top" android:paddingRight="@dimen/listview_items_padding_right" - android:paddingTop="@dimen/listview_items_padding_top_bottom" + android:paddingTop="9dp" android:singleLine="true" - android:textSize="@dimen/text_size_medium" /> + android:textSize="@dimen/text_size_small_medium" /> diff --git a/res/layout/nowplaying_album_art.xml b/res/layout/nowplaying_album_art.xml index 5d8661f..fe7c604 100644 --- a/res/layout/nowplaying_album_art.xml +++ b/res/layout/nowplaying_album_art.xml @@ -4,11 +4,11 @@ android:layout_height="match_parent" android:orientation="vertical" > - + android:scaleType="matrix" /> diff --git a/res/layout/shuffle_all.xml b/res/layout/shuffle_all.xml index dc0e35b..acbfe94 100644 --- a/res/layout/shuffle_all.xml +++ b/res/layout/shuffle_all.xml @@ -28,7 +28,7 @@ android:layout_toRightOf="@+id/shuffle_imageview" android:ellipsize="end" android:maxLength="29" - android:text="Shuffle All" + android:text="@string/shuffle_all" android:paddingRight="@dimen/listview_items_padding_right" android:layout_marginTop="14dp" android:layout_marginLeft="31dp" diff --git a/res/layout/tabs.xml b/res/layout/tabs.xml index 67b2c19..bc619dd 100644 --- a/res/layout/tabs.xml +++ b/res/layout/tabs.xml @@ -1,4 +1,4 @@