Questions tagged [android-search]

Search is a core user feature on Android. Users should be able to search any data that is available to them, whether the content is located on the device or the Internet. To help create a consistent search experience for users, Android provides a search framework that helps you implement search for your application.

Filter by
Sorted by
Tagged with
0
votes
1answer
57 views

How can a click on a SearchView affecte a RecyclerView?

I have a fragment where I display some items in a RecyclerView. This is my XML file: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas....
3
votes
1answer
46 views

How to fix “Cancel & Voice button on left” in RTL Search Bar

I developed an RTL android app. I implemented an Actionbar that contains a Search bar. but the Cancel and Voice button are on the right of the text. As you know, the cancel and voice button must be ...
-1
votes
1answer
22 views

SearchView's onClose listener never runs

Got a SearchView (androidx, not support lib) I have added its proper listeners like: @Override public boolean onQueryTextSubmit(String query) { Toaster.show(this, "onQueryTextSubmit!"); ...
1
vote
1answer
69 views

Problem with searching String name in RecyclerView that contains String name and String subtext

Well, I have a RecyclerView, whose Items contains name and subtext. I created a class MyObject in order to fill them. With my Adapter, I am filling the RecyclerView. I want to search for a String name ...
0
votes
1answer
93 views

SearchView in expanded mode doesn't hide all action bar icons starting from Marshmallow

SearchView looks fine on Lollipop devices (Android 21): But on Android 23-28 it doesn't hide all icons on the right side: <item android:id="@+id/action_search" android:title="@string/search"...
0
votes
1answer
24 views

Android actionbar Search with customlitview

I m new to android development.I have custom listview using Arrayadopter my all data is fecth from sqlite database and show in this custom listview how i can implement the search functionality on ...
-1
votes
1answer
71 views

Search View On Sqlite Database Not Working

I am working on application, that exists Sqlite Database. What I have done to implement the search on sqlite database using list, I have implemented the like query and I came to know; The searchview ...
-1
votes
2answers
66 views

I'm trying to create this Search bar on Android

I'm trying to create this search bar on Android, where the magnifying glass on the left is fixed, the background in the search box is white with round corners, the spaces between left side, back ...
0
votes
2answers
103 views

How to change search icon color in my android project?

I have added search icon in menu folder and created menu.xml file for that. Here I created custom search icon with light green color from Android Image Asset. When I added this light green color ...
3
votes
1answer
30 views

Getting wrong element when searching second time in MaterialSearchView

I'm using the MaterialSearchView library. When I search for the first time, the correct elements are returned. If I click on the first result, the correct element is selected and the itemName is ...
0
votes
1answer
160 views

SearchView is not refreshing when searching for specific description in the ListView

I am implementing search function for my auction list. I could filter what I typed in the SearchView, but when I delete the fields, it does not refresh. Why is that so?I believe my codes already took ...
-1
votes
1answer
259 views

implement the onclick on the search Result using searchview

I want to open the detail activity as i have done in my recyclerview, after the search result shown in recyclerview. As the search Result Updated in the Recyclerview the the onclick to open the Detail ...
0
votes
1answer
139 views

How to implement abbreviation search to SearchView

I have a Fragment containing a list of strings (company names) which works with SearchView. However, due to many companies having long names, is there a way where I can type in an abbreviation for a ...
0
votes
1answer
20 views

How to increase the size of the text in suggestions in MaterialSearchView?

I've implemented MaterialSearchView in a fragment and it works fine. Now I want to increase the size of the text in suggestions. How can I do that? Thanks!
0
votes
1answer
28 views

How to capitalize the first letter in a MaterialSearchView?

I've implemented MaterialSearchView in a fragment and it works fine. Now I want to make the first letter of each word capital. This is what I have tried: <com.miguelcatalan.materialsearchview....
0
votes
0answers
11 views

How to find the SearchView inside a MaterialSearchView?

I've implemented MaterialSearchView in a fragment and it works fine. I'm using the following code: @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R....
0
votes
0answers
30 views

Android: Search on ListView

I need a quick solution for my problem. I have a ListView, and I want to search from that. Im a kind a starter with the filtering and the adapters, so this is my Fragment's code: View v; DB ...
0
votes
1answer
135 views

searchfilter on recyclerview after filter getting wrong item selected problem

I have a recyclerview and an edittext. I can select the item from the recyclerview get correct item unless it is not filtered. On entering in edittext Recyclerview list gets filtered when i select ...
1
vote
0answers
31 views

Search Arabic custom listview

I have a custom listview which has Arabic strings.I want to search for a specific view (row) in that listview .I use addTextChangedListener in my main activity like below editsearch = (EditText) ...
0
votes
0answers
23 views

Search with 2 letters at same time

I have AutoCompleteTextview in my Activity.And when I type text from keyboard it searches on that first letter from my database. Everything works fine but now I want to improve my app.I want to make ...
0
votes
0answers
36 views

Firebase ListView Search Function Implementation Android

What I am trying to do here is that I have displayed a listview using populateView and I would like to filter it using a searchview but I am not sure on how to do it. Any help or suggestions would be ...
0
votes
0answers
105 views

How to implement SearchView to filter RecyclerView elements

I am trying to implement a SearchView from the support library. I want the user to be able to search/filter a list of Posts in a RecyclerView. I have followed a few tutorials so far and added the ...
1
vote
1answer
38 views

SearchView: Why not show glass icon

Android studio 3.2.1 in my app/build.gradle: android { compileSdkVersion 28 defaultConfig { applicationId "com.myproject" minSdkVersion 18 targetSdkVersion 28 ...
0
votes
0answers
22 views

How do I implement expandablelistview with child search filter?

I have made an expandablelistview with child activities, and now I want to implement a searchView with search filter for the children, but I dont know how to do it. I have searched on the internet for ...
0
votes
1answer
48 views

Customise android search view

I have a search view that looks like the following I want it to resemble the following Following is the code <SearchView android:id="@+id/search_view" android:layout_width="...
0
votes
1answer
27 views

How to programmatically eliminate space occupied by SearchView hint icon in SearchView

I'm trying to programmatically remove space that the icon within the SearchView hint takes up, but for some reason it won't go away. This code makes the icon invisible, but it doesn't remove the ...
0
votes
1answer
32 views

Android searchview saves wrong state

In my fragment I save two simple search view. If i will fill second search view , if I will leave activity ( marked to be killed from dev options) and come back again, android restores search view ...
0
votes
1answer
71 views

Android: Making a Search Activity Single Top

I have an Activity where I used a ListView to display some data and I also want to do some filtering by using SearchView and I want to display the filtered results in the same Activity. @Override ...
0
votes
1answer
259 views

I am unable to use searchView with multiple fragments

In my application I have two fragments Fragment Card, Fragment Note. I am using ViewPager and TabLayout to sliding between two fragments. I want to implement a search function in my application. This ...
1
vote
0answers
175 views

SearchView using PageKeyedDataSource Not Displaying any result or even errors

I am trying to create a searchview inside a fragment that on search requests data from backend api , The results are paginated so I use PageKeyedDataSource to show results in recycler view . So when I ...
0
votes
1answer
22 views

How to pass intent after ListView Search Filter apply on listview?

I try to implement List View feature in my android app. I apply click listener on List View items it works fine and data passes to another activity easily. But also I use search feature on same list ...
2
votes
1answer
87 views

How to make search view with modal in Android

I want to make a searchView like this image below. The searchView is received data from local database then it filters data like AutoCompleteTextView. How can i make it? Here is image: enter image ...
-1
votes
1answer
363 views

Put Search View Widget to the Right corner in Toolbar

I want to put the search widget to right corner of the toolbar and when press it to open all the way to the left. But in case the search view goes out of the screen. Any ideas? <android....
0
votes
2answers
67 views

Unable to go to previous activity-current activity shows up multiple times

I've 2 activities. MainActivity has a list of notes & secondActivity individually displays them. The problem is when I click on one of the notes from MainActivity, it goes to secondActivity, but ...
0
votes
2answers
51 views

Search view input text color

In below image we can see that search text is black and also white and both the android version are different one is kitkat and other is oreo. i want input text in white in kitkat version too.
-1
votes
1answer
369 views

Set a search view for a recycler view from firebase database

I am creating a application in which i've used a recyclerview to get the content from the firebase and i want to add a search view. My Main activity page is public class MainActivity extends ...
0
votes
2answers
477 views

How to implement search button to android Firebase database?

I tried so many time to implement to search my android Firebase database. Query: query = dateRef.orderByChild("phone").equalTo(searchPhoneNumber); I don't know how to set searchPhoneNumber in EditText ...
0
votes
1answer
217 views

Getting Wrong position of RecyclerView Item in next Fragment after applying SearchFilter and OnClick on RecyclerView Item

I have set RecyclerView on Fragment.I have set OnClick listener for RecyclerView item from RecyclerView Adapter.I get Filtered item using SearchFilter.After onClick of RecyclerView Item I need to get ...
0
votes
0answers
197 views

filter recyclerview fetching data from mysql using retrofit

I am developing an android application in which we have a search bar if we type anything in search bar it fetch data from mysql using retrofit and filter recyclerview according to input from user. ...
0
votes
1answer
398 views

Searchable Recycleview in fragment [duplicate]

I have a MainActivity that shows a Fragment containing a RecyclerView. I am loading data from SQL using an Asynctask, all the data shows perfectly. What I want to know is, I've got a search icon in ...
7
votes
2answers
3k views

Implementing Search with Room

Recently I have been messing around with Android Architecture Components (more specifically Room) but I have hit a bit of a roadblock. I have successfully built a Room database that stores a list of ...
-1
votes
1answer
373 views

listview Search: Attempt to invoke virtual method 'void android.widget.Filter.filter(java.lang.CharSequence)'

I already read all the questions that has a same error like in my code, I don't know whats wrong, Please help me FragmentSearch.java adapter = new FunDapter<>(SearchFragment.this....
0
votes
0answers
35 views

How to stay focus in editText from previous activity when a Dialog Shows?

I'm making a search function through editText that listens a key from a TextWatcher. Now what I'm trying to do is that when the user types the key @ it will shows a dialog and runs the recyclerview to ...
0
votes
1answer
278 views

Making an Android TV app searchable (Kotlin)

I am trying to make my app searchable, according to this documentation. However, it does not work. I tried the sample app (which is the source of the code in the documentation) and it works just fine....
0
votes
2answers
185 views

how to search in a custom adapter?

how can I search from a listview using an edittext (both on a fragment)? I need to use as a search option NAMES and DESCRIPTIONS. I'm getting crazy, please help me! This is the code of the listview's ...
0
votes
0answers
112 views

PlaceAutocomplete crashing without any error in logcat

I am trying to implement PlaceAutoCompleteFragment inside a fragment. I have end up with this (based on the accepted answer of this question): public class SecondFragment extends Fragment ...
0
votes
2answers
34 views

How can i send text entered in a search view to a function as a string after the search button is clicked?

Here is an XML file: <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="...
1
vote
0answers
161 views

Unusual line before SearchView when used in an action layout

I am trying to implement a SearchView and a menu option (as icon) on the toolbar. Here is the menu.xml <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:salesi="http://...
2
votes
1answer
238 views

Android searchable configuration voice search language

I am implementing voice search in my activity using searchable configuration as defined here. However setting android:voiceLanguage="tr" doesn't seem to work if the locale of the device is different. ...
5
votes
1answer
255 views

AutoCompleteTextView weird cropping issue on cut/copy/paste menu when onLongClick

I have a problem on showing cut/copy/paste menu. After you've written a String in AutoCompleteTextView, in the first selection (LongClick) of the word opening cut/copy/paste menu. Unfortunately this ...