Искам да имам плъзгащо се чекмедже, което да се показва в долната част на моя изглед, но в момента не се показва. Също така се опитах да използвам линейно оформление, тъй като коренът с изгледа за превъртане има тегло 1, но това накара изгледа за превъртане и неговото съдържание да не се показват. Някакви идеи?
Моят изглед:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ScrollView
android:id="@+id/scrollLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:context=".AddScheduleItemActivity" >
.
.
.
</LinearLayout>
</ScrollView>
<SlidingDrawer
android:id="@+id/slidingDrawer1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/scrollLayout"
android:content="@+id/content"
android:handle="@+id/handle" >
<Button
android:id="@+id/handle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Handle" />
<LinearLayout
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<Button
android:id="@+id/hadsfndle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="sdf" />
</LinearLayout>
</SlidingDrawer>
Thanks, Nathan
На снимката искам синьото да е изгледът за превъртане и съдържанието, а зеленото да е дръжката на плъзгача.
Опитах да следвам някои други предложения и стигнах до това, което все още не работи. Съдържанието на изгледа за превъртане се показва добре, но плъзгачът не се показва. Нуждаете се от още предложения! Благодаря!
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="bottom"
android:gravity="bottom"
android:orientation="vertical" >
<ScrollView
android:id="@+id/scrollLayout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
.
.
.
</RelativeLayout>
</ScrollView>
<SlidingDrawer
android:id="@+id/slidingDrawer1"
android:layout_width="match_parent"
android:layout_height="50dip"
android:layout_alignParentBottom="true"
android:layout_below="@+id/scrollLayout"
android:content="@+id/content"
android:handle="@+id/handle"
android:orientation="vertical" >
<Button
android:id="@+id/handle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Handle" />
<LinearLayout
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<Button
android:id="@+id/hadsfndle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="sdf" />
</LinearLayout>
</SlidingDrawer>
</RelativeLayout>
Е, изглежда, че плъзгащото се чекмедже вече не се поддържа, така че предполагам, че ще потърся алтернатива :(