weex
weex copied to clipboard
[bug]安卓端 List 的 loading 组件不能显示
示例代码如下,ios及web端均能上拉显示“加载更多”的提示,而安卓端不行(安卓版本5.0.2,weex版本0.7.0),不过能触发事件,只是不能显示
<loading class="loading-view" display="{{loading_display}}" onloading="onloading">
<text class="loadtxt" if="{{(loading_display==='hide')}}">加载更多</text>
<loading-indicator class="loadic"></loading-indicator>
</loading>
.loading-view {
height: 120px;
width: 750px;
justify-content: center;
align-items: center;
background-color: transparent;
}
.loadic {
width: 60;
height: 60;
color:#3bafda;
}
.loadtxt {
font-size: 26px;
color:#3bafda;
margin-bottom: 5px;
}
onloading: function (e) {
var self = this;
self.loading_display = 'show';
setTimeout(function () {
self.loading_display = 'hide';
}, 1000)
}
给个完整的能复现问题的最小 demo,thx
就 weex playground 里面 List(advanced)这个demo,拉倒最下面 再向上拉 都不能显示出来的。 @luics
目前也只能用scroller来达到效果了
@cnzsb 已找到解决方案,给.loading-view 的position设置为absolute即可,副作用待测。
@SimonTal 我用安卓测试无效:(
新版WEEX SDK已经修复这个问题,可以在官网下载最新版本查看