首页 > 其他 > 详细

解决ListView滑动时出现黑边的问题

时间:2015-07-17 11:59:29      阅读:224      评论:0      收藏:0      [点我收藏+]

【声明】转载请注明出处,此文出自指尖飞落的博客:http://blog.csdn.net/huntersnail

——尊重作者,知识无价,交流无限!


两种方法

1、代码去边缘线

myList.setFadingEdgeLength(0);// 删除黑边(上下)



2、清单文件修改

android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen"

<application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen">
        <uses-library android:name="android.test.runner" />


        <activity
            android:name="com.ithm.lotteryhm28.MainActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />


                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>


O(∩_∩)O哈哈~欢迎各种吐槽、鄙视、指教、交流......

☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆转载请注明出处?指尖飞落的博客☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆


版权声明:本文为博主原创文章,未经博主允许不得转载。

解决ListView滑动时出现黑边的问题

原文:http://blog.csdn.net/huntersnail/article/details/46924801

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!