From c1d47b1f3a2ef09756486db04bf20630a34040e2 Mon Sep 17 00:00:00 2001 From: Equip de Desenvolupadors de PBE Date: Mon, 17 Dec 2012 02:47:31 +0000 Subject: [PATCH] AƱadidos botones finales, usando los de android por defecto para ahorrar recursos, aun no hacen nada, estoy en ello --- VitamioBundle/res/drawable-hdpi/mediacontroller_ff_left.png | Bin 865 -> 0 bytes VitamioBundle/res/drawable-hdpi/mediacontroller_ff_right.png | Bin 860 -> 0 bytes VitamioBundle/res/layout/mediacontroller.xml | 46 ++++++++++++++++++++++++++++++++++++---------- VitamioBundle/src/io/vov/vitamio/widget/MediaController.java | 5 +++-- 4 files changed, 39 insertions(+), 12 deletions(-) delete mode 100644 VitamioBundle/res/drawable-hdpi/mediacontroller_ff_left.png delete mode 100644 VitamioBundle/res/drawable-hdpi/mediacontroller_ff_right.png diff --git a/VitamioBundle/res/drawable-hdpi/mediacontroller_ff_left.png b/VitamioBundle/res/drawable-hdpi/mediacontroller_ff_left.png deleted file mode 100644 index 389f03f..0000000 Binary files a/VitamioBundle/res/drawable-hdpi/mediacontroller_ff_left.png and /dev/null differ diff --git a/VitamioBundle/res/drawable-hdpi/mediacontroller_ff_right.png b/VitamioBundle/res/drawable-hdpi/mediacontroller_ff_right.png deleted file mode 100644 index 2473406..0000000 Binary files a/VitamioBundle/res/drawable-hdpi/mediacontroller_ff_right.png and /dev/null differ diff --git a/VitamioBundle/res/layout/mediacontroller.xml b/VitamioBundle/res/layout/mediacontroller.xml index 65b08da..0128b2c 100644 --- a/VitamioBundle/res/layout/mediacontroller.xml +++ b/VitamioBundle/res/layout/mediacontroller.xml @@ -40,37 +40,63 @@ + android:src="@android:drawable/ic_media_pause" /> + android:src="@android:drawable/ic_media_rew" /> + android:src="@android:drawable/ic_media_ff" /> + + + + diff --git a/VitamioBundle/src/io/vov/vitamio/widget/MediaController.java b/VitamioBundle/src/io/vov/vitamio/widget/MediaController.java index a695f03..8fc01ee 100644 --- a/VitamioBundle/src/io/vov/vitamio/widget/MediaController.java +++ b/VitamioBundle/src/io/vov/vitamio/widget/MediaController.java @@ -20,6 +20,7 @@ package io.vov.vitamio.widget; import io.vov.utils.Log; import io.vov.utils.StringUtils; import io.vov.vitamio.R; +import android.R.drawable; import android.content.Context; import android.graphics.Rect; import android.media.AudioManager; @@ -468,9 +469,9 @@ public class MediaController extends FrameLayout { return; if (mPlayer.isPlaying()) - mPauseButton.setImageResource(R.drawable.mediacontroller_pause_button); + mPauseButton.setImageResource(drawable.ic_media_pause); else - mPauseButton.setImageResource(R.drawable.mediacontroller_play_button); + mPauseButton.setImageResource(drawable.ic_media_play); } private void doPauseResume() { -- libgit2 0.22.2