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

안드로이드 스튜디오 슬라이드 문제

0 추천

안녕하세요,제가 지금 막혀서 하루종일 하고 있는 부분이 있습니다.현재 메인페이지 1에 프래그먼트를 4개를 만들었습니다.그리고 MAIN프래그먼트라는 페이지에 슬라이드를 넣고 있는데 정상적으로 들어갔습니다. 화살표를 누르면 옆에서 오기는 오는데 기존에 있던 UI들과 겹쳐서 나오게 되는데 혹시 어떤것이 문제인지 알려주실수 있을까요 ? 밑에 코드는 ui부분입니다. 코드가 너무 길어 업로드가 되지를 않아 댓글에 적어 두겠습니다.

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MyMainFragment">
    <LinearLayout
        android:id="@+id/slide_layout"
        android:layout_width="200dp"
        android:layout_height="match_parent"
        android:visibility="gone"
        android:layout_gravity="end"
        android:orientation="horizontal"
        >
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:backgroundTint="@color/black"
            android:orientation="vertical"
            >
            <Button
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>
            <Button
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>

        </LinearLayout>

    </LinearLayout>

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    >

    <ImageView
        android:layout_marginTop="5dp"
        android:layout_marginLeft="5dp"
        android:layout_gravity="start"
        android:id="@+id/slide_image"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:src="@drawable/slide"

        />
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:orientation="horizontal">
            <LinearLayout
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:orientation="vertical"
                android:layout_margin="20dp">
                <de.hdodenhof.circleimageview.CircleImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:src="@drawable/image"
                    android:layout_gravity="center"/>
                <TextView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="@string/nickname"
                    android:textSize="15sp"
                    android:textColor="@color/black"
                    android:gravity="center"/>
                <TextView
                    android:layout_width="match_parent"
                    android:layout_height="0dp"
                    android:layout_weight="1"
                    android:textColor="@color/black"
                    android:layout_marginTop="10dp"
                    android:text="한 줄 소개 안녕안녕 나는 셍이야 헬륨가스 먹었더니 요로케 됐징"/>
            </LinearLayout>

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_marginTop="10dp"
            android:layout_weight="1"
            android:orientation="vertical">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="10dp"
                android:orientation="horizontal">

                <EditText
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="3"
                    android:background="@drawable/border"
                    android:ems="5"
                    android:hint="Trender" />

                <TextView
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="10dp"
                    android:layout_weight="1"
                    android:text="@string/input"
                    android:textColor="@color/main_color3" />

 

kei2203 (160 포인트) 님이 2021년 5월 4일 질문

1개의 답변

0 추천
 
채택된 답변
슬라이드라고 하시는게 NavigationDrawer를 말씀하시는 것 같은데, DarwerLayout과 NagationView가 안보이네요. NavigationDrawer가 맞으시면 새프로젝트에서 NavigationDrawer 샘플을 생성해서 생성된 프로젝트의 레이아웃과 비교해 보세요.
spark (226,420 포인트) 님이 2021년 5월 5일 답변
kei2203님이 2021년 5월 7일 채택됨
..ㅠㅠ무슨말인지 잘 모르겠습니ㅏ ㅠ
...