Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 662787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:25:00+00:00 2026-05-13T23:25:00+00:00

In my searchable.xml in my android project, I get to specify a hint that

  • 0

In my searchable.xml in my android project, I get to specify a hint that appears in the edittext, when no text is written. Is there any way to dynamically set this?

In my action, I have two search buttons, that are calling startSearch passing their own parameters. I would like to set hints that reflect the selected action, based on which button was clicked – say “search movie titles”, “search actors”.

The way I see it, this could potentially be achievable by passing parameters to startSearch, or using a localization approach, just as I could place one hint in values-fr\strings.xml, there might be an alternative search resource file to target for when another button has been clicked? Or if the searchable.xml could be made into a selector, so that I could have it act differently in different states, somehow, that would also be fine… Problem is I haven’t been able to find a means of achieving any of these.

The real reason I want to be doing this, is because the way I see it, it’s the best way of communicating that the default action, when the device search button is pressed, is the first option, title search.

UPDATE

To avoid confusion, I’m happy with any declarative or programmatic approach of changing the hint in the EditText mSearchTextField in SearchDialog. What I’m unclear about is how to reference that EditText. The comments in the code linked to says “This is still controlled by the SearchManager …” but I can’t find any reference to how it can be controlled from the SearchManager either.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T23:25:00+00:00Added an answer on May 13, 2026 at 11:25 pm

    AFAIK, There isn’t any way you can access the EditText provided for search.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my searchable.xml, I have: android:voiceSearchMode=showVoiceSearchButton|launchRecognizer I get the search string returned SearchManager like
This question is refers to Apple's example TableSearch project that implements a searchable table
How would you create a database in Microsoft Access that is searchable only by
Right now I'm adding <intent-filter> <action android:name=android.intent.action.SEARCH /> <category android:name=android.intent.category.DEFAULT /> </intent-filter> <meta-data android:name=android.app.searchable
I found that if I want to use the searchable options using the search
class Office < ActiveRecord::Base has_many :users searchable do text :name location :coordinates do Sunspot::Util::Coordinates.new(latitude,
Here is the thing, I have implemented the searchable behavior on my symfony project
I was the Android Developer article on Search: http://developer.android.com/guide/topics/search/index.html and was wondering if I
I have an application published in the Android Market. Its target is 1.6 and
I'm implementing global search box extension (sth like SearchableDictionary sample in android sdk). Everything

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.