Browse Tag

SearchView

SearchView – Text color and icons change

 
SearchView mSearchView = (SearchView) findViewById(R.id.searchview);

SearchView.SearchAutoComplete mSearchSrcTextView = (SearchView.SearchAutoComplete) 
        findViewById(R.id.search_src_text);
mSearchSrcTextView.setTextColor(Color.WHITE);

ImageView mClearImage = (ImageView) findViewById(R.id.search_close_btn);
mClearImage.setImageResource(R.drawable.custom_x_button);

ImageView mHintIcon = (ImageView) findViewById(R.id.search_mag_icon);
mHintIcon.setImageResource(R.drawable.customSearchButton);