Replaces mediaplayer drawables

This commit is contained in:
daniel oeh 2012-07-15 20:51:56 +02:00
parent 2e8ed263d8
commit dd3d6f9217
9 changed files with 11 additions and 14 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -32,7 +32,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_centerHorizontal="true" android:layout_centerHorizontal="true"
android:background="@drawable/borderless_button" android:background="@drawable/borderless_button"
android:src="@android:drawable/ic_media_pause" /> android:src="@drawable/av_pause" />
<ImageButton <ImageButton
android:id="@+id/butFF" android:id="@+id/butFF"
@ -42,7 +42,7 @@
android:layout_marginLeft="8dp" android:layout_marginLeft="8dp"
android:layout_toRightOf="@+id/butPlay" android:layout_toRightOf="@+id/butPlay"
android:background="@drawable/borderless_button" android:background="@drawable/borderless_button"
android:src="@android:drawable/ic_media_ff" /> android:src="@drawable/av_fast_forward" />
<ImageButton <ImageButton
android:id="@+id/butRev" android:id="@+id/butRev"
@ -52,8 +52,7 @@
android:layout_marginRight="8dp" android:layout_marginRight="8dp"
android:layout_toLeftOf="@+id/butPlay" android:layout_toLeftOf="@+id/butPlay"
android:background="@drawable/borderless_button" android:background="@drawable/borderless_button"
android:src="@android:drawable/ic_media_rew" /> android:src="@drawable/av_rewind" />
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
@ -74,8 +73,8 @@
android:id="@+id/txtvLength" android:id="@+id/txtvLength"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="@string/position_default_label" /> android:text="@string/position_default_label" />
<SeekBar <SeekBar
@ -87,9 +86,7 @@
android:layout_toLeftOf="@+id/txtvLength" android:layout_toLeftOf="@+id/txtvLength"
android:layout_toRightOf="@+id/txtvPosition" android:layout_toRightOf="@+id/txtvPosition"
android:max="500" /> android:max="500" />
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>
</FrameLayout> </FrameLayout>

View File

@ -24,7 +24,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="0.02" android:layout_weight="0.02"
android:background="@drawable/borderless_button" android:background="@drawable/borderless_button"
android:src="@android:drawable/ic_media_rew" /> android:src="@drawable/av_rewind" />
<View <View
android:layout_width="0.5dp" android:layout_width="0.5dp"
@ -39,7 +39,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="0.14" android:layout_weight="0.14"
android:background="@drawable/borderless_button" android:background="@drawable/borderless_button"
android:src="@android:drawable/ic_media_pause" /> android:src="@drawable/av_pause" />
<View <View
android:layout_width="0.5dp" android:layout_width="0.5dp"
@ -54,7 +54,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="0.02" android:layout_weight="0.02"
android:background="@drawable/borderless_button" android:background="@drawable/borderless_button"
android:src="@android:drawable/ic_media_ff" /> android:src="@drawable/av_fast_forward" />
</LinearLayout> </LinearLayout>
<SeekBar <SeekBar

View File

@ -228,13 +228,13 @@ public class MediaplayerActivity extends SherlockFragmentActivity implements
positionObserver.cancel(true); positionObserver.cancel(true);
positionObserver = null; positionObserver = null;
} }
butPlay.setImageResource(android.R.drawable.ic_media_play); butPlay.setImageResource(R.drawable.av_play);
break; break;
case PLAYING: case PLAYING:
setStatusMsg(R.string.player_playing_msg, View.INVISIBLE); setStatusMsg(R.string.player_playing_msg, View.INVISIBLE);
loadMediaInfo(); loadMediaInfo();
setupPositionObserver(); setupPositionObserver();
butPlay.setImageResource(android.R.drawable.ic_media_pause); butPlay.setImageResource(R.drawable.av_pause);
break; break;
case PREPARING: case PREPARING:
setStatusMsg(R.string.player_preparing_msg, View.VISIBLE); setStatusMsg(R.string.player_preparing_msg, View.VISIBLE);
@ -246,7 +246,7 @@ public class MediaplayerActivity extends SherlockFragmentActivity implements
case PREPARED: case PREPARED:
loadMediaInfo(); loadMediaInfo();
setStatusMsg(R.string.player_ready_msg, View.VISIBLE); setStatusMsg(R.string.player_ready_msg, View.VISIBLE);
butPlay.setImageResource(android.R.drawable.ic_media_play); butPlay.setImageResource(R.drawable.av_play);
break; break;
case SEEKING: case SEEKING:
setStatusMsg(R.string.player_seeking_msg, View.VISIBLE); setStatusMsg(R.string.player_seeking_msg, View.VISIBLE);