Comments (4)
贴图和代码哈
from flowhelper.
代码就是很普通的父控件是NestedScrollView,子控件包含了多个LableFlowLayout,截图的这些空白区域应当是无法占满一行进行换行后留下的空白,无法在这些地发触发滑动操作,有数据的地方是可以的。
from flowhelper.
这个确实没办法,LabelFlowLayout 会根据子控件去测量父布局的宽度,空白部分 不属于,LabelFlowLayout ,而是属于 NestedScrollView.
或者你可以在 labelFlowLayout 再套一层,再进行滑动
from flowhelper.
看源码,作者在ScrollFlowLayout中的onTouchEvent方法做了事件拦截,所以会导致NestedScrollView无法滑动。可以考虑覆盖LabelFlowLayout中onTouchEvent方法来解决滑动冲突的问题,这种解决办法有没有什么后遗症还有待观察。期待作者提供完美解决方案
class FixedLabelFlowLayout @JvmOverloads constructor(
context: Context, attrs: AttributeSet? = null
) : LabelFlowLayout(context, attrs) {
override fun onTouchEvent(event: MotionEvent?): Boolean {
return false
}
}
from flowhelper.
Related Issues (20)
- 请大佬看下这个问题 Cannot make calls to a recycled instance! HOT 1
- 希望增加,动态增删。 HOT 1
- 设置tab_color 无效 HOT 4
- 默认选择 HOT 1
- tablibx中点击文本切换tab时,tab横线会来回摆动 HOT 2
- 设置tabWidth不起作用 HOT 2
- notifyDataChanged 导致tab_visual_count设置的文字显示错乱 HOT 1
- tab标签选项较多会出现显示错乱 HOT 3
- 1.30版本怎么应用不了 HOT 4
- TabVpFlowLayout+ViewPager2 实现垂直tab切换Viewpager时无法加入指示器吗? HOT 2
- 代码可以格式化下
- Demo里结合Viewpager的示例中使用圆角矩形和资源res,初始设置的间距,在滑动回来后消失 HOT 3
- Tablayout中,其中一个Tab3个字,其余两个字,出现宽度不能平分的状况了
- 老哥,跑了下demo有几点问题想反馈下😂 HOT 4
- LabelFlowLayout固定高度,内容超过高度后,滚动存在回跳的问题 HOT 2
- 指示器无法与文字对齐 HOT 14
- 在单选模式下,先选中一个item(例如选中第一项)然后调用adapter.resetStatus()清除全部选中状态,再去点击第一项时没有反应 HOT 1
- 是否支持下标指示器固定宽度时左对齐 HOT 1
- 标题一多,选中的选项卡都跑屏幕外面去了
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flowhelper.