views:

382

answers:

1

Hi folks,

I am trying to teach myself the basics of Android dev. At the moment I am experimenting with home screen widgets. I would like to create a simple widget that lists all my bookmarks. Somewhere in my googling I read that ListView is not usable in a widget. What's the best way to display a scrolling list in a widget? An example would be fantastic, but otherwise point me in the right general direction and I can research further.

Thanks in advance, Dany.

A: 

I've only seen a huge list widget on phones with HTC Sense - example. HTC Sense has a widget like that for Stocks, Twitter, etc. I don't think it's a good idea to develop huge widgets like that, because they take up too much space and some phones are limited to 3 screens (screens that you can put your app shortcuts, widgets and etc).

This is a good article on Widget UI Patterns: Widget Design Guidelines

Seesmic for Android has a 'list' widget with latest tweets:Seesmic Blog Widget Screen

There's also an article on UI Patterns, based on the new Twitter app, hope that helps you - Link and a video (Android UI design patterns).

Re: user controls (like in .NET), Android Views and in your case 'ListView' is what you might use for your app. You also mentioned .NET (Visual Studio), you might be interested in MOTODEV Studio. It's basically a better version of Eclipse (with Android SDK) that has common code snippets and other cool stuff.

vladikoff
Thanks - I have downloaded MOTODEV Studio and am checking it out right now.This is mostly a learning experience for me, but also something that's useful. It's unlikely the widget will make it to the market any time soon if I get around to finishing it. Mostly it is for my own benefit. As far as I know ListView cannot be used in a widget - can you confirm this?
DanyW