background preloader

To do

Facebook Twitter

Common Tasks and How to Do Them in Android. The ApiDemos sample application includes many, many examples of common tasks and UI features.

Common Tasks and How to Do Them in Android

See the code inside <sdk>samples/ApiDemos and the other sample applications under the samples/ folder in the SDK. Drawable Resources. Bitmap File A bitmap graphic file (.png, .jpg, or .gif).

Drawable Resources

Creates a BitmapDrawable. Nine-Patch File A PNG file with stretchable regions to allow image resizing based on content (.9.png). Slide Expandable ListView - AndroidViews. By Tjerk Wolterink Not happy with the Android’s ExpandableListView android offers?

Slide Expandable ListView - AndroidViews

Want something like the Spotify app? Tjerkw/Android-SlideExpandableListView. An Emerging Android UI Pattern for Contextual Actions « Tjerk's Tech Blog. When showing a ListView on Android, there are often more actions associated with a single list item.

An Emerging Android UI Pattern for Contextual Actions « Tjerk's Tech Blog

Providing access to these actions in a simple manner is not easy. This article provides insight into how this problem was solved in the past. Consequently it explains an emerging UI pattern which provides a much better solution. And last-but-not-least, an open source implementation, which you can use in your Android project. Important note: I did not invent this pattern, it is already used by some high quality Android apps, such as the new Spotify app. Some different approaches where used in the history of Android (1). By long-pressing on the list item. All of these approaches have disadvantages. Implement Share Functionality in an Android App.

Android Drawing Separator/Divider Line in Layout. Android Holo Colors. Emulator. The Android SDK includes a mobile device emulator — a virtual mobile device that runs on your computer.

Emulator

The emulator lets you develop and test Android applications without using a physical device. This document is a reference to the available command line options and the keyboard mapping to device keys. For a complete guide to using the Android Emulator, see Using the Android Emulator. Keyboard Commands Table 1 summarizes the mappings between the emulator keys and the keys of your keyboard. Table 1. Command Line Parameters The emulator supports a variety of options that you can specify when launching the emulator, to control its appearance or behavior. Android Asset Studio - Simple Nine-patch Generator. JuhaniLehtimaeki/smashing_android_ui_example_app. Designing For Android: Tips And Techniques. Advertisement Android is an attractive platform for developers, but not all designers share our enthusiasm.

Designing For Android: Tips And Techniques

Making an app look and feel great across hundreds of devices with different combinations of screen size, pixel density and aspect ratio is no mean feat. Android’s diversity provides plenty of challenges, but creating apps that run on an entire ecosystem of devices is rewarding too. There are hundreds of Android devices with different screen sizes and resolutions. (Image credit: Android Design. At Novoda, we build Android software for brands, start-ups and device manufacturers. Getting Friendly with Eclipse Workspaces - darron schall. I've been using Eclipse for a long time, but it was only recently that I discovered the power of multiple workspaces. I feel like I should've learned this a long time ago.. but better late than never I guess!

I've never really explored the concept of the Eclipse workspace. To me, it was just the directory path that you had to specify at startup. The real meat-and-potatoes were the projects that were created in the workspace, so why care about the workspace itself? If you're anything like me, you've always worked with a single workspace and a lot of projects. Now, this isn't really a bad thing. Customizing the Action Bar. [This post is by Nick Butcher, an Android engineer who notices small imperfections, and they annoy him. — Tim Bray] Since the introduction of the Action Bar design pattern, many applications have adopted it as a way to provide easy access to common actions.

Customizing the Action Bar

In Android 3.0 (or Honeycomb to its friends) this pattern has been baked in as the default navigation paradigm and extended to take advantage of the extra real-estate available on tablets. By using the Action Bar in your Honeycomb-targeted apps, you'll give your users a familiar way to interact with your application. Also, your app will be better prepared to scale across the range of Android devices that will be arriving starting in the Honeycomb era. Just because Action Bars are familiar, doesn’t mean that they have to be identical! Blog Archive » Styling the ActionBar – Part 1. Recently on Styling Android we’ve been looking at the ActionBar, but this would not be complete without having a look at how we can customise the look and feel of our ActionBar.

Blog Archive » Styling the ActionBar – Part 1

Up to know the stuff that we’ve looked at on ActionBar has been relatively straightforward, however getting the styling right can be a little tricky. The main reason for this is simply that there is a sparsity of documentation on this issue and it often requires studying the Android source to determine how to style a particular part of the ActionBar. Before we begin, it is worth mentioning a couple of great resources. The first is Google Developer Advocate Nick Butcher’s excellent article on Customising the ActionBar. Nick’s post offers some great insights in to how to style the ActionBar, and while it was a great point of reference while writing this series, there are some areas that are not covered. Blog Archive » Styling the ActionBar – Part 2.

In the previous article we used Jeff Gilfelt’s Android ActionBar Style Generator to create some assets and we set up our base Theme.

Blog Archive » Styling the ActionBar – Part 2

In this article we’ll look at building up our styles to get the ActionBar looking how we would like it. The first thing that we need to do is set up the basic colour values in res/values/colors.xml that we used in Jeff’s Generator tool: <? Xml version="1.0" encoding="utf-8"? Android Action Bar Style Generator.

Adding ActionBarSherlock to Your Project. Please note: I originally have written this post with ActionBarSherlock in mind. For most scenarios I recommend to switch to ActionBarcompat instead. Tutorial: Getting Started with Actionbar Sherlock 4.0. More detailed tutorial. Problems with work for hire in software development. This is a /proprietary/ developer explaining why work for hire doesn't work:

Problems with work for hire in software development