Questions tagged [fling]

12 questions
5
votes
1 answer

How do I remove the bouncing effect on appbar?

Appbar used to have an issue when flinging. It was not scrolling smoothly. Please refer to…
vida
  • 4,459
  • 1
  • 22
  • 27
2
votes
1 answer

How to add fling animation to CustomPainter?

I have a container upon which I'm detecting gestures so that I can scroll through an image that I'm creating with custom painter, like so class CustomScroller extends StatefulWidget { @override _CustomScrollerState createState() =>…
exitpotato
  • 21
  • 4
2
votes
1 answer

How to disable RecyclerView fling but leave scroll working?

I have a horizontal RecyclerView. I need to scroll it but to disable fling by swipe gesture. Originally all work is done at onTouchEvent method and I dont know how to disable it without rewriting all touch handling
Alex Klimashevsky
  • 2,457
  • 3
  • 26
  • 58
1
vote
1 answer

GestureDetector gesture handler app crash when calling external function

i tried to use GestureDetector of react-native-gesture-handler import React from 'react'; import { Directions, Gesture, GestureDetector } from 'react-native-gesture-handler'; import Animated, { useAnimatedStyle, useSharedValue, withTiming } from…
1
vote
1 answer

How to resolve RCTPromiseResolveBlock after BFTask

I am trying to implement Amazon FireTV's code via a Bridge from react-native. My goal is to send a signal to the remote player, then resolve the RCTPromiseResolveBlock so that in my javascript I can await the function. @objc func fling(_ options:…
jbodily
  • 3,613
  • 2
  • 20
  • 21
0
votes
0 answers

Intercept fling velocity by list item in Jetpack Compose LazyList

I have a long list of items to display - text and images - think of a product page. One of the items to display is a special one - component which should display a frame of a video based on a scroll offset (so it animates the image, mimcs the…
rwozniak
  • 1,326
  • 15
  • 15
0
votes
0 answers

Amazon Fling iOS SDK issue when streaming a video

I am integrating the Amazon Fling SDK into my iOS app and faced the issue. When casting a video, playback on Fire TV stops immediately or after several seconds and a white video frame is displayed on TV. The SDK reports the error with the…
Viktoriia
  • 71
  • 6
0
votes
0 answers

Reproducing Fling Behavior

How are fling-scroll behaviors computed? This is mostly a curiosity question and also documenting it so it can be reproduced in other environments that don't already support it. I figure it has something to do with the first or second derivative of…
coderforlife
  • 1,378
  • 18
  • 31
0
votes
0 answers

Is onBindViewHolder being called when in fling scrolling?

so my questions are: Is onBindViewHolder being called for every item in my recyclerview when in fling scrolling? Is it only calling it once the fling is stopping and on the items that are shown on screen? (and the recycled ones as well of course)
Idan Damri
  • 196
  • 10
0
votes
0 answers

Kinetic translation in Y-axis using FlingAnimation

I'm trying to add 'kinetic' move in Y-axis from top of the screen to bottom (and vice versa) to custom layout displayed above all apps using the window manager. I tried to do it in this way: private void animateFlingInYAxis(View view) { …
redrom
  • 11,502
  • 31
  • 157
  • 264
0
votes
2 answers

Scroll fixed number of items on fling/scroll to recyclerview

I have a simple activity which has a root layout.The root layout contains a recyclerview. Recyclerview will contain 20 items created from items.xml , which consists of 3 text views.Here items.xml represent single item in the recyclerview. The…