zoukankan      html  css  js  c++  java
  • 解决ListView滑动时出现黑边的问题

    【声明】转载请注明出处,此文出自指尖飞落的博客: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哈哈~欢迎各种吐槽、歧视、不吝赐教、交流......

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


  • 相关阅读:
    win10上使用linux命令
    leetcode--js--Median of Two Sorted Arrays
    leetcode--js--Longest Substring Without Repeating Characters
    Linux常用的命令
    微信小程序
    leetcode—js—Add Two Numbers
    PHPExcel使用
    console控制台的用法
    git中常混淆的操作
    mysql解析json下的某个字段
  • 原文地址:https://www.cnblogs.com/liguangsunls/p/7261701.html
Copyright © 2011-2022 走看看