swipe

Android Cursor RecyclerView does a flick on swipe

こ雲淡風輕ζ 提交于 2019-12-11 03:17:57
问题 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 I'm doing something wrong with the implementations, because what happens when I try to swipe is that my recycler item get like "flashed" for a very short time and then disappear. Everything works fine except for this

Prevent UIPageViewController's swipe from affecting a UISlider

我是研究僧i 提交于 2019-12-11 02:29:37
问题 I've seen this question asked in other areas but none of the answers work in my case. I have a UIPageViewController that has a child view controller containing a UISlider. When you go to try to move the slider, it activates the page view controller's scrolling instead. You have to tap, pause on the slider circle, and then move. The UIPageViewController is set to the scroll type, and thus the gestureRecognizers are not set. (The header states "Only populated if transition style is

android - swiping between activities

萝らか妹 提交于 2019-12-11 02:27:59
问题 I'm developing android app for a local newspapers and atm I'm trying to implement swiping between articles. My main activity is HNappActivity and activity for article showing is AcrticleActivity. My problem is, that the swiping just wont work and I'm desperate because I have no idea whats wrong. Here's code, where swiping is implemented: public class ArticleActivity extends SherlockActivity { int hnCatIndex, hnArtIndex; WebView hnWebView; private static final int SWIPE_MIN_DISTANCE = 120;

swipe to delete not showing the delete button

≯℡__Kan透↙ 提交于 2019-12-11 01:54:19
问题 I'm definitely missing something here. This should not be that hard. I am trying to implement the basic swipe to delete function on a list of items in a UITableView on an iPad. Everything seems to work except when the cell slides to the left there is NO delete button just empty white space. Below is what I have in the appropriate functions. - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { if (self.state == AMListMenu && [indexPath row] > 1) { return

Android: Fullscreen Image Slider with Swipe and Pinch Zoom Gestures

非 Y 不嫁゛ 提交于 2019-12-10 23:46:44
问题 I'm trying to follow this example: Link to example He makes Fullscreen Image Slider with Swipe and Pinch Zoom Gestures. The problem is that the example includes pictures of the SDCard and want to collect pictures of the Assets folder. Could someone tell me I should change in the Utils class example to get it? many thanks public ArrayList<String> getFilePaths() { Log.e("", "paso"); ArrayList<String> filePaths = new ArrayList<String>(); File directory = new File( android.os.Environment

UITextField inside UITableViewCell swipe to delete issue

僤鯓⒐⒋嵵緔 提交于 2019-12-10 17:52:14
问题 Since iOS 8 I encounter an issue with the swipe to delete gesture on custom UITableViewCell. The problem seems come from UITextField inside the contentView of UITableViewCell. It seems to be a problem in iOS 8, I have the same code working fine in iOS 7. How can I keep the UITextField editable and the swipe to delete gesture working at the same time? 回答1: The following worked for me: self.tableView.panGestureRecognizer.delaysTouchesBegan = YES; 回答2: I found a workaround for my issue in iOS 8

Android left/right swipe gesture in WebView activity (with clicking on links and vertical srolling)

帅比萌擦擦* 提交于 2019-12-10 15:09:11
问题 SOLVED, solution is underneath. I want to replace buttons for navigation in webview to 2 swipe gestures - left and right swipe. This Android: How to handle right to left swipe gestures link really helped me, but I encountered problem - after implementing this code I was unable to click on links/ or scroll throught loaded webpage in webview activity(I have used 1st answer from possible answers). Then I found out that in another answer in this question is something similar - how to scroll in

Passing scroll gesture to UIScrollView from another view

╄→гoц情女王★ 提交于 2019-12-10 14:22:44
问题 I do have a view that has a UIScrollView and over it there is a view that display some text. When the user swipes over this view that contains text the UIScrollView won't scroll. How to make this view transparent in a way it relays the swipe gesture to UIScrollView. Thanks 回答1: You can just set myTextView.userInteractionEnabled = NO; Or, if you're creating your view with Interface Builder, there's a check box there called 'User interaction enabled', just uncheck that. 回答2: Check out the

Ionic rendering issue during swipe on iOS

浪子不回头ぞ 提交于 2019-12-10 14:11:47
问题 In the video below, a swipe to the right is happening. In the header section, the toolbar with All/Classes/Products lags behind the disappearance of the background image (is there a way to make the background image follow along with the swipe?) Also the yellow plus sign moves over about 40px and then disappears after lagging behind the swipe/disappearance of the rest of the header. My ion-header HTML looks like this: <ion-header #ionheader (touchstart)="swipe($event, 'start')" (touchend)=

Replacing a fragment from ViewPager android

耗尽温柔 提交于 2019-12-10 12:07:30
问题 SCENARIO I am creating a fragment structure with dynamic fragment creations. Each item in the fragment creates the next fragment. In the scenario I am storing all these fragments in the ArrayList of fragments so that I can easily replace the created fragment. PROBLEM Now I am replacing a fragment from the ArrayList by removing the fragment from a particular index and adding the new one. But when I try to get the fragment from that particular index it returns me the old data without calling