2015-01-18 5 views

답변

2

DrawerLayout 위에 View을 배치 할 수 있습니까?

예. 다음 레이아웃을 고려해보십시오.

<FrameLayout> 
    <DrawerLayout> 
    <FrameLayout> 
     <!-- the content comes here --> 
    </FrameLayout> 
    <!-- one or two drawer views comes here - displayed over content--> 
    </DrawerLayout> 

    <!-- any views that are here will be painted even over the drawers --> 

</FrameLayout> 
+0

입니다. 어딘가에서 DrawerLayout은 루트 뷰일 필요가 있으며, 실제로 그 경우에는 확인하지 않습니다. thx –

+0

아니요, 그렇지 않습니다. 사실 이것은 오버레이 도구 모음을 수행하는 가장 좋은 방법입니다. –