Tag: ui

  • LightBox Effect for Android Dialogs

    The stock black rectangular progress dialogs on Android are ugly, so I created a simple little open-source alternative. It works by placing a translucent overlay on the Android UI with a ProgressBar and a dialog message. There’s also an alpha animation in there, to really class it up. To use it, just add the lightbox_dialog.xml…

  • Android Threading: Part 1

    The UI layer of all Android applications runs on a single thread called the UI thread. Performing long-running operations such as network access or database queries on this thread will block the user interface, and eventually crash your application with an Application Not Responding (ANR) error. In this tutorial I’ll show you a simple way…

  • Building a Custom Multi-Line ListView in Android

    This tutorial will walk you through building a custom multi-line ListView in Android. We’ll achieve this by extending BaseAdapter (or concrete ArrayAdapter) to turn a collection of objects into individual ListView items. First, let’s define the layout for our scrollable ListView by placing the following in main.xml: [xml] <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"…