FAQ Database Discussion Community


Change fragment on click

android,android-fragments,swipe,android-fragmentactivity
I have to implement an application in which the user can click through a bottom_bar between 5 pages (although google does not recommend it in recent documents, the customer is always right). So I created a swipe activity with automatic tool android study. Question: how do I start the transation,...

swibable buttons on an arc

ios,animation,uibutton,swipe
I want to arrange 5 buttons in a curve. Everytime middle button is the clickable. I should be able to swipe buttons along the arc. When I swipe, the next button should come to the middle and should be bigger than other buttons and it should be enable. Is there...

How to make swipe between Controllers with animation?

ios,iphone,animation,uiviewcontroller,swipe
I have my structure like Controller 1 <-> Controller 2 <-> Controller 3 <-> ...<->Controller N I need to be able to access to controller 1 or 3 directly from another controllers. I need swipe animation between controllers 1-n , and navigation bar with < and > buttons. What is...

Android: PagerAdapter remove last view so you can't swipe left

android,swipe,viewpage
Is there a way to prevent a user swiping to the left in PagerAdapter? When the user first enter the app they can't swipe to the left because there isn't anything there. So what if everytime you swiped to the right the left image gets destroyed and there will be...

on android. How to set wallpaper from swipe layout?

android,gallery,swipe,wallpaper
I have a swipe activity that also shows a small text. I want to use the image seen on the screen as wallpaper. I learned a lot reading on this website. you helps a lot to everyone. This is my first visit, I could not find the answer by searching....

How to disable Specific Page Swipe in ViewPager

android,android-fragments,android-viewpager,swipe
I have a ViewPager widget in my app with 5 fragments. I have 3 buttons for going to pages manually. For the 4 and 5 pages, i want user to be able to go only by pressing a button not by swipe. So i need to disable swipe events THROUGH...

Is there a better way to create this kind of swipe inside Unity?

unity3d,2d,swipe,coroutine
I'm making a swipe for my 2D game and the code below handles the horizontal swipe of the game. Think of it like a horizontal swipe (Android-like swipe) between a line of doors: using UnityEngine; using System.Collections; public class DoorController : MonoBehaviour { public Camera mainCamera; private float speed; private...

Android swipe: Initial tutorial in an app

android,initialization,swipe,slide
I'm trying to do an initial tutorial in my app like in this image: Do you know the name of this feature? In order to find a tutorial for it....

Accordion Image Viewer… Swipe navigation on mobile?

jquery,css,mobile,accordion,swipe
I have an accordion image viewer visible here: http://jsfiddle.net/gvp8kkeh/1/ Here is the HTML: <div class="accordian"> <ul> <li class="item active"> <a href="#"> <img src="http://ih0.redbubble.net/image.7643638.3643/flat,550x550,075,f.jpg" alt="" /> </a> </li> <li class="item"> <a href="#"> <img src="http://ih0.redbubble.net/image.7643638.3643/flat,550x550,075,f.jpg" alt="" /> </a> </li> <li class="item"> <a href="#"> <img...

How to implement sliding page like Google Play Movies intro on Android?

android,android-layout,swipe
I need to implement something exactly like this. Something with a static background, and multiple pages to swipe through. What classes do I need to look at? Thanks! ...

OnTouchListener - Issue between click and swipe inside a ViewPager

java,android,android-viewpager,swipe,ontouchlistener
I have a ViewPager implemented without fragment (just view). Each page contains a list of elements. With a swipe movement, I can access the next page of the ViewPager, and with a click event, I can display information about the chosen element. In order to distinguish click and swipe actions,...

Android ListView Swipe Right and Left to Accept and Reject

android,listview,swipe
I want to develop list view in that i want , when i swipe left to right , in left corner display one accept ( true ) icon ( non clickable - show just color change when swipe left to right ) like following screen shot, when i swipe all...

Drag page content view make a blank screen on iOS 8 mobile app

