You have two options.
1). You can use these attributes in styles.xmlto change the color of the cursor.
<item name="colorControlNormal">@color/colorEditextDisabled</item>
<item name="colorControlActivated">@color/colorEditextEnabled</item> // change this color to the required cursor color your need.
<item name="colorControlHighlight">@color/colorEditextEnabled</item>
2). Find the EditText from yours SearchViewand set the attribute android:textCursorDrawablevalue @null. This will result android:textColorin the color of the cursor. But since you cannot install textCursorDrawableprogrammatically, so you need to use reflection in this case.
EditText etSearch= ((EditText) yourSearchView.findViewById(android.support.v7.appcompat.R.id.search_src_text));
try {
Field f = TextView.class.getDeclaredField("mCursorDrawableRes");
f.setAccessible(true);
f.set(etSearch, null);
} catch (Exception e) {
e.printStackTrace();
}
etSearch.setTextColor(ContextCompat.getColor(mContext, R.color.yourColor));
, ..!!