swipe

Swipe Back like Pinterest or Tumblr

偶尔善良 提交于 2019-11-29 18:48:47
Does anybody has an idea how Pinterest or Tumblr has implemented there "swipe back" method. i.e. on Pinterest you can click on a post on the news feed. Than the DetailActivity is started and displays the details for the selected post. Than you can press the back button to return to the news feed activity, or you can swipe (the details activity) to the left to come back to the news feed activity. Video: http://youtu.be/eVcSCWetnTA Normally I would use overridePendingTransition() , but overridePendingTransition() takes animations (Resource ids like R.anim.foo ). Pinterest and Tumblr start the

Android 如何实现气泡选择动画

China☆狼群 提交于 2019-11-29 18:33:54
跨平台用户体验统一正处于增长趋势:早些时候 iOS 和安卓有着不同的体验,但是最近在应用设计以及交互方面变得越来越接近。从安卓 Nougat 的底部导航到分屏特性,两个平台间有了许多相同之处。对设计师而言,我们可以将主流功能设计成两个平台一致(过去需要单独设计)。对开发者而言,这是一个提高、改进开发技巧的好机会。所以我们决定开发一个安卓气泡选择的组件库 —— 灵感来自于 苹果音乐 的气泡选择。 先说设计 我们的气泡选择动画是一个好的范例,它对不同的用户群体有着同样的吸引力。气泡以方便的 UI 元素汇总信息,通俗易懂并且视觉一致。它让界面对新手足够简单的同时还能吸引老司机的兴趣。 这种动画类型对丰富应用的内容由很大帮助,主要使用场景是:用户要从一系列选项中进行选择时的页面。例如,我们使用气泡来选择旅游应用中潜在目的地名字。气泡自由的浮动,当用户点击一个气泡时,选中的气泡会变大。这给用户很深刻的反馈并增强操作的直观感受。 组件使用白色主题,明亮的颜色和图片贯穿始终。此外,我决定试验渐变来增加深度和体积。渐变可能是主要的显示特征,会吸引新用户的注意。 气泡选择的渐变 我们允许开发者自定义所有的 UI 元素,所以我们的组件适合任意的应用。 再来看看开发者的挑战 当我决定实现这个动画时,我面临的第一个问题就是使用什么工具开发。我清楚知道绘制如此快速的动画在 Canvas 上绘制的效率是不够的

How do I disable the full swipe on a tableview cell in iOS11

不想你离开。 提交于 2019-11-29 16:59:42
问题 UITableViewDelegate.h // Swipe actions // These methods supersede -editActionsForRowAtIndexPath: if implemented // return nil to get the default swipe actions - (nullable UISwipeActionsConfiguration *)tableView:(UITableView *)tableView leadingSwipeActionsConfigurationForRowAtIndexPath:(NSIndexPath *)indexPath API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(tvos); - (nullable UISwipeActionsConfiguration *)tableView:(UITableView *)tableView trailingSwipeActionsConfigurationForRowAtIndexPath:

Implement Swipe event on WP8

本小妞迷上赌 提交于 2019-11-29 11:13:12
I am creating a wp8 application for showing some html files in a browser and the structure is <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Grid Name="PageNavigationMenu"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/> </Grid.ColumnDefinitions> <Button Height="70" Content="P" Grid.Column="0" VerticalContentAlignment="Center" Click="btnPrevious_Click" x:Name="btnPrevious" ></Button> <Button Height="70" Content="N" Grid.Column="1" VerticalAlignment="Center" Click="btnNext_Click" x:Name=

Horizontal scroll - Mobile - swipe?

 ̄綄美尐妖づ 提交于 2019-11-29 08:32:04
问题 Can anyone please recommend the best way to trigger a horizontal Jquery scroller using swipe gesture? We have a working web version which we would like to implement onto our Android site, but dont know the best way to approach this. We basically want to use a scrolling list similar to these examples (http://caroufredsel.frebsite.nl/) triggered via swipe gesture? Any advice or alternate versions gratefully received. Cheers Paul 回答1: I would suggest the excellent jQuery TouchSwipe Plugin by

SwipeListener on ListView and ClickListener on ListView's items

天大地大妈咪最大 提交于 2019-11-29 07:56:52
This is my old question . However this time I have provided my code as well. I have a ListView with different types of rows. The row may contain text, image, video or something else. If I click on ImageView (inside the row) I will go to another activity to show the image in full screen, If I click on Video (inside the row) I will go to another activity to play he video. I have implemented right to left swipe listener on my ListView. If I start the ListView swipe from an empty space in ListView, the swipe works (first and second row in below image). However if I start the ListView swipe from

iOS Advanced Gestures: Getting Swipe Direction Vector

柔情痞子 提交于 2019-11-29 05:59:55
Looking through the documentation , it seems that the new advanced gestures API doesn't determine the direction of a swipe beyond the basic { left, right, up, down }. I need the start point of the swipe and the direction. Is there anyway to retrieve this other than coding my own advanced gesture library from scratch out the basic gestures? And if this is my only option, could anyone point me to some open source code that does this? P i Got it! Documentation is here , under ' Creating Custom Gesture Recognizers ' at the bottom. Basically the six gestures Apple provides all derive from

Swipe Direction in ViewPager

末鹿安然 提交于 2019-11-29 05:56:02
I have an Android app that uses ViewPager and FragmentStatePagerAdapter. I however need to add a new feature in which I have to know the swipe direction to move from one fragment view to another, left or right. (i.e, when I swipe left, I would do one thing, and when I swipe right I would do something else). Please note, I do not need the events to happen AFTER the swipe is over. I have to do those events as the swipe occurs. I thought of using setOnPageChangeListener() but it does not tell me swipe direction. Can you advise me please on how to figure out swipe direction? Thanks. Take a look at

Jquery Tools Touch horizontal only disable vertical touch

纵然是瞬间 提交于 2019-11-29 04:47:53
I have jquery tools scroller... I like it to have touch option implemented for swipeLeft swipeRight only. When I use touch: true, it does rotates when swipeUp/Down as well.. I followed instructions here: jQuery Tools Scrollable on touch disable vertical scroll and here: http://awardwinningfjords.com/2010/09/22/handling-touch-events-in-jquery-tools-scrollable.html but none seem to work.. any ideas? my Fiddle/demo is below for reference fiddle: http://jsfiddle.net/mmp2m/7/ demo: http://jsfiddle.net/mmp2m/7/show Thanks If the only control you are using is Scrollable then you could edit the source

How to use jquery swipe without any library?

倾然丶 夕夏残阳落幕 提交于 2019-11-29 03:29:26
问题 I need to create jQuery mobile like Swipe gestures $("#slider ul li div").swipeleft(); using core jQuery without using any library or plugins not even jQuery mobile. I know that jQuery mobile widgets are now going to be decoupled, so that we can take swipe alone from it. But I can't wait for that long. I need some manual jQuery code similar to swipe gestures for swipe left and right functions. I've seen this, but i couldn't understand how to get swipe gestures from it. Can anyone help me out