2,186 questions
0
votes
2
answers
106
views
IndexOutOfBoundsException when scrolling to end of RecyclerView
I'm new to Android development and have tried to implement a SearchView alongside a RecyclerView to display and filter restaurants. However, when I scroll down to the bottom of the listed restaurants, ...
-1
votes
2
answers
53
views
android searchView background when cursor is focused and moving hides the text behind a white box
im using a SearchView in my android activity.
the SearchView is defined in the activity menu.xml like so:
<item
android:id="@+id/action_search"
android:icon="@...
1
vote
4
answers
533
views
Android: Fix Search Text Highlighting with RecyclerView and ListAdapter
I have a SearchView in a Toolbar, that sits above a RecyclerView list of CardViews. The SearchView works correctly to filter the list based on text inputs. However, the code in the ListAdapter in &...
2
votes
0
answers
67
views
Android: Opening menu while SearchView is expanded makes other action view disappear
I am building a toolbar menu with a SearchView, an action view item, and other regular items.
I want the search icon to be always visible, so I use app:showAsAction="always".
I also had to ...
1
vote
0
answers
69
views
Android: which Listener for EditText SearchView?
So Android code includes AddTextChangedListener that implements TextWatcher() and its methods. Android also includes OnQueryTextListener() and its methods. And there are many uses cases listed here ...
0
votes
1
answer
55
views
How to make searchview works for find my dummy data
I got stuck, i making some searchview for find my dummy item but still didnt work, anyone know how it works ? this is my dummy data
interface DummyMateriDataSource {
fun getMateriData(context:...
0
votes
0
answers
116
views
Error inflating class androidx.appcompat.widget.SearchView in Dialog
<style name="WallSearchView" parent="Widget.AppCompat.Light.SearchView">
<item name="colorControlActivated">@color/light_black</item>
&...
0
votes
1
answer
138
views
Remove extra menu when search view is click
In my project, I try to remove the extra menu when the search view is clicked and return the menus when canceling the search view. Please find the screenshot below
I use this below code to hide and ...
0
votes
1
answer
83
views
Android - SearchView setFilters and color of the text
I am trying to create a SearchView and programatically change textcolor and add filters e.g. max length.
SearchView search = findViewById(R.id.searchView1);
TextView textView = search.findViewById(R....
1
vote
0
answers
75
views
A problem with SearchView, how to fix the error "Failed to create an instance of one or more classes" in xml?
I created a fragment and added a SearchView to it, but the SearchView glows red. The error "Failed to instantiate one or more classes" is returned. And under the error it says "Missing ...
1
vote
2
answers
76
views
Android - The listview is not updating when I use searchview
I am novice in Android Studio, can someone help me with my problem. After I use searchview, when I delete a item in the listview it is not updating.
Let me give you the screenshot to better visualize ...
1
vote
0
answers
72
views
How to use a SearchView on a RecyclerView List
For my app I use a recycler view list that displays Pizza Restaurants that include its name, location, and rating. In it I want to use a search view that can look up the restaurant by its name. Every ...
1
vote
0
answers
42
views
Add Suggestions for SearchView when user typing
I have a fragment having a toolbar that include a searchview, and I want when users click on it then sending them to another fragment for searching. I'm struggling to implement search suggestions. How ...
0
votes
0
answers
23
views
Searchview not is not Updating the recyclerview - Android
I'm trying to implement a search function..For that i used a searchview and implement a onQueryTextChange method but currently it filter data (Confirm with Log and display A Toast Message Toast....
0
votes
1
answer
99
views
Activate searchView in android studio java
I have a searchView in my form in android studio (JAVA) with below code:
<SearchView
android:id="@+id/SView"
android:layout_width="wrap_content"
android:...