마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

슬라이딩 드로어 안에 슬라이딩 드로어는 어떻게 넣어야할까요?

0 추천

안녕하세요 안드로이드 스튜디오 초보중의 왕 초보입니다!

요즘 안드로이드 프로그래밍 책으로 혼자 독학을 하고있는데 요 근래 슬라이딩 드로어라는걸 배웠습니다.

근데 연습문제에서 슬라이딩 드로어 안에 슬라이딩 드로어를 넣으라고 하는 문제가 나왔는데 영 모르겠습니다 ㅜㅜ 

정말 진심으로 도와주시면 감사하겠습니다 ㅠㅠㅠ 부탁드리겠습니다!

김뚄뚄 (150 포인트) 님이 2017년 9월 13일 질문

1개의 답변

0 추천
 
채택된 답변
오론거 요즘 안쓰는것 같은데요 있는줄도 처음알았어요 ㅎㅎ
<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>
Printf (1,380 포인트) 님이 2017년 9월 14일 답변
김뚄뚄님이 2017년 9월 18일 채택됨
감사합니다~ 너무나도 큰 도움이 되어주셔서!!
...