I wish to design an android based application, which will have typical drop down menus as in common desktop based GUI system.
How do I achieve this?
Your drop down menus in android are called Spinners. You can find more information for this here:
http://developer.android.com/guide/topics/ui/controls/spinner.html
How about expandable list view?
http://developer.android.com/reference/android/widget/ExpandableListView.html
Related
I'm wanting to create the simple menu as defined in:
https://material.google.com/components/menus.html#menus-simple-menus
I've seen online that a PopoverMenu is an option, however that doesn't cover the emitting element and doesn't align the current selected item over the emitting element. What type of view would be used for the Material Design Simple Menu?
that's just a PreferenceScreen with material design elements. thats how it would look with a device running 5.0 and up
Hi I'm trying to create listview on Android 4+ similar to those available in material design, something like this https://developer.android.com/design/material/videos/ContactsAnim.mp4 but with some modifications, after click on item I would like to expand this item in a pretty way scrolling to almost top of the list and making rest of items darken. What is the best way to achieve something like this on Android 4? I was trying to use ExpandableListView but it looks really awfull. Or maybe there is some library which can provide this functionality?
Yes you could use Transition API for building animations like this. Most part of this API could be used in android 4+ bu using, for example, this library
I'm building an App for Android that already exists for iOS. On iOS, we really like to use the listview grouped style to show details and forms. It is really useful to show details of objects that we don't know how much properties they have before loading it.
I know that Android doesn't have a similar tableview style. And I don't want to use a custom library to recreate it, because I don't want to force an iOS like interface to my Android's users.
But how would you create a consistent Android interface that show similar information? Do you have example for me?
First of all, your instinct to not force iOS style UI onto Android users is correct and I respect you for it.
Android's ListView is roughly the equivalent of iOS's UITableView. There are important differences. For instance, you should never use a ListView inside another scrollable container. If a ListView is in a particular layout, it should (usually) be the only scrollable component. If you want multiple ListViews in a layout, you probably don't want ListViews at all. You should instead use (vertical) LinearLayouts and add the items in order.
Cyril Mottier writes excellent posts on implementing custom behavior for Android's ListView.
If you want to display data in a list then you can use the ListView. Here is a great article about how to use it.
I am new to Android and I am developing an app in android 2.1. The UI has a list view in it and on focusing the list shows a dropdown menu as in this image:
http://developer.android.com/design/media/app_structure_gmail.png
How can I design a menu for a list view similar to this?
Did not get you , even your link is not working. Might be you are talking about Expandable list like this.
Look at above link.
There are no controls in Android that provide Tree-like View. There is an ExpandableList View which I suspect could be used to creating one.
Have you tried imlpementing such a control?
How would one implement such a control in Android?
Our company just open-sourced a small widget that is doing just that... You can see all the sources and add the project (as a library) to your own android project:
http://code.google.com/p/tree-view-list-android/
take a look at ExpandableListView. Besides, see following thread:
http://www.mail-archive.com/android-beginners#googlegroups.com/msg03587.html
this solutions are, very complicate. but can use a ExpandableListView of more levels.
Example: How to implement multilevel ExpandableListview in Android?