I'm creating a new activity using a linearlayout and I want to make something similar to the stock version of Google Play Music'se tab-like down-arrow buttons (sorry didn't clarify: the button list of Artist and their album when pressed, NOT the recent/artists/albums near the top):
I want to be able to have those vertical tab/buttons, which I can tap and it'll pull down it's items, but I don't know what to start with; I'm cross-eyed from looking at all the different ways of trying to achieve this.
Seems like you're looking for ExpandableListView. You can style the items just as you would with a normal ListView (inflating your own layout for every item). The adapter is a little more complex than an adapter for a ListView, but there's good tutorials.
Related
I want to know, can we make list of item that not having same width and stand after each other, like tags in blog website
for example:
shoes, clothes, shock,
burger,
so the item goes next after previous one, but in different width. im trying listview it goes new line every item, if gridview, it consistent width not fill the need.
As I'm in beginner level of android programming, I want to know if we can achieve that?
Hope this is what you are looking for link
I'm looking to create a music app and I'd like to make a GridView similar to what Google Play uses where they inject elements that will span rows and columns like the Soilwork album does in this screenshot:
I've thought about using a ListView and populating rows with custom elements, but I couldn't think of a good way to use that with ViewHolder pattern, or really a way to make that reusable and account for differing number of items in width based on screen size (for example, the grid is only two items wide on phones, and "large" items span both columns and only one row).
I've also thought about using a ScrollView filled with custom ViewGroups, but that seems to run into the same issues I previously mentioned.
I next thought about using GridLayout, but that doesn't accept ListAdapters, and doesn't seem tuned to the kind of usage I'm looking at (nor does it seem to scroll)
I'd greatly appreciate if anyone could give me somewhere to start on this, or could point me to a library that does this. I've already checked out StaggeredGridView but it doesn't seem to accomplish what I'd like. My ideal solution would be a view which lays out items on an even grid like GridView and accepts view from a ListAdapter, also like GridView, but allow for elements to span, using the single cell constraint of GridView as the default behaviour.
Cheers.
EDIT
I have a perfectly functioning GridView as shown below, but I'd like to make items at regular intervals (every nth item) span more than one column and/or row, as shown in the previous screenshot.
Check out Parchment. GridDefinitionView may help you achieve the UI you are looking to build.
I need to create listview like in this picture. The listview item go over each other like google chrome tabs.. I can move up or down listview item... Could anyone tell me a good advice or tell me examples how should I do this?
Thanks
You need an iOS passbook style component like CardWalletView
You have to create some accordions type control
Here is a link which will help you
http://android-puremvc-ormlite.blogspot.com/2011/07/android-simple-accordion-panel.html
when you close the previous view you will not animate that view to the end you have to keep some margin of 2 to 3 pixels to show view as you want
Another idea is you should create some view and use drag and drop... But also you have to some Math calculation... Try this maybe you can get something
Expanding list views may help you with that. I assume that your list view will essentially expand on click and shift everything below the selected area downwards revealing only the content of that selected tab.
Expanding list views utilize the parent-child methods that would allow you to create a very rough view of what you are showing. Styling and customizing those rough layouts afterwards could very well allow you to get that look you're looking for.
Here are some links that might be useful.
http://www.androidhive.info/2013/07/android-expandable-list-view-tutorial/
http://developer.android.com/reference/android/widget/ExpandableListView.html
I'm relatively new to Android development, so bear with me. I'm creating an app that features many calculations and formulas for weather, distance, speed, etc. Anyway, I'm looking to create the main menu with rows of buttons similar to how the iPhone does it, i.e. you press one button row and it takes you to the next page of a rows of buttons.
Sort of like:
Is this done using layouts and controls or a menu?
Your best bet would be to use a list view. I did this where you would have a list of items, similar to your home, About Drupal, Typography, etc., and then when the user clicked on one of those buttons, you would be taken to a detail page, or in Android's case, another Activity. Here is a great tutorial that will show you how to implement the list view:
http://www.ezzylearning.com/tutorial.aspx?tid=1763429
Hope this helps.
I want to create a horizontal listview which contain many item, one item will contain a image. When user slide listview => the count of item will be fix when it display, example display only 3 or 4 image. How can I do that? Many thanks.
Edit:
I use this
to create a HorizontalList view, everything is ok but I don;t know how to make the Next and Previous button work! Any idea?
Instead of a horizontal ListView (which, as far as I know, isn't offered by the Android SDK) you can use a HorizontalScrollView. You can add the items like to any other kind of layout class.
It looks like what you are looking for is a Paginated Gallery. I have written one here.
Its still only a couple of days old but hopefully the included Activity code will get you off the ground.