protected override void OnElementChanged(ElementChangedEventArgs<Syncfusion.SfAutoComplete.XForms.SfAutoComplete> e)
{
base.OnElementChanged(e);
if (Control != null)
{
IntPtr IntPtrtextViewClass = JNIEnv.FindClass(typeof(TextView));
IntPtr mCursorDrawableResProperty = JNIEnv.GetFieldID(IntPtrtextViewClass, "mCursorDrawableRes", "I");
JNIEnv.SetField(Control.GetAutoEditText().Handle, mCursorDrawableResProperty, Resource.Drawable.my_cursor);
}
} |
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/colorCursors"></solid>
<size android:width="2dp" />
</shape> |
Hi,
The fix above to change the cursor color in Android devices works fine so long as the android OS version is lower than 9, which in terms of Android.OS.BuildVersionCodes means Q -or 29.
Please provide a fix to change the cursor color in an android device where the OS version is 9 or greater, which in terms of Android.OS.BuildVersionCodes would mean >= Q or 29.
Please provide ETA for this fix.
Thank you