Note that there are some explanatory texts on larger screens.

plurals
  1. POButton in Android XML Layout
    primarykey
    data
    text
    <p>I'm working with a package some fellow members found for me that allows a slider to start at the top and slide to the bottom. I need to add content behind the slider, but I'm unsure of where to put it in the XML. Maybe I have to add a linear layout, but I'm not sure. I just need to add one button that sits in the very center of the screen. I think it needs to be put in the following code:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;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"&gt; &lt;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" /&gt; &lt;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" &gt; &lt;include android:id="@id/content" layout="@layout/pen_content" /&gt; &lt;ImageView android:id="@id/handle" android:layout_width="wrap_content" android:layout_height="40px" android:src="@drawable/sliding_drawer_handle_bottom" /&gt; &lt;/it.sephiroth.demo.slider.widget.MultiDirectionSlidingDrawer&gt; &lt;/RelativeLayout&gt; </code></pre> <p>I'd also like for the button to be behind the drawer. Any help would be great! </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload