Hello and thanks for taking the time!
I'm somewhat new to Android, and working on an app that has a basic search field and some search results. Below the search field I'd like to add more options in a sliding down box, in such way that this box would be expanded to be placed above the elements below the search box, as can be seen here:
http://bit.ly/13Ynw5V (click on the menu icon to slide down the box).
What would you say be the most elegant way to implement this sliding box?
It's worth noting, that the sliding effect would be really nice, but it's not the main issue here - I'm more interested in the open/close functionality, and correctly placing the box OVER the results box.
Thanks!
Related
I looked for the question everywhere on the Internet but can't find the answer. What I found is to hide the whole button tray all together.
When the keyboard is down, the button is shown as in the picture.
But when the keyboard is showing the icon changes to -
My problem is to change the button (as in the second image), when my emoticons are showing. So, is there any way by which I can programatically change the button on an event and change it back on another event?
I'm afraid this is not possible yet. Perhaps this will be implemented in later versions of Android.
Not all devices have an onscreen navigation bar, a lot of devices still have hardware buttons.
Nevertheless, you'll might find this article interesting: http://arpitonline.com/blog/2014/07/27/improving-androids-navigationbar/
I have a news app.It is supposed to launch by swiping on the screen(homescreen or while in any other activity like switchr app).I learned to code swiping patterns but in my case I have to do exactly in the following way(swiping bottom right to top left)..Kindly have a look over following pictorial representation
1.Firstly app should launch by swiping bottom right to top left on the screen
2.next,show the user with list of scrollable arc menu buttons embedded in it like second image
3.when a user clicks on particular button it has to show a brief description about the content like third image
my problems:
creating arc like scrollable menu on bottom right side of the screen(I googled sia ahmed's solution over here ,it helped me a bit)
creating that parachute like structure(image 3) when user clicks particular bubble like button in arc menu..
please guide me
For the menu check out arcmenu by daCapricorn on github. Also see this question.
The balloon bit is trickier. I know of a balloon hint code for android but i haven't seen it in action.
Hope this helps!
I am developing an app for Android, which is supposed to behave like a lightweight modal box that presents a drop-down to search and choose stuff from. I decided to use the AutoCompleteTexView for that. My question is, why does the keyboard happen to cover part of the items? I though that AutoCompleteTextView will automatically move up to give space to the keyboard. It doesn't. In fact, it hangs at about the middle of the screen.
The layout that is holding the ACTV is a simple LinearLayout with vertical orientation.
So I have implemented my application's Quick Search Box. Everything is going fine, but the icon that appears on the left side of the search box is my application's launcher icon. But I would like to customize it dynamically.
I would like to know if it's possible, and if so, how can I achieve?
Thanks in advance.
I have a button that says "Sort" and when a user normal/short presses the button, I want a menu to appear with the various sort options. Looking around online there doesn't seem to be a straight forward answer to which route is considered best practice. I'm looking to have a menu that looks similar to this:
with icons and text.
For an example, click the Layers button in the Google Maps app. It opens a list of options on a single short click. It has a title at the top and icons for each option. (The icons aren't super crucial)
Should I use a Context Menu? If so, how do I do it without a long press. Should it be a Spinner? If so how do I change the appearance to use a button instead of the normal drop down box.
Spinners are for stateful selection, which sounds like what you want here. The user will select one sort option from a list, and there is a concept of a "current" sort that stays visible to the user.
For something like the activity picker in your screenshot, Falmarri's suggestion of an AlertDialog is reasonable. The difference between choosing a sort and the activity picker is the "stateful selection" distinction. Spinners have a concept of a currently selected item already provided for you, dialogs are more general.
http://developer.android.com/reference/android/app/AlertDialog.html