Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to determine screen position/height of SlidingDrawer handle?
    primarykey
    data
    text
    <p>HI Guys,</p> <p>I'm using SlidingDrawer with a custom SurfaceView and ran into a problem. The problem is that the SurfaceView doesn't know about the remaining view area when the handle of the SlidingDrawer is being drag up and down. </p> <p>Is there a way to set my SurfaceView height base on where the handle current height?</p> <p>Layout XML: </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;and.dev.test.CustomSurfaceView android:id="@+id/flock" android:layout_width="fill_parent" android:layout_height="fill_parent" /&gt; &lt;SlidingDrawer android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/drawer" android:handle="@+id/handle" android:content="@+id/content" android:layout_gravity="fill"&gt; &lt;LinearLayout android:id="@id/handle" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center_horizontal" android:background="#FFFFFFFF"&gt; &lt;TextView android:background="@drawable/bird_blue" android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:id="@id/content" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"&gt; &lt;/LinearLayout&gt; &lt;/SlidingDrawer&gt; &lt;/FrameLayout&gt; </code></pre>
    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.
 

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