问题是我FrameLayout
的儿童抽奖并且比父母更大,通过查看FrameLayout
的源代码,我仍然不知道原因,如果有人知道的话解决方案或其他有关此问题的详细信息,请告诉我。
对于布局层次结构和快照,请参见下图。
FrameLayout(Parent)
- FrameLayout(Child, that should NOT be larger than its parent)
- View
adb shell dumpsys活动顶部:
android.widget.LinearLayout{ed38a19 V.E...... ......I. 0,0-1080,1920}
android.view.ViewStub{c7b9ade G.E...... ......I. 0,0-0,0 #10203aa android:id/action_mode_bar_stub}
android.widget.FrameLayout{f84c4bf V.E...... ......I. 0,0-1080,1920 #1020002 android:id/content}
com..startup.VideoBaseLayout{d290df4 V.E...... ......I. 0,0-1080,1920}
com..view.PaddingFrameLayout{a4aeddb V.E...... ......I. 0,0-1080,1620}
com..view.PlayerViewSurface{a436351 V.E...C.. ......I. 0,-1179-1080,2799}
android.view.SurfaceView{89a27b6 V.E...... ......I. 0,0-1080,3978}
android.widget.ImageView{e808cb7 G.ED..... ......I. 0,0-0,0}
android.widget.TextView{f3e2b89 V.ED..C.. ......I. 804,48-1032,145}