Questions tagged [searchbar]

1017 questions
62
votes
11 answers

How to make keyboard dismiss when I press out of searchbar on Swift?

I try to make my searchbar on swift, but I have a problem to dismiss keyboard on screen when I pressed out of searchbar. When I try with textfield, it works perfectly fine with this code. override func touchesBegan(touches: NSSet, withEvent event:…
aji
  • 651
  • 1
  • 5
  • 10
52
votes
7 answers

How to adjust the Caret (blinking cursor) size inside searchbar with css

I tried to google it, and surprisingly found no result related... I wonder how can I use css to adjust the blinking cursor inside the search box with CSS? I adjusted the size of the search box, but seem the blinking cursor's size is still original…
weia design
  • 1,250
  • 2
  • 14
  • 22
29
votes
5 answers

Can't change search bar tint color to be transparent in iOS 8

Upgraded from Xcode 5 to 6 and now my search bar tint is black. Tried to change it through storyboard right pane > "Bar Tint" to clear color, but it's still black. Also tried programmatically: [self.searchBar setTintColor:[UIColor…
ox_
  • 805
  • 1
  • 7
  • 14
26
votes
1 answer

How to add a GoogleMap Search Box to my customized map?

I'm developing my own map with google API and IGN API (french map) and I'd like to add a Google Map Search Box but can't find a way to succeed even after reading carefully the Google Map API. This is what I…
NiphitAe
  • 295
  • 1
  • 5
  • 16
25
votes
4 answers

iOS7, backgroundImage for UISearchBar

I'm making the transition of the UI between iOS 6 and iOS 7. We have a UISearchBar related to a UISearchDisplayController, I have set the backgroundImage of the navigationBar and the searchBar to a 1x1 image dynamically created with a color.…
Geraud.ch
  • 1,499
  • 10
  • 15
22
votes
4 answers

How to implement a Flutter Search App Bar

There are a lot of tutorials but rather than help me to move forward, I get lost in all possible options or I don't know how to improve the code (I would like to use an application that displays a list that use more than only the name of three…
mbrd
  • 335
  • 1
  • 4
  • 14
15
votes
2 answers

What algorithm does google use to make Chrome browser's address bar to act as a default search bar for many websites?

I am wondering what algorithm does google use to make chrome browser's address bar to act as a default search bar for many websites like SO, Quroa etc. but not for facebook, metastackoverflow etc.. For example if you want to search for a topic in…
user1518659
  • 2,198
  • 9
  • 29
  • 40
10
votes
2 answers

How to remove iOS 11 search bar from view and update UI

In xcode 9 when I put the search bar in view its moves the rest of the UI down automatically. When I try to remove the searchbar from view I get a black space instead of the UI being corrected. The line I am using is:…
10
votes
7 answers

Search bar widget not starting searchable activity

I'm trying to implement a search on my android application using a search bar widget in the action bar. I am following…
myselfesteem
  • 733
  • 1
  • 6
  • 23
9
votes
5 answers

UISearchController wrong animation on swipe back then disappearing

To make this short, I have a main view controller that has the navigation bar hidden, from that VC's navigation controller, I push another view controller which has the navigation bar visible. Then I add a searchController to the navigationItem to…
Eph Bee
  • 265
  • 1
  • 13
9
votes
4 answers

Smooth disappearance of iOS 11 search bar

I am running into a small problem, I implemented the new iOS 11's style search bar in my app, and I noticed that it disappeared with a slightly different animation from the one in Messages for example. It's faster and less smooth. Anyone has ever…
Nicolas Charvoz
  • 1,509
  • 15
  • 41
8
votes
2 answers

How can I add Wolfram Alpha to search bar in Chrome?

I want to send queries to Wolfram Alpha real fast. I've been using wiki query from search bar for ages, how can I search on WA?
Qwerty
  • 29,062
  • 22
  • 108
  • 136
8
votes
2 answers

bootstrap amazon style search bar

Is there an easy way to do something similar to this in bootstrap? A search bar with a drop down selector for a different category? I've been looking through their documentation, something similar to this but with the dropdown being attached to the…
parameter
  • 894
  • 2
  • 18
  • 35
8
votes
4 answers

How to hide the keyboard when touching screen (search bar)

The keyboard hides when I click search or when I click on cancel. But I want also that the keyboard hides when I click somewhere on the screen. I found several tutorials for the textfield, but we are using the search bar. Can someone tell me how to…
Rick
  • 85
  • 1
  • 1
  • 4
7
votes
1 answer

SwiftUI - Why does the keyboard pushes my view?

Why do I have the keyboard that pushes up my View? Here's the code: import SwiftUI struct ContentView : View { @State var searchText = "" @State var pressedFirstButton = false @State var pressedSecondButton = true @State var…
Pandruz
  • 345
  • 5
  • 18
1
2 3
67 68