【【WPF/WAF】使用System.Windows.Interactivity交互事件】教程文章相关的互联网学习教程文章

Fragments,Activity和DrawerLayout组合上的fitsSystemWindows【代码】

问题 活动布局具有一个DrawerLayout和一个FrameLayout(作为Fragment的内容),以及一个LinearLayout(由抽屉打开和关闭).用于内容的片段具有带有fitsSystemWindows标志的FrameLayout和工具栏. 如果我在onCreate()处插入片段,则所有片段均按预期发生,FrameLayout从位置0开始,工具栏从状态栏下面开始.但是在onCreate()之外,相同的代码失败,fitsSystemWindows不适用于FrameLayout. 重要的一点是,我需要在Fragment而不是Activity上使用Too...