black friday sale

Flat 10% off on the purchase of any two apps or more. Use coupon code - FESTIVAL10

Grab It Now
Check Mobile App
Read now
Start a Project

Android: inflating search suggestions from network

Save

In android, we can provide suggestions to user on serach. The custom suggestions are the suggestions that you provide the application rather than the suggestions based on user history.

So the data for the suggestions can be either from data of your application or from network. Here we are going to add the data from our network based on the input text in the search box. We are performing search using search dailog in action bar. Set up search in menu of your activity as:

Now set the searchable.xml file which we will store in res/xml folder

Now inflate the menu and add suggestions to your search dailog

And by this you can get your search suggestion from network.

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


4 comments

  • Disha S
    you saved my day girl !!
    • aastha gupta
      Thank you so much.
  • Vishal ;)
    lot of thanks …
  • Thiago
    That’s amazing ! Succinct, to the point and very explanatory!
    Thank you!
  • css.php

    When I think in getting solutions for my Ecommerce Platform, I think of Webkul. They have been such a blessing in our business. We have spent thousands of dollars in support and modules from them. We love their support team. They work very closely with us, and they always go the extra mile when we need help.

    Michael Urresta

    Michael Urresta

    Talk to Sales

    Global

    Live Chat
    Start a Project

      Message Sent!

      If you have more details or questions, you can reply to the received confirmation email.

      Back to Home