Monday, June 25, 2012

arrayadapter example in android


package de.vogella.android.listactivity;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;

Saturday, June 23, 2012

Tabbed Applications in Android


Introduction

Sometimes, we want to wrap multiple views in a single window and navigate through them with a Tab Container. This can be done in Android using TabHost control.
There are two ways to use a TabHost application in Android:
  1. Using the TabHost to navigate through multiple views within the same activity.
  2. Using the TabHost to navigate through Actual multiple Activities using intents.
We will explain both ways through this tutorial.

Anatomy of Tabbed Application

Monday, June 18, 2012

A simple example using VideoView to play 3gp from YouTube

A simple example using VideoView to play 3gp from YouTube

ScrollView and HorizontalScrollView

ScrollView and HorizontalScrollView

ScrollView and HorizontalScrollView are layout container for a view hierarchy that can be scrolled vertically or horizontally by the user, allowing it to be larger than the physical display. A ScrollView/HorizontalScrollView is a FrameLayout, meaning you should place one child in it containing the entire contents to scroll; this child may itself be a layout manager with a complex hierarchy of objects.