0
나는 슬라이더가 맨 위에서 시작하여 아래로 미끄러지도록하는 동료 회원을 찾았습니다. 슬라이더 뒤에 내용을 추가해야하지만 XML에 넣을 위치가 확실하지 않습니다. 아마 선형 레이아웃을 추가해야하지만 확실하지 않습니다. 화면 가운데에있는 버튼 하나만 추가하면됩니다. 다음 코드에 입력해야한다고 생각합니다.Android XML 레이아웃의 버튼
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" xmlns:ns="http://schemas.android.com/apk/res/it.sephiroth.demo.slider">
<Button
android:id="@+id/button_open"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:text="@string/open"
android:layout_centerInParent="true"
android:visibility="gone" />
<it.sephiroth.demo.slider.widget.MultiDirectionSlidingDrawer
xmlns:my="http://schemas.android.com/apk/res/it.sephiroth.demo.slider"
android:id="@+id/drawer"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
ns:content="@+id/content"
ns:direction="topToBottom"
ns:handle="@+id/handle" >
<include
android:id="@id/content"
layout="@layout/pen_content" />
<ImageView
android:id="@id/handle"
android:layout_width="wrap_content"
android:layout_height="40px"
android:src="@drawable/sliding_drawer_handle_bottom" />
</it.sephiroth.demo.slider.widget.MultiDirectionSlidingDrawer>
</RelativeLayout>
버튼이 서랍 뒤에 있기를 바랍니다. 도움이 될 것입니다!