Original address: http://www.cnblogs.com/sunzn/p/3487509.html
By default, a yellow or blue shadow appears when the ListView is sliding to the top or bottom. The methods that are resolved on different versions can be resolved by setting android:fadingedge= "None" in the properties of the ListView before the 2.3 release, but the method is not valid in version 2.3 and above, where You can set the pattern by overriding the ListView by using code to prevent its shadows from appearing, so as not to affect aesthetics. The code is as follows:
Package Com.sunzn.cview;import Android.content.context;import Android.os.build;import android.util.AttributeSet; Import Android.view.view;import Android.widget.listview;public class Customlistview extends ListView {public Customlistview (Context context) { super (context); } Public Customlistview (context context, AttributeSet Attrs) { Super (context, attrs); if (Integer.parseint (Build.VERSION.SDK) >= 9) { this.setoverscrollmode (view.over_scroll_never);}} }
Android programming down to the top edge of the ListView blue or yellow shadow