I know that this question has been posted million of time, but I can't get a working solution for my case.
I need to change the cursor color of my searchView. I don't have a xml definition of the searchView, I use it programmatically.
Here my code:
public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.menu_contacts, menu);
    SearchManager manager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);
    SearchView search = (SearchView) menu.findItem(R.id.action_search).getActionView();
    search.setSearchableInfo(manager.getSearchableInfo(getComponentName()));
    return true;
}
I'm using this: 
import android.support.v7.widget.SearchView;
Thanks
 
     
     
    