问题标签 [swipeview]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
45 浏览

java - 这段关于滑动视图/标签的代码有什么作用?

我正在 Android Studio 中处理滑动视图和选项卡视图,在在线寻求帮助时,我发现了以下代码:

但是,当我删除此代码时,应用程序按预期工作。

你能告诉我这段代码到底在做什么,因为我还只是一个初学者

非常感谢

0 投票
0 回答
486 浏览

ios - SwipeView iOS 库视图乱序/重复

我正在使用 SwipeView 库来创建一系列可滑动的 webview ( https://github.com/nicklockwood/SwipeView )。

来回滑动几次后,webviews 显示乱序,有时重复(位置 1 的项目与位置 3 的项目重复,等等)

github(https://github.com/nicklockwood/SwipeView/issues/40)上有一个类似的问题,但我认为我正确设置了重用视图。

来自调试器:(注意 _itemViews 是如何出现故障的)

0 投票
1 回答
1403 浏览

android - Changing the starting tab of multiple swipe views with tabs

So I am "playing" around with some code i got from a tutorial on Tab layout with swipeable views..

My Problem is that I cannot figure out how to change the default tab it opens, when the app is launched.. Right now it starts in the 1st tab(Top Rated) but I want to have it start the second tab called Games?

I've browsed around and looked for solutions but doesn't seem to find one that fits my code..

Here is my main acitivity:

0 投票
1 回答
248 浏览

android - SwipeListView 前端点击bug 2.3 android

实施 SwipeListView 47 度库,工作正常,但在 android 2.3.* 上不能点击后视图 - 前视图总是捕捉点击事件。谷歌搜索没有结果。也许,有人找到了如何实现点击后视图的解决方案。

0 投票
2 回答
1135 浏览

android - Android 使用自定义视图 PullToRefreshSwipeListView

我正在尝试 使用PullToRefreshSwipeListView自定义视图类在列表视图中同时使用PullToRefreshSwipeListView库。我已经这样实现了:

首先,我将 PullToRefresh 库导入到我的项目中,然后 通过在其中创建一个 libs 文件夹,将SwipeListView Jar 文件添加到 PullToRefresh 库项目中。然后我在 PullToRefresh 库项目的 src 文件夹(com.handmark.pulltorefresh.library)中添加了 PullToRefreshSwipeListView 类。最后,我尝试将这个自定义类 PullToRefreshSwipeListView 实现到我的项目的 xml 中,如下所示:

但是我在 xml 中遇到错误:

  • 错误:在包中找不到属性“swipeActionLeft”的资源标识符
  • 错误:在包中找不到属性“swipeActionLeft”的资源标识符
  • 错误:在包中找不到属性“swipeMode”的资源标识符

它没有获得任何滑动属性,但如果我删除滑动属性。它仅适用于 PullToRefresh。我正在关注这个链接来实现它。任何解决方案/意见将不胜感激。

0 投票
0 回答
1273 浏览

android - Android Tinder 类似按钮的视图

在我的项目中,我使用这个https://github.com/ecstasy2/tinder-card-stack库来制作类似卡片滑动动画的火种。它工作得很好,但它不支持通过按钮单击删除顶视图,喜欢或不喜欢。我浪费了很多时间来尝试对库进行一些回调,其中我试图删除堆栈的顶视图。谁能帮我解决这个问题?或者 mb 任何其他库都可以做这件事吗?谢谢

0 投票
1 回答
235 浏览

gradle - 使用 gradle 的 ActionBarSherlock 和 swipelistview

我需要在我的项目中使用ActionBarSherlock和。SwipeListView我在 build.gradle 文件中添加了以下依赖项:

我收到以下错误:Attribute xxx has already been defined。我想这个问题是因为SwipeListView使用 appcompat-v7 作为依赖项,并且ActionBarSherlock和 v7 不兼容,如您在此处看到的那样。

在我的项目中使用 gradleActionBarSherlock的正确方法是什么?SwipeListView

0 投票
1 回答
506 浏览

java - 标记的实现

我正在寻找用于滑动导航的教程或刻度标记的实现,如图 7 中的http://developer.android.com/training/design-navigation/descendant-lateral.html中提到的。我正在寻找这种简单的风格填充的四分之一表示用户当前的视图。

如果现在还没有实现,有什么想法如何实现吗?

0 投票
0 回答
135 浏览

android - 使用 QuickScroll 或 sectiondIndexer 的 SwipeListview

我正在使用 SwipeListView fortysevendeg,它工作正常,使用这个库我可以向左/向右滑动列表项。但现在我正在尝试在此列表视图中添加部分索引器,以在列表右侧添加字母搜索索引器。我为此找到了这个库。这两个库在独立使用时都可以正常工作。但是当我尝试在单个列表视图中同时使用它们时,swipelistview 不能正常工作。它影响滑动动画和滑动手势。有什么建议么。

这是我正在使用的代码:

XML:

代码:

0 投票
2 回答
407 浏览

android - How to make Swipe from every location of Screen?

i want to make a swipe function between layout , for flying out menu , like Facebook application , but every example and tutorial that i have seen it's all swipe from the leftest part of screen or rightest part of screen,but i want to swipe from every part of screen, like Viber, when you Swipe from middle of screen or anywhere it will swipe to left or right but i don't know how exactly it works,is there any example or tutorial to make a Swipe to right or left between layout from every where in screen , not just leftest or rightest part of screen,something like Viber app Swipe Gesture.