ios,iphone,angularjs,swipe,ionic
In ionic ios app swipe the page it shows blank screen.Please help me how to fix this. app.js $stateProvider.state('login', { cache: false, url: '/login', templateUrl: 'templates/Login.html', controller: 'loginCtrl' }) this is Login.html template page <ion-view view-title="Login" hide-nav-bar="true" padding="true"> <ion-header-bar align-title="center" class="bar-positive"> <h1 class="title">Login</h1> </ion-header-bar> <ion-content scroll="true" overflow-scroll="true"> <form name="signInForm" novalidate=""...

Adding paging controls to a full page touch swiper/slider - Hammer.js

javascript,jquery,touch,swipe,hammer.js
CLICK FOR FIDDLE Below is a fully functional full page touch slider I have created using hammer.js You can drag, swipe or pan to navigate between pages. The slider works as expected but I am now trying to create fallback navigation by adding two buttons so paging left and...

Programmatically “swipe-to-dismiss” an item in a ListView/RecyclerView?

android,listview,swipe,recyclerview,android-cardview
I need to be able to programmatically dismiss an item inside a RecyclerView without the user actually swiping (instead I want to dismiss the item when they tap a button in the card). A lot of libraries I've seen only seem to support actual swipes. I've tried using an existing...

Using jQuery “swipe” function to navigate an array of images

android,jquery,ios,jquery-mobile,swipe
I'm building a simple slideshow that is controlled by buttons when viewed on a computer and by swiping gestures on touch screen devices. This is a demo with 3 images. Each image, its corresponding caption and the navigation are contained within one div. Here's the first one: <div class="item" id="1">...

Drag an ImageView horizontally to go to another Activity

java,android,swipe,drag
I'm using a swipe class to go to second activity Main.Java public class Main extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); View v = findViewById(R.id.main); v.setOnTouchListener(new OnSwipeTouchListener(this) { public void onSwipeTop() { Intent i = new Intent(Main.this, Second.class); startActivity(i); public boolean onTouch(View v, MotionEvent event) {...

Limit UIView movement to only vertical or horizontal axis

ios,objective-c,swipe
I'm using a PanGestureRecognizer and in the UIGestureRecognizerStateChanged I let a view on the screen be moved by the users finger. I'm using that for a Tinder like swipe away gesture and I now want to limit the movement of the view to either the horizontal axis or the vertical...

What's the Best Way to Get a “Pull to Refresh” from a UITableView?

ios,objective-c,uitableview,swipe
I have a UITableView, and it displays data received from a WiFi-connected device. I want to do the fairly bog-standard gesture response of dragging a table down, then releasing it, to trigger an update. I guess I could attach a swipe gesture recognizer to the table's substrate view, but I'm...

ListView swipe/slide animation

listview,animation,windows-runtime,winrt-xaml,swipe
I have a ListView control to display items and I want provide a swipe/slide gesture to select an item. I use the GestureRecognizer class to recognize the cross slide gesture but I also want to animate this gesture by moving the seelcted item horizontally. For example, this should look like...

Setting Unity script to an object

unity3d,swipe
I've got a simple question: Why my swipe script swipes on the whole scree while it's supposed to work only on the set prefab? And why my move script which moves the object on swipe on it, moves also all the clone objects? I need some ideas. Thanks. SwipeHandler: using...

UIPageViewController with a last view without page indicator

ios,swipe,uipageviewcontroller
I would like to have 4 views that the user can swipe left or right. For this I am planning to use UIPageViewController. What is special is that the last view should not have the page indicator at all. I would like to swipe it away with the view that...

Put Swipe Gesture over UIWebView to Get Scroll Direction in IOS

