Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to remove android searchview popup text while searching?
    text
    copied!<p>I have implemented action bar SearchView , it's working fine but at the bottom of the screen a floating text popup is shown. See screenshot:</p> <blockquote> <p><img src="https://i.stack.imgur.com/vgGbZ.png" alt="screen short"></p> </blockquote> <p>ListView Java class:</p> <pre><code>@Override public boolean onQueryTextChange(String newText) { if (TextUtils.isEmpty(newText)) { mListView.clearTextFilter(); } else { // EventAdapterView ca = (EventAdapterView)mListView.getAdapter(); // ca.getFilter().filter(newText.toString()); // Filter lFilter = mDataAdapter.getFilter(); // lFilter.filter(""); // following line was causing the ugly popup window. mListView.setFilterText(newText.toString()); // EventAdapterView ca = (EventAdapterView)mListView.getAdapter(); // ca.getFilter().filter(newText.toString()); } return true; } @Override public boolean onQueryTextSubmit(String query) { return true; } </code></pre> <p>Adapter class </p> <pre><code>@Override public Filter getFilter() { /** * A filter object which will filter message key * */ Filter filter = new Filter() { @SuppressWarnings("unchecked") @Override protected void publishResults(CharSequence constraint, FilterResults results) { mEventUtil = (List&lt;EventUtil&gt;) results.values; // has the // filtered // values notifyDataSetChanged(); // notifies the data with new filtered // values. Only filtered values will be // shown on the list } @Override protected FilterResults performFiltering(CharSequence constraint) { FilterResults results = new FilterResults(); // Holds the // results of a // filtering // operation for // publishing List&lt;EventUtil&gt; FilteredArrList = new ArrayList&lt;EventUtil&gt;(); if (mOriginalValues == null) { mOriginalValues = new ArrayList&lt;EventUtil&gt;(mEventUtil); // mOriginalValues } if (mListItem == null) { mListItem = new ArrayList&lt;String&gt;(); for (EventUtil message : mOriginalValues) { mListItem.add(message.getEvent_Title()); } } /** * * If constraint(CharSequence that is received) is null returns * the mOriginalValues(Original) values else does the Filtering * and returns FilteredArrList(Filtered) * **/ if (constraint == null || constraint.length() == 0) { /* * CONTRACT FOR IMPLEMENTING FILTER : set the Original * values to result which will be returned for publishing */ results.count = mOriginalValues.size(); results.values = mOriginalValues; } else { /* Do the filtering */ constraint = constraint.toString().toLowerCase(); for (int i = 0; i &lt; mListItem.size(); i++) { String data = mListItem.get(i); if (data.toLowerCase().contains(constraint.toString())) { FilteredArrList.add(mOriginalValues.get(i)); } } // set the Filtered result to return results.count = FilteredArrList.size(); results.values = FilteredArrList; } return results; } }; return filter; } </code></pre> <p>How can I remove this floating TextView ?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload