
Android
Clean and user-friendly UIs with ActionBar
DisplayMetrics
Class Overview A structure describing general information about a display, such as its size, density, and font scaling. To access the DisplayMetrics members, initialize an object like this: DisplayMetrics metrics = new DisplayMetrics (); getWindowManager (). getDefaultDisplay (). getMetrics ( metrics ); Summary ConstantsAndroid Tabs with interacting map and list views « Josh Thought
Last tutorial , we wrote a simple app that displays two interacting list views in a TabActivity . In this tutorial, we will up the ante and add a MapView as the content of one of the tabs. Why again are we using multiple views in an activity instead of using a separate activity for each tab content? Remember, we want our tabs to be able to easily interact with one another, and keeping them as views allows us to handle the logic and interaction within one activity. So, our goal in this tutorial is to have a list of geo coordinates and when we click on an item in the list, our map view goes to that location. First off, let’s create an XML layout that contains a TabHost , TabWidget , a ListView , and a MapView .Android SDK: Using Custom View In XML Based Layout
This tutorial demonstrates how to use a custom view class (that is a class derived from or its subclass) in an XML layout. This demonstration assumes basic familiarity with Android SDK and its XML layouting mechanism, the code is written in Android SDK 2.1. Creating The Custom View Class To begin with, let’s create a custom view class. For demonstration purpose, the one I am using is below: package com.permadi.example;Android custom Dialog
Posted by Tonio | Filed under Tutorial Android provides a AlertDialog class that ease the building of Dialog windows throught it’s Builder inner class. However, it’s not possible to customize these AlertDialog windows. To give AlertDialog windows a custom Look and Feel, a solution is to create application specific AlertDialog and AlertDialog.Builder class.How to Create Custom Window Title in Android | All About Web & Mobile Application Development
A layout defines the visual structure for a user interface, such as the UI for an activity or app widget . You can declare a layout in two ways: Declare UI elements in XML . Android provides a straightforward XML vocabulary that corresponds to the View classes and subclasses, such as those for widgets and layouts.
Tab Layout
Button
Represents a push-button widget. Push-buttons can be pressed, or clicked, by the user to perform an action. A typical use of a push-button in an activity would be the following: public class MyActivity extends Activity { protected void onCreate ( Bundle icicle ) { super . onCreate ( icicle ); setContentView ( R . layout . content_layout_id ); final Button button = ( Button ) findViewById ( R . id . button_id ); button . setOnClickListener ( new View .Learn Android : Android Layout Tutorial
An Android layout is a class that handles arranging the way its children appear on the screen. Anything that is a View (or inherits from View) can be a child of a layout. All of the layouts inherit from ViewGroup (which inherits from View) so you can nest layouts. You could also create your own custom layout by making a class that inherits from ViewGroup. The standard Layouts are: AbsoluteLayout FrameLayout LinearLayout RelativeLayout TableLayoutResource Types
To help you understand some fundamental Android APIs and coding practices, a variety of sample code is available from the Android SDK Manager. Each version of the Android platform available from the SDK Manager offers its own set of sample apps. To download the samples: Launch the Android SDK Manager.

