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