swiperefreshlayout 相关问题

SwipeRefresLayout是在Android中实现常见的Pull to Refresh模式的标准方法。

在双向Recyclerview中处理水平滚动时禁用SwipeRefreshLayout

我有一个带有自定义LayoutManager的RecyclerView,它具有双向滚动逻辑。因此,我重写了它的方法:重写fun canScrollVertically():布尔值= true重写fun ...

回答 1 投票 0

材料组件:找不到符号SwipeRefreshLayout

这是由于将材料组件从1.0.0更新到1.1.0:实现“ com.google.android.material:material:1.1.0”而导入变得未知:import androidx.swiperefreshlayout ....

回答 2 投票 0

材料组件更新:找不到符号SwipeRefreshLayout

这是由于将材料组件从1.0.0更新到1.1.0:实现“ com.google.android.material:material:1.1.0”而导入变得未知:import androidx.swiperefreshlayout ....

回答 1 投票 0

SwipeRefreshLayout快转了几秒钟

我在Github上有以下项目,当它无法从API加载数据时,我正在显示错误视图并隐藏SwipeRefreshLayout:@JvmStatic @BindingAdapter(“ refreshing”)fun ...

回答 1 投票 0


带有数据绑定的AndroidX SwipeRefreshLayout

我正在尝试使用AndroidX库实现滑动刷新功能:androidx.swiperefreshlayout.widget.SwipeRefreshLayout我的应用正在使用Android数据绑定,因此我想使用...

回答 1 投票 3

带有Recyclerview的MotionLayout中的SwipeRefreshLayout忽略单击事件

我具有以下结构:MotionLayout-> SwipeRefreshLayout-> RecyclerView一切正常,除了RecyclerView中的项目不可单击。它们只能单击...

回答 1 投票 0

如何刷新时处理SwipeRefreshLayout?

当下拉刷新按钮时,我想用Kotlin重新加载页面。我找不到有关Kotlin的任何教程。这给我一个数据类型不匹配的问题,该怎么办呢? swipe_container ....

回答 2 投票 0

刷新ViewPagerIndicator点数增加

问题是,每当我尝试刷新主要活动时,ViewPagerIndicator点也在增加。以下是活动的屏幕截图:1)主屏幕ss 2)刷新时:第一次刷新...

回答 1 投票 1

Stop SwipeRefreshLayout刷新动画,尽管setRefresh(false)/ isRefreshing = false

我正在使用SwipeRefreshLayout刷新我的活动。布局看起来很简单:

回答 1 投票 3

无尽ListView + SwipeRefreshLayout最佳做法

我一直在尝试在我的应用程序中创建一个刷新和自动更新列表。 我使用加载程序获取该列表的数据。 我在这里看到了无尽ListView的指南,它确实使您的代码更简洁。...

回答 0 投票 0

WebView刷新后刷新:向上滚动会触发刷新

当我在Webview应用程序中向上滚动时,它会触发“刷卡刷新”刷新-如何仅在到达页面顶部时才触发刷新?我看到了有关此确切问题的帖子,但...

回答 1 投票 0

Android SwipeRefreshLayout NULL指针异常SwipeRefreshLayout.setOnRefreshListener()

我正在尝试将拉动刷新功能添加到列表视图中。在fragment_page.xml(此处定义为全局列表视图)中

回答 1 投票 0

如何从XML导入SwipeRefreshLayout配色方案?

我知道如何使用.setColorSchemeResources()以编程方式设置SwipeLayout微调器颜色。我该如何通过传递.xml文件来做到这一点? swipeToRefreshSpinner.setColorSchemeResources(...

回答 1 投票 1

SwipeRefreshLayout中的RecyclerView不是“wrap_content”

我有一个RecyclerView作为SwipeRefreshLayout的唯一子项,我想要RecyclerView wrap_content。当我将它们都设置为“wrap_content”时,它不起作用。 RecyclerView包含更少的物品......

回答 2 投票 4

如何使SwipeRefreshLayout wrap_content?

如何使SwipeRefreshLayout wrap_content?这是我的布局mydialog_fragmet.xml:

回答 1 投票 0

SwipeRefreshLayout不拦截NestedScrollingChild的MotionEvent

我使用的是NestedScrollWebView(受NestedScrollView影响很大),它解决了许多与在CoordinatorLayout中使用WebView相关的已知问题。

回答 1 投票 8

从另一个活动刷新SwipeRefreshLayout

活动“SubmitListActivity”包含需要在“SettingsActivity”中刷新的SwipeRefreshLayout。 activity_submitlist.xml

回答 1 投票 0

Android Studio:无法找到方法实现()

错误:无法在类型为org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler的对象上找到参数[com.android.support:support-v4:27.1.1]的方法实现()。这里'...

回答 1 投票 0

膨胀类android.support.v4.widget.SwipeRefreshLayout

我试图在片段中实现SwipeRefreshLayout。它看起来正确创建,但我继续得到错误:引起:android.view.InflateException:二进制XML文件行#2:...

回答 1 投票 3

© www.soinside.com 2019 - 2024. All rights reserved.