문제

I have a situation where I am streaming a video using a standard VideoView in combination with a MediaController object. Everything works as far as playback is concerned, however the appearance of the ProgressBars for when the video is loading have the appearance of an earlier version of android.

I had a similar problem with ProgressBars, but this was solved by changing the style of the progress bar from "Widget.ProgressBar.Horizontal" to "Widget.Holo.ProgressBar.Horizontal"

Is there anything similar for a VideoView?

Currently I have:

The old Android appearance that I don't want

But I would like to have something similar to:

The new appearance which I would like

These screens are from a Nexus 4 running KitKat.

Thanks

도움이 되었습니까?

해결책

You should define a Holo style for the activity in your manifest or make your own extending it. For example:

<activity android:name=".activity.MyPlayerActivity" android:theme="@android:style/Theme.Holo.NoActionBar.Fullscreen" android:screenOrientation="sensorLandscape"/> 
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top