안녕하세요,제가 지금 막혀서 하루종일 하고 있는 부분이 있습니다.현재 메인페이지 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" />