Home » view

Tag Archives: view

Android Drag and Drop Example

The Android System provides Drag and Drop framework, which facilitates users especially to move data from one View to another within the current layout. It is good to mention that many apps take advantage of the graphical drag and drop gesture that the system procures. The framework contains the following three components, which support drag and drop functionality: Drag event ...

Read More »

Gallery View without pictures

This is an example of Galery view on Android without any pictures. Gallery View is one of Android’s widgets. It provides a list of scrollables elements, much like the normal ListView or even a HorizontalScrollView. In order to use Gallery View with custom elements follow these steps: Create a Layout xml file with describing the layout of the Gallery elements Add a Gallery ...

Read More »

Creating an AppWidget for the home screen

In this tutorial we are going to see how can you create an AppWidget of your Android Application for the home screen of the device. Since version 1.5, the Android SDK includes the AppWidget framework, a framework that allows developers to write “widgets” that people can drop onto their home screen and interact with. The use of widgets is very ...

Read More »

Customized dialog

In this tutorial we are going to see how can we use Customized dialogs for user interaction in Android. The easiest way to do that is to use the Dialog class. The basic steps to create a Customized dialog are: Create a new xml Layout file that describes the content of the Dialog box and how it will be rendered use ...

Read More »

Using options menus

In this example we shall show you how to create and display option menus in your Android Application. It is very important to use option menus because they enhance the user experience and improve user interaction. To create Option Menus in Android one should perform the following steps: Override the onCreateOptionsMenu(Menu menu) method of the Activity class menu.add method to ...

Read More »

Customized list view

This is an example of how to create a Customized ListView on on Android. The normal ListView component of Android is very useful. But we have the ability to further customize it which makes it more flexible. In order to create your own, customized ListView, follow these steps: Create a new XML  file that describes the layout of each row Create ...

Read More »