Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>As a way I can suggest something like this:</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;View android:id="@+id/top_place_holder" android:layout_width="fill_parent" android:layout_height="100dip" /&gt; &lt;ListView android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_below="@id/top_place_holder" /&gt; &lt;View android:id="@+id/your_top_panel" android:layout_width="fill_parent" android:layout_height="130dip" androis:background="@drawable/your_transparent_semi_circle_here" /&gt; </code></pre> <p></p> <p>So it goes like this: @id/top_place_holder is used to take some space and push the ListView down a bit, so it won't take the whole screen.</p> <p>@id/your_top_panel is a top panel (the one that will hold your transparent semi circle stuff). It must be a little bigger (in height) than place_holder since it'll cover it and a bit of it will be hovering over the list view, so it would look, like the list view is below.</p> <p>To not make the actual list elements hide below the top panel - set a header view for your ListView (ListView.addHeaderView()) that will take some space and won't let the first row of data to hide below the top panel.</p> <p>That above is, of course, a hack way. The best way is to layout components yourself programmatically, so you won't be needing any place_holders and your sizes wouldn't be so hardcoded.</p>
 

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