swipe

How to detect Swipe Gesture in iOS?

别说谁变了你拦得住时间么 提交于 2019-12-17 05:53:27
问题 In my iPhone app, I require to recognize the swipe gesture made by the user on the view. I want the swipe gestures to be recognized and perform a function on swipe. I need that the view should horizontally slide and show another view as a user makes a swipe gesture. What needs to be done? How do I recognize it? 回答1: Use the UISwipeGestureRecognizer. Not much else to say really, gesture recognizers are easy. There are WWDC10 videos on the subject even. Sessions 120 and 121. :) 回答2: If You know

Android Swipe on List

。_饼干妹妹 提交于 2019-12-17 02:25:25
问题 Does anyone have a simple example of a ListActivity displaying Textviews in a column and when you swipe left to right you see that row in a new view? This would be to say edit the data for that row or show more detailed info on that row. Please do not reference code shogun or other sites as I have googled and have not seen this answered. 回答1: I had the same problem and I didn't find my answer here. I wanted to detect a swipe action in ListView item and mark it as swiped, while continue to

Dim overlay by swiping on Windows Phone

那年仲夏 提交于 2019-12-14 02:22:00
问题 I have a rectangle as an overlay and I want to modify its opacity by swiping up and down, like in the app Free Talking Alarm Clock. I figured out, that I have to deal with ManipulationStarted and ManipulationDelta events, but not sure which value to use. At this point I'm able to change the opacity by swiping, but changes only when the swipe is completed, and I want the opacity to change while I'm swiping. How do I do that? Right now, I have this: private Point initialpoint; private double

Blocking status bar in top down swiping

扶醉桌前 提交于 2019-12-14 01:38:55
问题 I've a full screen application covering the entire screen, top status bar included. Since a top / down swipe is enabled to show some options to the user, it happens that swiping from top to down, the status bar is showing (as when you want to see notifications and swipe top down). Is there a way to avoid this ? 回答1: Use type TYPE_SYSTEM_ERROR for WindowManager.LayoutParams, to create hide impossible fullscreen view. Swipes for show status bar and navigation will be blocked. @Override

Call both of After and Before Method in UIPageViewController when swim for forward in Swift 3 iOS

瘦欲@ 提交于 2019-12-13 12:23:49
问题 I made UIPageViewController with datasource array and it's works correctly. But when swiping to right for forwarding call both of After and Before methods. My codes is here: import UIKit class MainPageViewController: UIPageViewController,UIPageViewControllerDataSource { override func viewDidLoad() { super.viewDidLoad() self.dataSource = self initUPageVC(idx:0,isAnimate:false,direction: UIPageViewControllerNavigationDirection.forward) } func pageViewController(_ pageViewController:

How to implement long press using manipulation events in windows phone 8?

≯℡__Kan透↙ 提交于 2019-12-13 05:15:08
问题 Since GestureListener is deprecated, we are now left with three events namely ManipulationStarted , ManipulationDelta , ManipulationCompleted . My custom listbox enables, swiping left and right on listbox items to do certain functions. How do I use the manipulation events to detect long press on a listboxitem? I want to implement the long press in such a way that the swipe left and right is not broken. Any clue/idea would be of great help! 回答1: Windows Phone 8 includes a Hold event. Can you

where should I implement setOnTouchListener for Main Activity

ぃ、小莉子 提交于 2019-12-13 05:13:14
问题 I have ActivityMain which has inner class of OnSwipeTouchListener this class contains the logic for touch gestures. But I don't know how to implement swipe left and right within my onCreate function. I guess I would need to implement it on the View or this in referencing mainactivity. But I can't figure out how. If someone can point out how to call onSwipeRight and onSwipeLeft inside the onCreate method, appreciated. package org.pctechtips.zentech.TestApp; import android.content.Context;

PagerTitleStrip without title bar indicator

无人久伴 提交于 2019-12-13 04:55:40
问题 I'm using PagerTitleStrip for first time run app tutorial. Since I need to see the content of the whole full screen in the activity below, I would like to hide the title bar of the PagerTitleStrip (the bar where the steps number are showed). How to do this ? <android.support.v4.view.PagerTitleStrip android:id="@+id/pager_title_strip" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="top" android:background="#000000" android:paddingBottom="4dp"

Android Swipe Fragment on click

主宰稳场 提交于 2019-12-13 00:55:37
问题 I have a Fragment pager, I built a button on the first fragment. Now I want to make it swipe to the second fragment when I click on that button. I built this so far: public class HowTo extends Fragment { @TargetApi(Build.VERSION_CODES.JELLY_BEAN) @Override public View onCreateView(final LayoutInflater inflater, final ViewGroup container, Bundle savedInstanceState) { View android = inflater.inflate(R.layout.how_to, container, false); ((TextView) android.findViewById(R.id.howTo)).setText("howto

SwipeListView by 47degree: swipe first item programmatically

核能气质少年 提交于 2019-12-12 13:19:24
问题 I would like to swipe the first item on the SwipeListView on Activity start up to show the user that the SwipeListView is swipe-able. How can I perform this action programmatically with this UI element? Update I tried to use the swipeListView.openAnimate(position) that was proposed here in the answer, but for some reason even after I populate the adapter with data-items... when I debug and reach this code section the swipeListView doesn't see item in it, and fails with NullPointerException .