Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
140 views
Welcome To Ask or Share your Answers For Others

1 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...