You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2019/08/08 11:46:38 UTC

[GitHub] [incubator-weex] gnemyg7221 commented on issue #2322: [Android][0.20.3.0-beta] list中 refresh和cell之间有间隙

gnemyg7221 commented on issue #2322: [Android][0.20.3.0-beta] list中 refresh和cell之间有间隙
URL: https://github.com/apache/incubator-weex/issues/2322#issuecomment-519484682
 
 
   【SOLUTION】
   我不确定我的解决方法是否适用于大家的场景,以下方法仅供参加吧。
   
   `
           <navbar>
               ......
           </navbar>
   
          <!-- 重点 -->
           <div class="float-div"></div>
   
           <list>
               <refresh :class="refresh" @refresh="onrefresh" :display="refreshing ? 'show' : 'hide'">
                   <image src="https://。。。。。。"/>
               </refresh>
               ......
               ......
               ......
           </list>
   `
   
   与list组件并列加个float-div,css相关属性如下:
   
   .float-div{
       opacity: 0;
       position: absolute;
       left: 0px;
       width: 375px;
       height: 600px; //注意:这里的高度根据你的刷新进度能拉多长决定,自己hold住即可。
   }
   
   
   重点注意:
   
   - float-div高度
   - float-div 背景颜色与页面保持一致
   
   
   最后提醒下,会出现这个问题,因为使用了自定义的refresh,如果使用官方提供的indicator,那就不会有问题,我这个解决办法也只是绕过去。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services