안드로이드 개발 질문/답변
(글 수 45,052)
main.xml, theme_menu.xml 가 있고
main.xml에는 LinearLayout, theme_menu.xml에는 RelativeLayout 이 있습니다...
궁금한게
처음 create시 main.xml의 레이아웃이 화면에 출력됩니다...
setContentView(R.layout.main); 이렇게 띄워주겠죠...
그다음 메뉴 디바이스 버튼을 클릭하면 theme_menu.xml의 RelativeLayout 레이아웃을 main.xml위에 레이어처럼
띄우고 싶습니다...
이런경우 theme_menu.xml의 RelativeLayout 레이아웃을 리소스에서 가져오는 방법을 모르겠네요ㅠㅠ




inflate 이용해서 해결했습니다~~