各位,谢谢你看我的问题(TAT)
我在一个videoPlay应用程序中使用videoPlay,在我的设备上(XiaoMi4,api 23),它是可以的。但是在其他设备(Nexus5 api 22,Nexus6P,api 22)上,它看起来如下:

以下是我的xml:
<SeekBar
android:layout_width="match_parent"
android:layout_height="50dp"
style="@style/MediaController_SeekBar"
android:layout_toRightOf="@+id/video_currentTime"
android:id="@+id/video_seekBar"
android:layout_toLeftOf="@+id/video_totalTime"/>和@style/MediaController_SeekBar:
<style name="MediaController_SeekBar" parent="android:Widget.SeekBar">
<item name="android:progressDrawable">@drawable/scrubber_progress_horizontal_holo_dark</item>
<item name="android:indeterminateDrawable">@drawable/scrubber_progress_horizontal_holo_dark</item>
<item name="android:minHeight">13dip</item>
<item name="android:maxHeight">13dip</item>
<item name="android:thumb">@drawable/scrubber_control_selector_holo</item>
<item name="android:thumbOffset">16dip</item>
<item name="android:paddingLeft">16dip</item>
<item name="android:paddingRight">16dip</item>
</style>这在api< 23设备上是错误的
我尝试使用默认样式,但它不起作用
那么你能帮我吗?非常感谢!
发布于 2016-04-15 05:42:50
尝试在Seekbar上将minHeight和Maxheight设置为某个值。希望这会有帮助
android:maxHeight="40dp"
android:minHeight="40dp"发布于 2016-04-15 06:11:22
我认为你应该全部使用dp而不是dip。
https://stackoverflow.com/questions/36639050
复制相似问题