如何在MediaPlayer中將暫停播放前進按鈕選項移至屏幕中央,但默認情況下會顯示在屏幕底部。如何將硬件密鑰選項移至屏幕中心
在這裏,我使用全屏
XML videoView:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
<VideoView
android:id="@+id/media_video_preview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
/>
</RelativeLayout>
下面我已經更新了我的答案,我曾試圖和得到了這個,請有看看它的解決方案。
[可能是你將需要使用自定義的媒體控制器(http://stackoverflow.com/q/3686729/1777090) – 2014-11-24 08:15:05
讓我嘗試和知道ü – Manoj 2014-11-24 08:20:31
通過mediaController.setPadding(0,0得到它, 0,px); – Manoj 2014-11-24 09:13:04