loopeer / shadow

Deprecated because of the performance not fine. Android custom shadow view, can replace your CardView
1.37k stars 142 forks source link

与gsyvideoplayer冲突 #4

Open appdev opened 7 years ago

appdev commented 7 years ago

与gsyvideoplayer冲突,使用之后gsyvideoplayer不能显示视频画面

ToDou commented 7 years ago

可以啊,我在gsyvideoplayer的demo下activity_detail_player里面加了下可以播放

appdev commented 7 years ago

我添加了能播放但是画面是白的,只有声音。 我换成cardview就正常了

appdev commented 7 years ago

@ToDou 你用的是那个版本的gsyvideoplayer?

appdev commented 7 years ago

这是我的布局,只加了ShadowView 其他没有改动 只有声音没有画面

  <com.loopeer.shadow.ShadowView
        android:id="@+id/shadow_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="12dp"
        android:elevation="10dp"
        android:foreground="?attr/selectableItemBackground"
        android:onClick="onShadowClickTest"
        app:cornerRadius="4dp"
        app:shadowMargin="20dp"
        app:shadowRadius="14dp">

        <com.example.gsyvideoplayer.video.MohuControlVideo
            android:id="@+id/detail_player"
            android:layout_width="match_parent"
            android:layout_height="@dimen/post_media_height"/>
    </com.loopeer.shadow.ShadowView>