ios,xcode,scroll,uiwebview,swipe
I want to get the scroll direction in webView. I read the code about getting scroll direction here. -(void)userDidScrollWebView:(id)scrollPoint{ // NSLog(@"scrolled:::"); NSString *x1 = [webView stringByEvaluatingJavaScriptFromString: @"scrollX"]; NSString *y1 = [webView stringByEvaluatingJavaScriptFromString: @"scrollY"]; NSLog(@"scroll x=%@ y=%@", x1,y1); if ([y1 isEqualToString: @"0"]) { NSLog(@"RELAOD ME"); } } I have 2 Questions...

Android listview row detail page sliding

android,android-listview,swipe,swipe-gesture
I have ListView which has many items(rows), onClick of any item goes to the DetailActivity which explains more about that particular item. If I want to see the detail of the next item, I have to come back to the ListView and click next item. How to design to see...

Android Cursor RecyclerView does a flick on swipe

android,sqlite,cursor,swipe,recyclerview
I want to implement swipeable items in my recycler view. I'm using a custom recycler adapter populated with a Loader (Github link here) and a custom listener for swipe (Github link here). Data is stored locally with a SQLite and retrieved with a call to a filtered Cursor. I think...

Changing views with swipe gesture

ios,swift,view,swipe
I have googled as much as I can to try to find this. I am new to app development and programming in general. I want to have a view return to the previous view via swipe gesture. Here is my ViewController.swift import UIKit class ViewController: UIViewController { @IBOutlet var changeView:...

How to trigger animation on PageViewController page swipe

ios,swipe,uipageviewcontroller
I need to animate view translation from A to B on the screen. However, I want that translation to occur when a user swipes his thumb on the screen. I also want translation to depend on the thumb swipe in a way that they follow one another. I assume I...

Swipe Gesture Recogniser not triggering?

ios,objective-c,xcode,swipe
I have a page view controller with five view controllers that get displayed. I have tried adding these swipe gestures but they are not getting called? UISwipeGestureRecognizer *swipeGestureRight = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleRightSwipe:)]; swipeGestureRight.numberOfTouchesRequired = 1; swipeGestureRight.direction = (UISwipeGestureRecognizerDirectionRight); [self.scrollView addGestureRecognizer:swipeGestureRight]; UISwipeGestureRecognizer *swipeGestureLeft = [[UISwipeGestureRecognizer alloc]...

swipe to delete javascript

javascript,mobile,delete,swipe
I am working on a function that will delete a div when you swipe it left... Here is a div that I would like to delete when it is swiped: <div class="listItem">Stuff here</div> I have javascript to determine where on the page I have swiped by using the touchstart and...

How to drag one viewpager withrespect to another view pager in android

android,android-viewpager,swipe,drag
I have two view pager in a Same fragment. Both have same number of Items. My Need is When I Swipe a view pager the other view pager also need to swipe and vice Versa. How Can I implement that.

jQuery touchSwipe event on element prevents scroll

javascript,jquery,mobile,touch,swipe
I have some list of div elements ordered vertically. Using jQuery TouchSwipe plugin added swipe event to catch left-right swipe. Idea was to remove element from list by swiping it left or right side like this: Finally I got something like this: $(function() { $('.swElement').swipe({ swipeStatus: function(event, phase, direction, distance,...

In Swift and sprite kit how to detect swiped sprites?

ios,swift,sprite-kit,sprite,swipe
I have moving sprites on a screen. Now I do catch the touch and if the sprite is touched - i remove it. But I want to swipe it away. Meaning - i swipe through it (any direction) and if it's a correct sprite (check the name) - remove it....

Setting width of SeekBar to make “swipe to unlock” effect

java,android,xml,swipe,android-seekbar
I am attempting to make a swipe to unlock feature using a SeekBar. The look I am aiming for is shown here: This is composed of two images, a background, and a button. I put both the background and the SeekBar in a FrameLayout so that the SeekBar should sit...

How to detect swipe origin location in html web apps?

javascript,jquery,html,jquery-mobile,swipe
In my jquery mobile app, I have code from their website that detects swipes in order to open the panel using swipes. This is the code: function swipePanel(pageId, leftPanelId) { $( document ).on( "pageinit", pageId, function() { $( document ).on( "swipeleft swiperight", pageId, function( e ) { // We check...