Cleaned up resources and design fixes

This commit is contained in:
Karim Abou Zeid 2015-03-05 16:07:40 +01:00
commit a3e9168dd4
65 changed files with 17 additions and 29 deletions

View file

@ -17,7 +17,7 @@ repositories {
android { android {
compileSdkVersion 21 compileSdkVersion 21
buildToolsVersion "21.1.1" buildToolsVersion "21.1.2"
defaultConfig { defaultConfig {
applicationId "com.kabouzeid.materialmusic" applicationId "com.kabouzeid.materialmusic"

View file

@ -180,7 +180,7 @@ public class AlbumDetailActivity extends AbsFabActivity implements OnMusicRemote
private void setUpObservableListViewParams() { private void setUpObservableListViewParams() {
albumArtViewHeight = getResources().getDimensionPixelSize(R.dimen.header_image_height); albumArtViewHeight = getResources().getDimensionPixelSize(R.dimen.header_image_height);
toolbarColor = Util.resolveColor(this, R.attr.colorPrimary); toolbarColor = getResources().getColor(R.color.materialmusic_default_bar_color);
toolbarHeight = Util.getActionBarSize(this); toolbarHeight = Util.getActionBarSize(this);
titleViewHeight = getResources().getDimensionPixelSize(R.dimen.title_view_height); titleViewHeight = getResources().getDimensionPixelSize(R.dimen.title_view_height);
headerOffset = toolbarHeight; headerOffset = toolbarHeight;

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 399 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 400 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 931 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 477 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 481 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 509 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 737 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 712 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 484 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 531 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 399 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 672 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 717 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 657 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 765 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 790 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View file

@ -1,4 +0,0 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/seekbar_thumb_pressed" android:state_pressed="false"/>
<item android:drawable="@drawable/seekbar_thumb_normal"/>
</selector>

View file

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
<size
android:height="10dp"
android:width="10dp"/>
<solid
android:color="@color/materialmusic_accent_color"/>
<corners
android:radius="18dp"/>
</shape>

View file

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
<size <size
android:height="18dp" android:height="16dp"
android:width="18dp"/> android:width="16dp"/>
<solid <solid
android:color="@color/materialmusic_accent_color"/> android:color="@color/materialmusic_accent_color"/>
</shape> </shape>

View file

@ -100,12 +100,6 @@
android:background="?attr/music_controller_container_color" android:background="?attr/music_controller_container_color"
android:elevation="2dp"> android:elevation="2dp">
<com.melnykov.fab.FloatingActionButton
android:id="@+id/fab"
style="@style/PlayPauseFab"
android:layout_centerInParent="true"
/>
<ImageButton <ImageButton
android:id="@+id/prev_button" android:id="@+id/prev_button"
android:layout_width="72dp" android:layout_width="72dp"
@ -115,7 +109,8 @@
android:background="?round_selector" android:background="?round_selector"
android:padding="22dp" android:padding="22dp"
android:scaleType="fitCenter" android:scaleType="fitCenter"
android:src="@drawable/ic_skip_previous_white_48dp"/> android:src="@drawable/ic_skip_previous_white_48dp"
android:layout_marginRight="-8dp"/>
<ImageButton <ImageButton
android:id="@+id/next_button" android:id="@+id/next_button"
@ -126,7 +121,8 @@
android:background="?round_selector" android:background="?round_selector"
android:padding="22dp" android:padding="22dp"
android:scaleType="fitCenter" android:scaleType="fitCenter"
android:src="@drawable/ic_skip_next_white_48dp"/> android:src="@drawable/ic_skip_next_white_48dp"
android:layout_marginLeft="-8dp"/>
<ImageButton <ImageButton
android:id="@+id/repeat_button" android:id="@+id/repeat_button"
@ -152,6 +148,12 @@
android:scaleType="fitCenter" android:scaleType="fitCenter"
android:src="@drawable/ic_shuffle_grey600_48dp"/> android:src="@drawable/ic_shuffle_grey600_48dp"/>
<com.melnykov.fab.FloatingActionButton
android:id="@+id/fab"
style="@style/PlayPauseFab"
android:layout_centerInParent="true"
/>
</RelativeLayout> </RelativeLayout>
<SeekBar <SeekBar

View file

@ -38,7 +38,7 @@
<string name="audio_focus_denied">We were not able to gain audio focus.</string> <string name="audio_focus_denied">We were not able to gain audio focus.</string>
<string name="title_activity_tag_editor">TagEditorActivity</string> <string name="title_activity_tag_editor">TagEditorActivity</string>
<string name="hello_world">Hello world!</string> <string name="hello_world">Hello world!</string>
<string name="tag_editor">Tag Editor [beta]</string> <string name="tag_editor">Tag Editor</string>
<string name="song">Song</string> <string name="song">Song</string>
<string name="album">Album</string> <string name="album">Album</string>
<string name="artist">Artist</string> <string name="artist">Artist</string>

View file

@ -39,8 +39,8 @@
</style> </style>
<style name="MusicProgressSlider" parent="MusicProgressSliderParent"> <style name="MusicProgressSlider" parent="MusicProgressSliderParent">
<item name="android:progressDrawable">@drawable/seekbar_progress</item> <item name="android:progressDrawable">@drawable/slider_progress</item>
<item name="android:thumb">@drawable/seekbar_thumb</item> <item name="android:thumb">@drawable/slider_thumb</item>
</style> </style>
</resources> </resources>