Download the First UI Sample Kit

by Suzanne Alexandra (suzannea) on 10-15-2009 11:25 AM - last edited on 10-15-2009 11:25 AM

If you were at MOTODEV Summit last week, you may have come to the Tech Lab or to one of my talks and seen the first pack of UI samples we've released, the Widget Pack.

But if you weren't there, I can clue you in. We've heard from many of you that you want to create Android™ applications that users love, but that designing and building Android UIs can be a challenge, even with the XML layouts and UI framework built in to Android.

So we'd like to help by creating sample UI resources that you can extend or adapt. These can include XML layouts, 9-patch images, source images, Java classes, or anything that would help you.

The Widget Pack is the first group of UI samples. It's now available on the MOTODEV site, on the same page where you download MOTODEV Studio for Android. The Widget Pack has sample UI pieces for a widget that displays a photo slide show, including:

 

  • Two widget layouts, one with a frame and one without
  • A main activity layout
  • Sample 3-state buttons with a virtual touch area
  • A custom swipe class that works well on the Motorola CLIQ™
  • A Toast that responds to a long press

 

The non-frame version of the widget fits the entire photo within the widget area, even if the photo takes less space than the full widget area. The frame version uses the full widget area, but centers the photo and crops it to fit. Some people prefer one, and some the other.

 

When you tap the widget, the main activity layout opens. You can swipe to move between photos, or touch the arrow buttons, or select a button with the 5-way navigation pad.

 

The sample UI code runs on the Android 1.5 or MB200 emulator. But if at all possible, run it on a CLIQ to experience the light and easy swipe, the virtual button touch area, and the aliveness when you long press a full photo screen.

 

You don't need to build a photo widget to use these samples. You can easily adapt them to another type of application or widget.

 

When you download the code, please remember:

 

  • Add some photos of your own -- see the ReadMe file for instructions.
  • The code is just UI samples, not a full working widget. You'll see some hard-coded values. You can replace these with dynamically obtained content in your code.
  • This is an Alpha release, version 0.9. The samples are tested on only one device, the Motorola CLIQ. We'll release a 1.0 version soon.


The sample uses the design goals I mentioned in my talk - Simplicity, Layering, Aliveness, and Relevance.

We hope you like it. If you have feedback, questions, or requests for more UI samples, post on the MOTODEV Android developer boards. You can also follow me on Twitter for more tips on Android UI design.

 

 

Copyright (c) 2009 Motorola, Inc. All rights reserved.

 

widget-composite-export.jpg
Comments
by anon(anon) on 10-17-2009 01:00 PM
This is really exciting news.
by robert(anon) on 10-22-2009 02:19 AM
thank you so much
by jsharif(anon) on 10-28-2009 02:00 PM
thank you so much
by john scott(anon) on 10-31-2009 05:55 PM
if i could just download all of the specs for moto developing and it's overall destination, i could show better solutions and new techno's for our future. if it's a thought it's concievable
Post a Comment
Be sure to enter a unique name. You can't reuse a name that's already in use.
Be sure to enter a unique email address. You can't reuse an email address that's already in use.
Type the characters you see in the picture above.Type the words you hear.
About MOTODEV Blog
The MOTODEV Blog keeps you updated on mobile app development news from MOTODEV and the Android developer community.

Subscribe to our RSS feed Subscribe via RSS

Follow Us:
Fan MOTODEV on Facebook Join the MOTODEV LinkedIn Group MOTODEV on YouTube

Our Blog & Comment Policy
Opinions expressed here and in any corresponding comments are the personal opinions of the original authors, not of Motorola. The content is provided for informational purposes only and is not meant to be an endorsement or representation by Motorola or any other party.

Remember, when you comment, please stay on topic and avoid spam, profanity, and anything else that violates our user guidelines. All comments require approval by Motorola and can be rejected for any reason.

For customer support issues with your Motorola phone go to the Motorola customer support website.