yqritc / Android-ScalableVideoView

Android Texture VideoView having a variety of scale types like the scale types of ImageView such as fitCenter, centerCrop, centerTopCrop and more
Apache License 2.0
1.09k stars 223 forks source link

video has gray border around it in Android 6. #8

Closed shumin0809 closed 8 years ago

shumin0809 commented 8 years ago

Hi,

It's a great library :). I recently used it to scale my video. It works perfectly in Android5. However, in android 6, my video always has a gray border. Here's my code:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/white"

<com.yqritc.scalablevideoview.ScalableVideoView android:id="@+id/video_view" android:layout_width="200dp" android:layout_height="100dp" android:layout_centerInParent="true" app:scalableType="centerCrop" />

Since my parent background is white, the gray border of the video looks ugly right now. Could you please help me with that ? Thanks. :)

yqritc commented 8 years ago

@shumin0809 I checked sample project by Android 6. but I could not see gray border. do u see gray border when you run my sample project?