-
-
Notifications
You must be signed in to change notification settings - Fork 150
Open
Labels
Description
How do I?
<com.otaliastudios.zoom.ZoomLayout
android:id="@+id/zoom"
app:overScrollHorizontal="false"
app:overScrollVertical="false"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black">
<org.videolan.libvlc.util.VLCVideoLayout
android:id="@+id/view_vlc_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</com.otaliastudios.zoom.ZoomLayout>
As you can see here I’ve added
app:overScrollHorizontal="false"
app:overScrollVertical=“false"
I’m trying to never let the content overscroll, and it works vertically, but doesn’t work horizontally. (I’m in landscape orientation)
Notice here the black bars left, where I can move the child view. It should stop before showing the black bars.
When I’m using portrait orientation the vertical overscroll property is ignored and I can scroll a lot
Version used
implementation 'com.github.tbouron.shakedetector:library:1.0.0@aar’