<code class="hljs markdown has-numbering" style="display: block; padding: 0px; color: inherit; box-sizing: border-box; font-family: 'Source Code Pro', monospace;font-size:undefined; white-space: pre; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; word-wrap: normal; background-position: initial initial; background-repeat: initial initial;">/** * *转载请注明:[<span class="hljs-link_label" style="box-sizing: border-box;">noyet12的博客</span>](<span class="hljs-link_url" style="box-sizing: border-box;">http://blog.csdn.net/u012975705</span>) *博客原址:http://blog.csdn.net/u012975705/article/details/50010839 * */</code><ul class="pre-numbering" style="box-sizing: border-box; position: absolute; 50px; top: 0px; left: 0px; margin: 0px; padding: 6px 0px 40px; border-right- 1px; border-right-style: solid; border-right-color: rgb(221, 221, 221); list-style: none; text-align: right;"><li style="box-sizing: border-box; padding: 0px 5px;">1</li><li style="box-sizing: border-box; padding: 0px 5px;">2</li><li style="box-sizing: border-box; padding: 0px 5px;">3</li><li style="box-sizing: border-box; padding: 0px 5px;">4</li><li style="box-sizing: border-box; padding: 0px 5px;">5</li><li style="box-sizing: border-box; padding: 0px 5px;">6</li></ul>
想要解决使ScrollView拉到尽头时不出现阴影,需要在布局中添加如下代码:
<code class="hljs xml has-numbering" style="display: block; padding: 0px; color: inherit; box-sizing: border-box; font-family: 'Source Code Pro', monospace;font-size:undefined; white-space: pre; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; word-wrap: normal; background-position: initial initial; background-repeat: initial initial;">android:fadingEdge="none"<span class="hljs-comment" style="color: rgb(136, 0, 0); box-sizing: border-box;"><!--删除android ScrollView边界阴影--></span> android:overScrollMode="never"<span class="hljs-comment" style="color: rgb(136, 0, 0); box-sizing: border-box;"><!--删除ScrollView拉到尽头(顶部、底部),然后继续拉出现的阴影效果--></span></code>