Make drawerlayout inside fragment full screen height

白昼怎懂夜的黑 提交于 2019-12-13 10:25:25

问题


I have an activity A which consists of fragments B,c etc. In each of the fragments I have a drawerlayout which has a fragment. The activity A has a toolbar. The problem is that since drawerlayout is inside the fragment, it's drawn below the toolbar and looks very small in height. The data I am consuming in my drawerlayout fragment is available in fragments B,c. So is there any way to make drawerlayout full height while keeping it inside fragment B,c? The code I am using to add fragments is basic so I am not sharing it here.


回答1:


So is there any way to make drawerlayout full height while keeping it inside fragment B,c?

No. Your fragment will take as much space (width/height) as the content view it has been added on, it cannot be bigger than that View.



来源:https://stackoverflow.com/questions/43767428/make-drawerlayout-inside-fragment-full-screen-height

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!