I don't know your current setting, but one way to use this property is to use different layout folders based on different versions of Android. android:textCursorDrawable is a property introduced in API 12, so you may have a layout folder of type layout-v12 that will be used where the API is 12 or more. The layouts in this folder use the property. For lower versions of Froyo and Gingerbread , you have no problem, so you should use the default layout folder. As a result, you will have two layout folders (containing the same layout files):
layout
This rules out API 11, I donβt know if this is a deal violation for you.
source share