안녕하세요 안드로이드 스튜디오 초보중의 왕 초보입니다!
요즘 안드로이드 프로그래밍 책으로 혼자 독학을 하고있는데 요 근래 슬라이딩 드로어라는걸 배웠습니다.
근데 연습문제에서 슬라이딩 드로어 안에 슬라이딩 드로어를 넣으라고 하는 문제가 나왔는데 영 모르겠습니다 ㅜㅜ
정말 진심으로 도와주시면 감사하겠습니다 ㅠㅠㅠ 부탁드리겠습니다!
오론거 요즘 안쓰는것 같은데요 있는줄도 처음알았어요 ㅎㅎ
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <SlidingDrawer android:id="@+id/slidingdrawer" android:layout_width="match_parent" android:layout_height="match_parent" android:content="@+id/content" android:handle="@+id/handle" android:orientation="vertical" > <Button android:id="@+id/handle" android:layout_width="match_parent" android:layout_height="50dp" android:text="Drag button1" /> <LinearLayout android:id="@+id/content" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#000000" android:orientation="vertical" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#fff" android:text="Drawer1" /> <SlidingDrawer android:layout_width="match_parent" android:layout_height="match_parent" android:content="@+id/content2" android:handle="@+id/handle2" android:orientation="vertical" > <Button android:id="@+id/handle2" android:layout_width="match_parent" android:layout_height="50dp" android:text="Drag button2" /> <LinearLayout android:id="@+id/content2" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#ff0000" android:orientation="vertical" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#fff" android:text="Drawer2" /> </LinearLayout> </SlidingDrawer> </LinearLayout> </SlidingDrawer> </LinearLayout>