Note that there are some explanatory texts on larger screens.

plurals
  1. POThe bottom view is getting blocked by the top view
    primarykey
    data
    text
    <p>I have a really annoying problem with fitting two custom views to work together. I'm trying to display these two views in an android activity, but one of them takes the whole viewable space of the activity and the other is placed under it. The first view only uses a small part of the space and the rest is trasparent, but it only works when its width and height is at <code>match_parent</code> so the other view is displayed under it, but it is being blocked from receiving any touch events. here is how they looks like:</p> <p><img src="https://i.stack.imgur.com/FX9ZX.png" alt="1"></p> <p><img src="https://i.stack.imgur.com/zzzDo.png" alt="2"></p> <p>the xml code:</p> <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/background_app" &gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;com.fortysevendeg.android.swipelistview.SwipeListView xmlns:swipe="http://schemas.android.com/apk/res-auto" android:id="@+id/example_lv_list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:listSelector="#00000000" swipe:swipeActionLeft="dismiss" swipe:swipeBackView="@+id/back" swipe:swipeCloseAllItemsWhenMoveList="true" swipe:swipeFrontView="@+id/front" swipe:swipeMode="both" android:focusableInTouchMode="true"/&gt; &lt;/LinearLayout&gt; &lt;com.touchmenotapps.widget.radialmenu.semicircularmenu.SemiCircularRadialMenu android:id="@+id/radial_menu" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="bottom" android:padding="1dip" /&gt; &lt;/FrameLayout&gt; </code></pre> <p>What I'm trying to do is to be able to touch the bottom where the top view is transparent, and be able to touch the top view where it's not transparent. I tried arranging the xml in a different way but it keeps crashing, this is the only way it worked, but this problem appeared.</p> <p>Links to the custom Views:</p> <ul> <li>Radial-Menu-Widget: github.com/strider2023/Radial-Menu-Widget-Android</li> <li>SwipeListView library: github.com/47deg/android-swipelistview</li> <li>SwipeListView sample: github.com/47deg/android-swipelistview-sample</li> </ul> <p>What I'm trying to accomplish here is something similar to <a href="https://play.google.com/store/apps/details?id=com.threebanana.notes&amp;hl=en" rel="nofollow noreferrer">Catch Notes</a> app. If there are other ways, or other libraries you can suggest, it would be much appreciated.</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.
 

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