Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is an example but not the solution. In this example I've made a custom scrollview which returns false when scrolled in the x-direction (indicating that the event haven't been handled and should be passed on to the next view):</p> <pre><code>public class CustomScrollView extends ScrollView { private GestureDetector mGestureDetector; View.OnTouchListener mGestureListener; public CustomScrollView(Context context, AttributeSet attrs) { super(context, attrs); mGestureDetector = new GestureDetector(new YScrollDetector()); setFadingEdgeLength(0); } @Override public boolean onInterceptTouchEvent(MotionEvent ev) { return super.onInterceptTouchEvent(ev) &amp;&amp; mGestureDetector.onTouchEvent(ev); } // Return false if we're scrolling in the x direction class YScrollDetector extends SimpleOnGestureListener { @Override public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) { if(Math.abs(distanceY) &gt; Math.abs(distanceX)) { return true; } return false; } } } </code></pre> <p>You need to do something similar in a certain region of your viewswitcher. So you need to modify the basic viewswitchercomponent and make your own variant.</p> <p>As an alternative to the above suggestion I'd consider not doing it. If you look at apps around using maps this is really not a normal behavior and I doubt it'll run very smooth or make a good user interaction. Maps in general works best when they get as much space as possible. Take a look at some basic map apps: Google Navigation, Google Maps, Google latitude, Yelp.</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.
    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