Questions tagged [swipe-gesture]

Swipe is a gesture that involves touching a touchscreen or trackpad, translating the finger in one direction across the screen or pad, and removing the finger. It is commonly used as a discrete scrolling gesture (for example, go to the next picture).

Swipe is a gesture that involves touching a touchscreen or trackpad, translating the finger in one direction across the screen or pad, and removing the finger. It is commonly used as a discrete scrolling gesture (for example, go to the next picture).

526 questions
5
votes
1 answer

How to animate item in ListView when being clicked?

I want to have one ListView that when I click on the item the view slide out to the left. So I have: listView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView arg0, View arg1, …
RobGThai
  • 5,937
  • 8
  • 41
  • 59
4
votes
1 answer

Jetpack Compose rememberSwipeableState saves old state when the list is updated

I have a list which is showing items by category. If i choose the first category and swipe the first item to the left then change a category to another one. New list is updating but the first item remains as swiped state on new list ui which should…
nAkhmedov
  • 3,522
  • 4
  • 37
  • 72
4
votes
1 answer

Disable Tab View Swipe to Change Page in SwiftUI 2.0

I am using a tab view in my SwiftUI app. I want to disable its swipe to left and write to move to other pages. I checked this answer and also checked this one, but none of them works. They are using .gesture(DragGesture()) which is disabling the…
Taimoor Arif
  • 750
  • 3
  • 19
4
votes
2 answers

Swipe to reply in chat message like whats app programmatically in android

I am currently working on chat application. I need swipe to reply a particular message like WhatsApp in android programmatically. kindly help me to achieve this. thanks in advance. link I am referring https://github.com/shainsingh89/SwipeToReply.
Kumar
  • 969
  • 2
  • 22
  • 56
4
votes
0 answers

Iphone - Safari - detect swipe navigation

I'm having a bit of a problem with mobile safari's swipe animation: I've created a popup window of sorts, for the search functionality (with a similar purpose and look to ebay's mobile site. Go to ebay on mobile, and focus on the search field and it…
Northern
  • 113
  • 7
4
votes
2 answers

Xamarin.Forms. SwipeGesture and ScrollView don't work together on Android

I use Grid with SwipeGesture and ScrollView. ScrollView works well but SwipeGesture doesn't work only Android. In iOS I have not problem. Why? Help me please
Viktor Bylbas
  • 677
  • 1
  • 9
  • 25
4
votes
0 answers

Apply filter on right or left Swipe like facebook editing feature

I want to implement filters on bitmap like facebook introduced filters on picture using left or right swipe gesture. How to do this ? I am using this code to detect left,right gesture. @Override public boolean onTouchEvent(MotionEvent event) { …
Adnan Bin Mustafa
  • 1,229
  • 10
  • 20
4
votes
0 answers

Android RecyclerView item foreground/background swipe issue

I've tried to use RecyclerView in my android project, and everything works fine instead of the swipe touch handling. What I would like to approach is a custom view (mainly some buttons), under the list items. See the screenshot below: swipeable…
4
votes
1 answer

Android activity background does not been transparent when I use SwipeBackLayout and swipe it below api 21

I'm developing my app with SwipeBackLayout and my Activity is extends from SwipeBackActivity.The foreground activity's background is transparent when I swipe back in my devices with android api 21.But it does not work in device with api 19. Like…
俞水水
  • 41
  • 1
4
votes
1 answer

IOS UIPageViewController - Swipe only some part of the screen

I m trying to design one screen which contain swipe part. I have one screen with one imageview and at the bottom there are two buttons. I want to swipe only the imageview not the bottom area. Screen is like this At the moment the problem it is…
hellosheikh
  • 2,929
  • 8
  • 49
  • 115
4
votes
2 answers

Swipe effect like inshorts news app

link check this news app, i want to develop like this. i want swipe up/down side effect.. i tried this code,but not correctly swiping as i want. in this code when i swipe up/down,only the text is changing not a layout. public class…
Nikita Sukhadiya
  • 367
  • 2
  • 4
  • 10
4
votes
3 answers

Android: How to swipe columns in a TableLayout?

I'm trying to make a TableLayout within a Fragment that supports column swiping. As the image in the link below shows, the first column ("Header 1") should be fixed, whereas the other columns ("Header 2", "Header 3", and "Header 4" ) should be…
4
votes
1 answer

Swipe between tabs items, onsen-ui

I'm using onsen-ui (v1.14), and I'm trying to swipe between tabs, like on facebook messenger, but I'm not able to make it work. I've tried using the "setActiveTab" function with ons-gesture-detector, in several combinations, but none worked.
4
votes
1 answer

Swipe to delete listview shows artifacts

I am trying to implement Chet Haase's swipe to delete, but the example he has provided is leaving artifacts, and a ghost list view item, once the number of items is less than the number to fill the screen. Also, if you remove the background…
Amit
  • 3,952
  • 7
  • 46
  • 80
4
votes
0 answers

Disable 2 finger swipe back navigation in Chrome on OSX

I am using Chrome in --app mode on my local server. This works fine and makes it look like a native app although it's all HTML. However, if the Mac user does a 2 finger swipe left, then Chrome navigates back and to the previous page which does not…
Daniel
  • 2,087
  • 3
  • 23
  • 37