Coder Social home page Coder Social logo

Comments (10)

rbarman avatar rbarman commented on July 26, 2024

I don't understand. Are you saying hide the search icon in the action bar on the main activity?

from brainy-quote-app.

chan96 avatar chan96 commented on July 26, 2024

Yes, until the user presses the search button on the main screen. If the user cancels a search by pressing the X symbol, then it will be hidden again. This is mainly for the main screen.

from brainy-quote-app.

rbarman avatar rbarman commented on July 26, 2024

Sure.

from brainy-quote-app.

rbarman avatar rbarman commented on July 26, 2024

screenshot_2013-12-20-22-22-43

There's another thing that we should think of. The blue search button is visible when the android keyboard pops up.
The user might click on the blue search button to search which will do nothing as the button just opens up the search view.

We could ...

  1. Move the blue buttons lower
  2. Set the blue buttons invisible when the search view is not iconified.
  3. other

from brainy-quote-app.

chan96 avatar chan96 commented on July 26, 2024

I am not really sure. If we make the buttons disapear, it would disrupt the layout. If the buttons are moved lower, there seems to be too much white space towards the center of the page.

Would it be possible to make the search button do a search, once the search field becomes visible for typing? Another idea is to start a new activity with only a search bar, or have the search bar appear right above the buttons on the main screen, similar to google's homepage, but this seems kind of cheesy.

from brainy-quote-app.

rbarman avatar rbarman commented on July 26, 2024
  1. How would making the buttons disappear disrupt the layout?
  2. I agree the buttons should not move any lower
  3. It should be possible to make the search button do a search. It would be a bit clunky though as the onClickListener for the button would have 2 functions then, opening the search and executing a search. We might have to set a boolean to do this effectively.
  4. I don't think starting a new activity with a search bar is necessary. This is the same thing as have the image buttons invisible.
  5. The searchView in the actionbar will stay in the actionbar. If you want a search interface above the button then you need to create a new search dialog or widget within the Main Activity.

from brainy-quote-app.

chan96 avatar chan96 commented on July 26, 2024
  1. I feel like the user does not really expect the buttons to disappear, and when they do, they open up a blank space in the center.
    2 - 5. Same.

from brainy-quote-app.

rbarman avatar rbarman commented on July 26, 2024

You're right.
So..

  1. Keep as is
  2. Let the user press search and launch Specific Quote Activity

I'm now leaning towards (2) because the user can click on randomButton and be able to launch Random Quote Activity while searchView is iconified. Or we could always not let the user be able to launch the activity while searchView is iconified, but this is kind of a step back.

from brainy-quote-app.

chan96 avatar chan96 commented on July 26, 2024

(2) sounds good. To clarify, so when the user presses the search button after entering something, the specific quote activity is launched?

from brainy-quote-app.

rbarman avatar rbarman commented on July 26, 2024

No.

Currently the onClickListener of searchButton will only open the searchView (set isIconified to false).
The randomButton will launch the random quote activity though.

The specific quote activity is currently being launched by the onQueryTextSubmit of the onQueryTextListener of the searchView

from brainy-quote-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.