Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
51 views

I'm creating search in app and highlighting part of text in TextView (with spannable). But text fields has fixed width/height and search match could be behind TextView border (not displayed to user). ...
SerjantArbuz's user avatar
  • 1,294
1 vote
1 answer
87 views

I've made a custom toolbar with a title and functioning popup menu, but I can't seem to get a search menu to show up in the toolbar. The search menu icon doesn't even show in the toolbar for this ...
user23513137's user avatar
-2 votes
2 answers
153 views

I'm currently facing a problem with a search bar in my app. The search bar is part of an inflated layout from a menu. Within this menu, there's an icon called 'log_out_button' that should appear in ...
Kostah's user avatar
  • 9
-1 votes
1 answer
605 views

Currently, I am using the Material 3 library to code my application's design. In the official Material 3 website (m3.material.io), in the Search section, at the bottom there is a picture of a Search ...
Aryan's user avatar
  • 31
0 votes
1 answer
77 views

I have a searchView in the Toolbar which also has Gridview elements. Everything works fine except the queryHint doesn't get displayed in the searchView. I have tried setting android:iconifiedByDefault=...
PurpleRabbit's user avatar
3 votes
1 answer
2k views

I want to add two trailing icons (one of them being the 3 dots menu icon) on my Material 3 Search Bar. Examples: Source: GitHub and this: Source: Material 3 But I can't find any way to do this nor ...
tzegian's user avatar
  • 609
1 vote
0 answers
163 views

I'm trying to save and display the search history. To do this, I use the latest version of the library, the search history is displayed until I exit the application.'com.github.mancj:MaterialSearchBar:...
Eypro Corp's user avatar
0 votes
1 answer
92 views

I'm working on my android app to build a custom searchview. I'm having a problem with the layout because I can't be able to get the back button to go on the left, the search edit text to go on the ...
chris oojer's user avatar
0 votes
1 answer
56 views

I am working on an app where at my home fragment I have a searchview under that there is a recyclerview where I am showing the whole data but when user uses searchview and search for any data now I ...
user avatar
2 votes
0 answers
674 views

I am trying to search a value from database with the search filter. but not updating the searched values in adapter. Note: loading the data using Paging3 library. private val mDiffer: ...
Kumar's user avatar
  • 979
-1 votes
1 answer
1k views

