Results 1 to 1 of 1
  1. #1
    Zarah is offline Senior Member
    Join Date
    Mar 2014
    Posts
    286
    Rep Power
    7

    Default Implement Material design's “inset Search box” using the builtin search framework

    From the Android Material Design specification for search,

    The search text field is presented inside of an inset search box, ready to receive focus.
    and this picture is shown:

    -s3f67.png

    They have also shown this kind of SearchViews at many different places in the material design specification e.g. here

    But I can't locate a guide/tutorial describing how to make something like this. From my web search, I have found this SO answer, but they are using an EditText and ImageView, they are not even using a SearchView widget.

    The biggest question in this case is that what about the Search Framework the Android API's provide, which is explained in this guide. This builtin search framework provides a very easy way to implement all the functionality associated with providing Search in an app, i.e. it provides a way to integrate our search with the Android system so that the system handles the user's search queries into SearchView, delivers them to the Searchable Activity, provides a way to add the voice search and search suggestions functionality, etc.

    So now in order to use the Material design "inset search box", do we have to write code to handle user input into the SearchView/EditText, enable voice search, recent suggestions and suggestions from app's data? or is there a way to integrate the EditText (we are using as the search widget) with the system to have assisted search?

    Crosspost here.
    Last edited by Zarah; 08-06-2015 at 08:26 PM.

Similar Threads

  1. Implement Astar search algorithm on JPanel
    By naffie in forum AWT / Swing
    Replies: 5
    Last Post: 10-02-2013, 04:13 PM
  2. Design search results .jsp
    By maas in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 07-19-2010, 07:18 AM
  3. implement binary search method using recursion?
    By chopo1980 in forum New To Java
    Replies: 1
    Last Post: 12-12-2009, 03:58 PM
  4. Implement Search Functionality
    By New2484 in forum New To Java
    Replies: 2
    Last Post: 08-27-2008, 07:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •