I need to create a List view. However this list view is somewhat of a pull down menu. That is, I have to create a button on top of screen, where on clicking it, a list view will be displayed (pulled down) from top.
Can some one give me an idea about this? I mean, what is this component in Android and how do I go about it creating it?
I know the normal way of creating a list view but not this.
Hey thanks all for your replies i finally got want i wanted to implement.The following link helped me achieve it:
http://techdroid.kbeanie.com/2009/08/android-sliding-drawer-example.html
Typically you would use a Single Choice Dialog.
http://developer.android.com/guide/topics/ui/dialogs.html#AddingAList
If you want to do it Pull-down-from-top. You'll need to use Panel Custom view from this project.
If a pull-from-below will suffice, use a Sliding Drawer. (From Android 3.0, Sliding Drawer can be configured to be pulled down aswell. See Here)
Have the Listview inside the Drawer/Panel.
Related
I'm trying to create an android app which consist of a following list which has capability to expand once a user clicks on particular row.
I have already integrated an ExpandedListView to it. But there is a problem with that.
If i press on a EditText the focus wont stay, it appears there are some common issue on that scenario.
Is there is any layout structure which i can use rather than a expanded list view.
Here is the screenshot of my app
Thanks
Take a loot at here .Its a best alternative library for Expandable listview.And you will have many customization options.
I developed two menu like in Facebook app.
One of them contains expandableListView.
UseCase:
I open the menu, then I open a section. Now, My translation is closed by the redrawn, So it hides my menu.
To open my menu, I apply translation and then remove it and use offsetLeftAndRight to keep it open:
mainlayout.clearAnimation();
mainlayout.offsetLeftAndRight(pxTranslateMenu);
I tried to create my own view to solve this problem. But I have the same result when my items go from GONE to VISIBLE. When items go from INVSIBLE to VISIBLE all is OK, but i have a wrong render (free space where my items are placed).
Is there anyway of doing what i want : Keeping my menu open after clicking on section?
Thanks.
I tried to use some other component to avoid Accordion.
But i have the same problem when an EditText take focus or when i select an item in an AlertDialog.
I just found a way to overpass this problem.
I just create a new activity wich has a translucent part.
In this way, i can do what i want.
I hope that i'm gonna be able to resolve all demand by this way.
Hi I am developing an application that needs to display list of items. Clicking (or Tapping) on an item should display a description text of the item right below the item. I am talking about something like a vertical accordion.
I want them dynamically created (created in code rather than the XML). That part was completed with ease. I inflated multiple SlidingDrawer in a LinearLayout to accomplish it.
But the problem is only one SlidingDrawer is displayed in the activity. This was accomplished by giving fixed heights to SlidingDrawer. This approach will not hold as I mentioned above that the list of items is dynamically generated and also the area in the activity where the description of the item must come remains blank.
I am now looking for alternative views for accomplishing this. As I am a beginner in Android Development I cant find any that will work in android versions 2.3 and later.
You can always take a look at the SlidingMenu. The project can be found on GitHub. I guess you need to modify the behaviour a bit.
At the top there is the favorites/styles/all channels
i don't know what that widget/control is i need to know what it is
i am certain i saw it before i just can't seem to find it again.
then there is a listview which is easy to implement no help needed there
then the same control again, i need to know how to build it.
it looks like a native Android control, i know how i can make one just like it using image buttons but i am sure i am missing something.
P.S. this is an image from sky.fm app on android
EDIT: I Do no need help with the ListView i already did that
What i do need help with is how to make the "favorites/styles/all channels" buttons if there is a way to do natively.
If there isn't a way to do natively, and you are sure just say there isn't a way to do natively ( that would be a good answer )
the perfect answer would be a working code, but i am not lazy i am already implementing the code my self
There's no native control for this. It's probably a Button or maybe ToggleButton. You could create a background xml with different states for selected true or false. And when you click the button toggle the selected state.
Top might be a custom tab layout, or just a bunch of buttons with custom styling.
Main part looks like a listview with complex row views.
Bottom almost definately is a bunch of buttons.
You can implement it using ClickableListAdapter.There is also tab implementation.try it.
Just make it using image buttons and put filters in your ListView, or create your own filter form scratch !
I want to build an application and I like very much the H&M menu. Anyone can help me with some ideas how to build this kind of menu on android?
It’s an expandable menu which appear when you click on the H&M Logo.
http://img822.imageshack.us/img822/7509/hmmenu.png
The best way to go about this is implementing a Custom View in your application.
What I would recommend is to develop a ViewStub that you can drop-in and populate whenever the user presses the button. This way, you can reuse it across screens, and there is only one thing to change if you need to add/remove an item.
Hope this helps!