I´m a beginner on developing for Android, and I´d like to understand how to create a more complex list view, as probably you saw in Google I/O 2010, so if you have any blog/book/website/sample or anything else that could help me understand this World, it'll help me a lot.
Thanks.
I hope these links helps you:
HowTo: ListView, Adapter, getView and different list items’ layouts in one ListView
Customizing Android ListView Items with Custom ArrayAdapter
If you have Eclipse setup with the SDK I'd recommend downloading the api demos from the Android SDK Manager. There are quite a few ListView examples in there.
Related
I'm making an application about our satellites on Android. But I don't know how to get list Satellite.
Could you help me,please?
If you know a little bit to Android but want to use ListView for the first time, you will find all useful information here http://www.vogella.com/tutorials/AndroidListView/article.html
If you are really new to Android you can start with basic tutorial like this one https://developer.android.com/training/basics/firstapp/index.html
I want to implement a table with one column, or maybe a list in Android.
I would like to customize the cells.
Do you know some tutorial that can help?
Thanks in advance,
Luda
Here is a great place to start:
http://www.androidhive.info/2012/02/android-custom-listview-with-image-and-text/
This is a great tutorial.
I know, it's an old question but, I can help anyone who has got same request.
There is a TableView Library for Android. It's also open source and located in github.
There are also 2 sample apps that show how you can use tableView on your application.
For my thesis I'm trying to do a kind of market similar to the Android market. I did the db in mysql, now I'm thinking about the android client interface. I'm a beginner so i need your help.
I will have on my db a lot of app, I need to do a native app that call the db (there will be php in the middle) and show the list of the app as in the android market, so with a title, a icon, a rating and a cost. All this info are on the mysql db and I think that php will get me back to my phone a xml file with all the info I need.
This is what I suppose, but if for you should be different let me know. For example if the local SQLite should play a role in this (it will definitely have one to share metadata for apps I downloaded)
I read that for dynamic list of stuff it's better to use an adapterview that takes the elements of the list from an adapter, that is a kind of bridge with the datasource. But for example arrayadapter is based on textview only, other on imageviews only and so on...... instead my views are not so simple but are something complex with some images, some textviews, rating and so on.......
So I need to find the right adapterview and the right adapter.
Now for my purpose, for you:
Which adapterview should I use? I was thinking to use listview.
And the harder one, which adapter? Do I need to create a custom one extending the base adapter class or there are some adapters suitable for my purpose?
If textview is the base widget for arrayadapter, which one will be the base for mine? A complex widget so basically a viewgroup?
I read something about cursoradapter, but I don't know what is it and if it's what I'm looking for. If you know what google use for it's market, that would be useful :)
Explanations, examples or links are welcome
Sounds like a custom ListAdapter is what you're looking for. Here's a decent introduction.
you should take a look at aptoide and how it's build Hope it helped
http://www.aptoide.com
I have used ArrayAdapter to populate the Spinner. I want to know if it can be done using a SimpleAdapter? Please guide me in the right direction.
Thanks in advance.
If my answer here (including the follow-up comments) is correct, then you may need to add a ViewBinder to the SimpleAdapter. You can google for examples of ViewBinder implementations -- it doesn't seem to be very complicated.
EDIT: You do need the ViewBinder, at least for some earlier versions of AndroidOS (I found it's not needed for 2.2). See the other answer, and perhaps also my blog post about this.
I have a problem and i will be grateful if anyoune helps me.
Ok. I've started android programming 2 month ago. Now i am developing a simple game, nava battle. For this programm i need to build a grid, where i can place ships and coordinates. I can't seem to find out how I should be doing this?
I think i should build a custom view, which will do all that i need. If anyone could show some examle or explain how to build appropriate view i'll be happy
IMO you should consider extending or at least using a GridView and place your UI components inside it. The Adapter backing the Gridview could contain information about the co-ordinates and Images(ships).
I think the following would be useful to you:
Beginners tutorial on GridViews
Building custom components
This is an example of board game developed on Android:Chess on Android