com.ricky.example; android.content.Context; android.util.AttributeSet; android.util.DisplayMetrics; android.widget.ListView; BounceListView ListView { = ;// Context ; BounceListView(Context context, AttributeSet attrs, defStyleAttr) { (context, attrs, defStyleAttr); .= context; initView(); } BounceListView(Context context, AttributeSet attrs) { (context, attrs); .= context; initView(); } BounceListView(Context context) { (context); .= context; initView(); } initView() { DisplayMetrics metrics = .getResources().getDisplayMetrics(); density = metrics.; = () (density * ); } overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, maxOverScrollX, maxOverScrollY, isTouchEvent) { .overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, maxOverScrollX, , isTouchEvent); } }