How I fixed this:
Update the SDK Manager to Android 4.3 and use it as a build target. They introduced a new method in API 18 called setIndicatorBoundsRelative (int, int) , which works like the other (but correctly) in android 4.3.
Do an Android version check and use the old method with the old API:
if(android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.JELLY_BEAN_MR2) { mListView.setIndicatorBounds(myLeft, myRight); } else { mListView.setIndicatorBoundsRelative(myLeft, myRight); }
middlehut Aug 2 '13 at 9:48 a.m. 2013-08-02 09:48
source share