I followed the same youtube tutorial (https://www.youtube.com/watch?v=VQKq9RHMS_0&ab_channel=Stevdza-San) and read the answer/feedback from this user's question (How to implement Search Filter ...
Jane Martinez's user avatar
0 votes
1 answer
151 views

I want to implement an interface having BottomNavigationView where clicking on the top search bar opens the next interface shown in figure 2. I have implemented BottomNavigationView. But unable to do ...
Bhaskar Jyoti Dutta's user avatar
0 votes
0 answers
391 views

I just implemented my first ever concatAdapter. Since then when I enter some text in the search field, the app crashes when there's no item that matches the search key, if it matches then it returns ...
Codist's user avatar
  • 779
1 vote
0 answers
366 views

I have an awkward situation for which I have been trying to find the reason and fix it for two days and I failed. Let me explain it first. On launching the app recyclerView in the 'HomeFragment' is ...
Codist's user avatar
  • 779
-2 votes
1 answer
315 views

RecordListActivity.Java // query String select = "Select name, phone from RECORD Where(name like " + "'%name%'" + ")"; Cursor cursor2 ...
Ibnul Imtiaz's user avatar
0 votes
1 answer
44 views

I have an edge case when pip is enabled and the user wants to search something, the pip will get dismissed(when the user submit a query which has more than one item). The search component is based on &...
TestTest's user avatar
0 votes
0 answers
599 views

I am using MVVM Architecture with LiveData and my problem is with refreshing RecyclerView list after delete an element. When I use SearchView and then delete some item, it is still on List visible to ...
L23ko's user avatar
  • 25
0 votes
1 answer
986 views

Can i use editText as Search bar in android? I am not trying to make a search bar inside a toolbar so i am thinking that editText would be fine but i am not sure and that is why i am asking. I have ...
Ivan Nikolovski's user avatar
3 votes
0 answers
452 views

I am trying to figure out the use of android.permission.GLOBAL_SEARCH documentation does not provide any useful information. What I am trying to achieve and where I am confused? IMO this permission ...
Ali's user avatar
  • 31
2 votes
1 answer
2k views

I am willing to add search functionality to my pdf reader.I dont know how do i achieve this functionality.Any help would be appreciated. Note:I am using third party library to read the pdf file. Here ...
Knowledge hub's user avatar
-1 votes
2 answers
707 views

I have a recycler view with flight information, and I am searching using the flight number on the search bar. When I search, the recyclerview is updated dynamically for which the logic is there in my ...
Ian Bell's user avatar
  • 573
1 vote
1 answer
242 views

I'm trying to implement a SearchView inside of a layout, not in a menu layout, but when I click on the search input box, the cursor just briefly shows, then disappears, and the keyboard never displays....
Paul Campbell's user avatar
2 votes
1 answer
237 views

I have a program that I am writing to be able to view the files on the device in the app folder via a recyclerview, and delete them. The mainactivity handles the file deleting and removal, and the ...
MKer's user avatar
  • 103
1 vote
1 answer
1k views

I'm using DiffUtil in my RecyclerView to displays a list from a database using the Room component. I would like to add a search function in the Appbar, that will filter out the existing items in the ...
Shawn's user avatar
  • 1,382
1 vote
1 answer
119 views

I'm trying to show a Snackbar with a message whenever the dataset of a filtered RecyclerView contains 0 items but for some reason, the Snackbar doesn't appear at all. Does the relevant code need to go ...
wbk727's user avatar
  • 8,448
0 votes
1 answer
63 views

What's the difference between the searchable.xml (required to use SearchView widget) and declaring its hint dynamically? Why is it that declaring the SearchView hint dynamically works but doing the ...
wbk727's user avatar
  • 8,448
0 votes
1 answer
197 views

Whenever I open a SearchView within a CollapsingToolbarLayout, the page title gets squashed and truncated to 1 side for some reason rather than being positioned underneath the SearchView widget. Is ...
wbk727's user avatar
  • 8,448
0 votes
0 answers
72 views

i'm currently trying to implement in app search for my application and doing so with android jetpack however i can't find a single resource on how to do so using the single activity principle. Every ...
Felix Stumvoll's user avatar
1 vote
1 answer
722 views

I followed some youtube tutorial about SQLite and RecyclerView (https://www.youtube.com/watch?v=VQKq9RHMS_0&ab_channel=Stevdza-San) I completed all the things and customize it as I need to my app ...
XCaMeLX's user avatar
  • 11
2 votes
2 answers
246 views

This follows a logic from a previous question, quoting the relevant code portion here: I have the following query implemented and it can return any amount of results between 0 up to the number of ...
Shadow's user avatar
  • 4,879
0 votes
1 answer
285 views

Look at the search e.g. of the Play Store: When one types into the search field (left screenshot), all content is hidden / there is a white background for the suggestions (right screenshot). Nothing ...
me.at.coding's user avatar
  • 18.5k
4 votes
0 answers
242 views

I am trying to implement my first SearchView with suggestions. As far as I understand, I have two possibilities to provide suggestions: In the searchable.xml configure a custom content provider using ...
me.at.coding's user avatar
  • 18.5k
6 votes
0 answers
2k views

I am confused which version of SearchView I should use. The documentation for androidx.appcompat.widget.SearchView clearly states If you're developing your app for API level 11 and higher only, you ...
me.at.coding's user avatar
  • 18.5k
1 vote
1 answer
352 views

I have a fragment with RecyclerView and Room Database and I want to add a search view. I have successfully added the search icon and also added the code in the Fragment as well as Adapter. But the ...
Nripendra Kumar Sinha's user avatar
0 votes
1 answer
365 views

I want to make it so that the search view inside my toolbar takes all the available space. As of now, it doesn't, instead, it leaves a slither of unused space right next to the back button. I want it ...
Jayson Meribe's user avatar
6 votes
2 answers
3k views

My app is currently implemented with the Single activity approach (Using navigation architecture component with one main activity and several fragments). I am currently using a toolbar with a drawer. ...
Mervin Hemaraju's user avatar
1 vote
0 answers
139 views

I have 3 Fragments and they all are holding a recyclerView. But I don't know how I should call adapter.getFilter().filter(newText); in onQueryTextChange. Any ideas? MainActivity: public class ...
ata1704's user avatar
  • 23
1 vote
0 answers
170 views

My RecyclerView is getting a filtered position after the list is filtered using the SearchView. This means that when the list item is clicked the information for the wrong item is displayed. I'm ...
ebk's user avatar
  • 11
4 votes
1 answer
314 views

I have two tabs and each tabs has its own searchbar. I bind the searchbar in onCreateOptionsMenu. However, the searchbars only work if I leave the screen once and return to the screen (meaning it ...
Josip Domazet's user avatar
0 votes
2 answers
112 views

I am trying to search through a recycler view with cards by allowing a user to search. When the user searches, the cards should "reorganize" to show according to the characters entered by the user. I ...
rengineer's user avatar
  • 359
1 vote
1 answer
931 views

I have been struggling to stop an index out of bounds exception crash every single time I do a search in a searchview. I tried a couple of things listed online : on search getting array out of index ...
user avatar
0 votes
2 answers
2k views

I want to open a new activity whenever the search icon is clicked on the mainactivity. This new activity called SearchableActivity will handle all the relevant search results in the listview. I have ...
faizanjehangir's user avatar
-2 votes
2 answers
930 views

I want to make similiar like this Activity that can hit API everytime I type a character SearchActivity.java public class SearchActivity extends AppCompatActivity { @Override protected void onCreate(...
Antony Sunggaki's user avatar
1 vote
1 answer
211 views

Am trying search from listview using custom adapter. i have search widget in toolbar menu and i can display widget. when i click on search icon, it expands, but when i start typing, search does not ...
Sagar Pawar's user avatar
7 votes
3 answers
4k views

Hi I want to make scrollable toolbar with searchbox. on scrolling toolbar should be hide toolbar and show search box. Give me some suggestion that how i can build this kind of UI for my application. ...
Vasudev Vyas's user avatar
3 votes
1 answer
1k views

I have implemented a search mechanism in my app, such that when I search for a name or email, it displays the string with the matching character. However, there are some accented strings in my list ...
user avatar
1 vote
1 answer
969 views

I have implemented a search mechanism in my app such that, when you filter through the names in the list, it highlights the names that match, with only issue being it only highlights the lowercase ...
user avatar
1 vote
1 answer
245 views

I have added in the Toolbar a SearchView to filter some items. @Override public void onCreateOptionsMenu(@NonNull Menu menu, @NonNull MenuInflater inflater) { super.onCreateOptionsMenu(menu, ...
Jorn's user avatar
  • 272
2 votes
1 answer
4k views

I am having activity that displays list of items and also having filter and search option. I am displaying the items using android paging library. First time the List of items will be loaded its ...
Thamilvanan's user avatar
0 votes
2 answers
250 views

I have SearchView in my toolbar and I am wondering how can I change search icon inside SearchView Edittext drawableleft icon color programatically? searchView = menu.findItem(R.id.action_search)?....
Artur A's user avatar
  • 307

1
2 3 4 5
9