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

View File

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

View File

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