Questions tagged [searchview]

is an Android GUI widget that provides a user interface for the user to enter a search query and submit a request to a search provider

searchview
Filter by
Sorted by
Tagged with
0 votes
0 answers
106 views

set animation to MaterialSearchView suggestions in android

set animation to MaterialSearchView suggestions in Android. in my materialsearchview when we try to search something it comes a list of suggestions I need to animate this suggestion at the time of ...
Sancy P Devassy's user avatar
0 votes
1 answer
602 views

SearchView stops working when switch tab

I have 3 fragments in a TabLayout as seen here https://i.stack.imgur.com/FBoUy.jpg Whenever I start the application, it opens the explorer tab, and I can switch to the search tab and the searchview ...
Stephen Ryan's user avatar
0 votes
0 answers
149 views

How to disable toolbar icons from being relocated when searchview is expanded?

I have a problem in regards to toolbar. I can't figure out how to align searchview (which is a menu item in my case) in the toolbar. When the searchview is expanded, it pushes the icon it has on its ...
Austie's user avatar
  • 67
2 votes
2 answers
554 views

KotlinNullPointerException: inside onCreateOptionsMenu can't find searchView; android

I need MainActivity with SearchView, it throws KotlinNullPointerException: inside onCreateOptionsMenu; here is my code: options_menu.xml <?xml version="1.0" encoding="utf-8"?> <menu xmlns:...
Mukhtar Bimurat's user avatar
0 votes
0 answers
965 views

How to open a fragment on searchView menu item in action bar click in Android?

I have implemented expanded searchView in my actionBar. So now when I click on it, it opens keyboard and I can write in the search bar itself. But I want to open a fragment when I click on that menu ...
manish poddar's user avatar
0 votes
1 answer
910 views

Android DialogFragment - implement SearchView widget from toolbar inflated menu

As the title of the question says, I am trying to implement the SearchView widget placed in a toolbar of a DialogFragment. The menu is inflated using the inflateMenu method of the toolbar. Note : ...
Leonald's user avatar
  • 81
0 votes
2 answers
318 views

Searchview keyboard won't pop up programatically when starting the activity in Android

I have a searchview widget in my activity that is not part of a toolbar. In my onCreate method I use searchView.setIconified(false); and that does bring the searchView into focus, but it does not ...
DessertsAndStuff's user avatar
1 vote
1 answer
88 views

SearchView in ActionBar - Search unanswered

I've been developing an app with a list that is filled by a WEBSERVICE all right, until I implement the SearchView in ActionBar, Try implementing it as it says in this tutorial: Http://...
Ivan More Flores's user avatar
0 votes
1 answer
528 views

I can't put a listener to hamburger button and the right buttons clicks in a Floating Search View using Ari Morty library

I'm a beginner, I'm trying to implement Floating Search View from this library: Floating Search View I need to connect this hamburger button to my drawer view and the right buttons with actions. ...
Sergio A. Pérez's user avatar
4 votes
6 answers
5k views

void android.support.v7.widget.SearchView.setOnQueryTextListener(android.support.v7.widget.SearchView$OnQueryTextListener)

I am doing SearchView on CustomAdapter where it will search Gate Name. After i try run the app, it suddenly crash and give me the error as stated above. I do not know which part did i even do wrong ...
Mobile Developer's user avatar
0 votes
1 answer
128 views

GridView not refreshing from SearchView query

My main goal is to display a (Grid) list of Books ( referred as BookObjects in my code) with a query from a SearchView. My code actually parses JSON from URL using Google Books API. The code I ...
Catalin Ghita's user avatar
2 votes
1 answer
2k views

Menu Item not showing in Xamarin.Forms after navigation back

I'm developing a Xamarin.Forms Android-App where on a ContentPage a CustomRenderer is being used to display a SearchView in the Header of the Page. The CustomRenderer for the "SearchPage" class looks ...
Tobias von Falkenhayn's user avatar
1 vote
0 answers
63 views

need to add onitemclick listner for materialsearchview

Here name of my materialsearchview is searchView, anyone please help me to add onitemclicklistner for searchView. Here the menu items are retrieved from database and it displays as a list. when i ...
shibumon kr's user avatar
2 votes
1 answer
2k views

Searchable SearchView setSuggestionsAdapter() in android studio

I'm working on an app. It requires a searchview. im facing a problem while working with cursor adaptor. i simply want a string array or xml string array to displayed in suggestion adaptor. when i ...
Umar Shafiq's user avatar
0 votes
1 answer
90 views

Can't search (with searchview) for a record in list view that is retrieved with Json

package rjj.tutorial_jsonandlistview; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget....
Rizal Julian Blanco's user avatar
0 votes
1 answer
35 views

