Is it possible to get
this effect on a ListView in native Android? There are other alternatives like creating the list in HTML5 CSS and using phonegap etc; but it would be nice if it can be done by modifying the default behavior of Android ListView . Any ideas?
Would ExpandableListView work?
If you want rounded/beveled corners on the ListView, check this question out.
As for the individual items' backgrounds, you will probably have to make the graphics yourself.
Related
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
So I've been looking into creating a "fancier" loading spinner for Android and the design that I am thinking of is the folowing:
Here is a live version of such a spinner using CSS:
http://codepen.io/xixao/pen/jvxFc link
Idea
My idea is to somehow put two spinners on top of each other - make one spin the opposite direction.
Question:
I am wondering if there will be any pitfalls in using this kind of design? Has anyone tried layering more than 1 ProgressBar elements to work in a synchronous state.
I hope, you will find appropriate solution in this collection of different ProgressIndicators.
I'm building an android GUI and currently i'm building an ListView. I've based the rest of the appearence of my GUI on the backgroundcolor of individual views. I tried to do the same with my layout in the ListView but the commands do nothing. I've concluded by tests and some research that it's the ListView which forces transparency.
Is this possible to override? Please help :)
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 pretty new to all this Monodroid stuff.
I am porting my Windows Phone Applications over to Android, so far so good as far as recreating the AXML UI but when trying to port my custom usercontrol, that inherit from the UserControl class, i can't seem to figure out how to do it.
Could someone give me a small example?
What i actually want to do is to create a custom reusable control that have a simple colored rectangle on the left and some text on its right.
I want to be able to populate a listview(don't know how to do that one either) by instanciating the control as many times as i need it.
I have no clue how to create the control itself and instanciate it to fill the listview programmatically.
Thanks in advance!
I would recommend reading through this set of tutorials on Xamarin's site for an introduction to how lists work in Android. Rather than using a custom "control", it sounds like all you really want is a custom row layout, which is covered in Part 3.