Git Product home page Git Product logo

Comments (5)

tcking avatar tcking commented on August 19, 2024

GiraffePlayer.doOnConfigurationChangedwidthPixels的值减去虚拟导航栏的高度试试

from giraffeplayer.

lisnstatic avatar lisnstatic commented on August 19, 2024

还有个问题就是,我有一个自定义view,要放到IjkVideoView上面但是要在返回按键,进度条等布局下面。可是不论我怎么放,只要我的自定义view是match_parent的,返回按键进度条等布局就不显示,外层布局改为FrameLayout也不管用

from giraffeplayer.

tcking avatar tcking commented on August 19, 2024

可以在giraffe_player.xml里加

from giraffeplayer.

lisnstatic avatar lisnstatic commented on August 19, 2024

是在giraffe_player.xml 里加的

<tcking.github.com.giraffeplayer.IjkVideoView
    android:id="@+id/video_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    />
<master.flame.danmaku.ui.widget.DanmakuView
    android:id="@+id/sv_danmaku"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#000"
    android:gravity="center"
    android:visibility="visible"/>


<RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
        android:id="@+id/app_video_replay"
        android:gravity="center"
        android:visibility="gone"
        android:background="#B3616161"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

......
其中danmu那个view是我加的

from giraffeplayer.

tcking avatar tcking commented on August 19, 2024

在手机的debug选项里,打开显示布局边界看看

from giraffeplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.