SearchView Refocusing Unintentionally

I can't post any code right now. My problem is that I have an Activity that implements SearchView.OnQueryTextListener and SearchView.OnCloseListener. In the activity, I inflate a SearchView and a ...
LemonPie's user avatar
  • 826
0 votes
1 answer
211 views

How to add listener for item click in MaterialSearchView

How to add listener for item click in MaterialSearchView protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout....
Anand PK's user avatar
0 votes
1 answer
287 views

SearchView automatically closed

In my case, I have activity with 2 containers for fragments. One container show Fragment with list, second show detail information on the selected list item. Second container GONE by default. In ...
no news's user avatar
  • 1,060
0 votes
1 answer
81 views

SearchView in Android Bar

I am so confused how to make the searchview in android bar. It's the 2 days now stuck in this scenario. If someone can help me with my codes below: public class MainActivity extends AppCompatActivity ...
Trixie Belarmino's user avatar
0 votes
0 answers
45 views

recyclerview searchview filtering only one item

I have a recyclerview which contains three textviews in each row. I passed three arraylists for these three textviews to the recycler adapter. Then I wanted to have a searchview for one of the three ...
Nikesh Patel's user avatar
-1 votes
2 answers
879 views

How to pass searchview text from action bar to new activity? in android

public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); searchView = (SearchView)menu .findItem(R.id.action_search).getActionView(); ...
Suhas's user avatar
  • 159
0 votes
1 answer
309 views

How to update SearchView query after onQueryTextChange

Activity has SearchView, which should have valid query. Firstly I had that issue: SearchView not calls onQueryTextChange on second dot But I found that it is bad practice to set query inside ...
DefaultXYZ's user avatar
1 vote
2 answers
378 views

How to fix the icon in the Toolbar?

I need to display SearchView and the add button in the Toolbar, the icon is displayed, but when the SearchView opens, the button is pushed to the edge of the screen as shown below, how can I solve ...
Amir Shabanov's user avatar
1 vote
3 answers
1k views

SearchView not calls onQueryTextChange on second dot

My Activity has SearchView, which should have filtered query. I am filtering it via onQueryTextListener. Idea is that disable typing not allowed chars, like dot, comma, slash and etc - only [A-Z] is ...
DefaultXYZ's user avatar
0 votes
1 answer
516 views

Search view on Action bar not expanding completely in Android

I added search view to action bar and opened it always in expanded mode. It always taking margin from right I don't know why. I tried many solutions but still no success. Please help to me solve this ...
Sapna Sharma's user avatar
-2 votes
1 answer
105 views

how to add divider line/seperator to words store with sqlite in the recyclerview box

thankyou so much. Your solutions are helping me. i am doing a project called offline android dictionary. I av the search view and recycler view as my activity_main.xml. I stored and wrote my words ...
temitope 's user avatar
1 vote
1 answer
3k views

SearchView with rounded corners in ActionBar

I am working on an app needing a SearchView in the search fragment. I obviously know how to create a classic SearchView, but how is it possible to customize it to get a result like this :
D. Math's user avatar
  • 329
0 votes
0 answers
149 views

Handle searchview results in other activity

I'm trying to handle the text you write in a searchview in other activity. I'm testing with print the result but nothing happens. No print, no errors... My code is, mainlayout: <?xml version="1.0" ...
rm10's user avatar
  • 21
0 votes
1 answer
911 views

How to search a list of Objects that are displayed in a RecyclerView?

I am currently trying to implement a SearchView, but the displayed search results change only for the first Search, everything else I enter into SearchView is ignored. Here is my Code for Searching ...
sininen's user avatar
  • 533
2 votes
0 answers
537 views

SearchView on WebView

I have a WebView app that pulls the content from my wordpress Ecommerce website so, basically what I want to achieve is to implement SearchView on my WebView app.So,that I can search the products on ...
Akang Toshi's user avatar
0 votes
2 answers
35 views

i can see search icon on my actionbar even though i have not implemented searchquery listener in my fragment android

i can see search icon on my actionbar even though i have not implemented searchquery listener in my fragment android, Prior to this i have a fragment that holds viewpager in which there are two ...
Amit's user avatar
  • 391
0 votes
2 answers
629 views

SearchView wont start SearchActivity, constantly crashing

I want to open SearchResultsActivity when user enters a search query but I have been trying to setup search view in my activity from past 1 day without any success. I have seen lot of stackoverflow ...
Abhishek Bansal's user avatar
-1 votes
3 answers
188 views

Android Tabbed Activity Searchview not opening in Toolbar

the problem I've used the Setting Up The Search interface doc from the official Android documentation but I'm not getting far for some strange reason as the SearchView refuses to open in the Toolbar ...
Liam Martens's user avatar
5 votes
1 answer
2k views

How to set the Toolbar collapseIcon color programmatically

I want to change the color of the back button in the toolbar when a search is displayed (the circled white arrow). I managed to change the color of all other elements and I am stuck with the back ...
Guy S's user avatar
  • 1,424
0 votes
1 answer
651 views

SearchView-Widget is not displaying caret and underline in Xamarin.Forms (Android)

I try to put a searchbar in the navigation of a content page on Xamarin.Forms (Android). I use the following code (from https://www.linkedin.com/pulse/xamarin-forms-contentpage-searchbar-navigation-...
Tobias von Falkenhayn's user avatar
-3 votes
1 answer
544 views

SearchView in Action bar with customize search button

In the menu, I have search view. when I clicked search in menu search view should expand with customized search button.like below image currently it is opening like normal search I want to change the ...
Avinash's user avatar
  • 264
1 vote
0 answers
259 views

Android FloatingSearchView subtext

I am creating an app that allows users to search for locations in a FloatingSearchView: https://github.com/arimorty/floatingsearchview The library has basic support for loading in suggestions. ...
darkterbears's user avatar
0 votes
2 answers
193 views

item.getActionview() always gives null [closed]

I have a searchView in the toolbar as an option menu. Whenever I try to set setOnQueryTextListener it gives me a NullPointerException: @Override public boolean onCreateOptionsMenu(Menu menu) { ...
Atar Avraham's user avatar
17 votes
10 answers
34k views

How to change searchview icon color?

I know there's already a lot of answers for this question here, and I wouldn't be creating another thread if I hadn't already tried everything I saw here. Anyway, the question is pretty simple. I don'...
Marcus Casagrande's user avatar
-1 votes
1 answer
204 views

how to add button left to cross sign in search view android

I want this design. how to add button left to cross sign ??
Bipin Gawand's user avatar
1 vote
1 answer
660 views

Force user to enter number in a SearchView

I am using a SearchView on action bar in my app and I defined it as follows <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:...
Cem's user avatar
  • 155
0 votes
1 answer
500 views

search through custom map markers and show results in a list Android

I have a map fragment which I populate it with some markers that I download from an API, I have added a SearchView in top of my fragment and now I want to search through markers by title or snipped. ...
Abed Naseri's user avatar
0 votes
1 answer
560 views

Android SearchView searchIcon(magnifying class when collapsed) right padding

I 'm trying to integrate a SearchView, on a custom Toolbar I 'm making. The requirements are: 1) 2 ActionMenuViews 2) Centered Title I have also subclassed SearchView to make it full width, so, ...
mitsest's user avatar
  • 305
13 votes
3 answers
9k views

Android SearchView show hint text before user starts typing

I have a SearchView and trying to add a hint text. It seems you can only show the hint when the user actually taps on the SearchView, I googled a lot and tried different approaches I found on ...
Abed Naseri's user avatar
0 votes
1 answer
250 views

Unable to filter my list view in tablayout activity

I have a tablayout activity containing 3 tabs. In one of the tab fragment I want to add search view to filter my list view. I have this list view in my 1st tab, there I want to filter list view by a ...
Anuj Kumar's user avatar
0 votes
0 answers
66 views

search resultlist not getting set to recyclerview

i m implementing search functionality with realmData i got printed searched string but the searched string not getting set to recyclerview. realm serchfilter return complete result and print it ...
user avatar
0 votes
1 answer
105 views

SearchView.OnQueryTextListner always returning original list

I am trying to implement the SearchView within the toolbar. When I try to search my list the original list is always being returned not the new list while trying to do the search. When I debug it ...
Adam Gardner's user avatar
  • 1,236
2 votes
1 answer
417 views

How to handle ActionBar's icons visibility when using SearchView

Well, what I want is to: Initialize ActionBar with all items, except "searchSettings"; When click on the Search icon, searchSettings appears and the rest of the icons disappear; When close the search ...
T. Lima's user avatar
  • 248
0 votes
2 answers
415 views

SearchView widget with GridView. I type in the search field, but it doeasn't refresh the GridView

I'm new to coding. I'm trying to implement a SearchView Widget that should update a GridView, but it doesn't work. When I type something in the search field nothing happens. Nothing happens if I tap ...
EmmettBrown88's user avatar
0 votes
0 answers
37 views

how to add search view on custom recylerview

how to set data multiple data from volley and store it on Recyclerview that data are fetch from server in string []. for(int i=0;i<users.length();i++){ JSONObject jo = users....
Rasika Singh's user avatar

1
15 16
17
18 19
45