Posts Tagged ‘ listview ’

Creating a floating contextual menu in Android

July 24, 2012
By
floating_contextual_menu_context_featured

In this article we will see how to create a floating contextual menu in an Android application.In the main activity, a list of country names will be listed in listview. On long pressing an item, the contextual menu will be appeared. There will be three menu items in the context menu such as “Edit”,...

Read more »

Adding Navigation Tabs containing listview to Action Bar in Android

July 18, 2012
By
actionbar_navtab_land_featured

Action bar is a container and is visible at the top of the screen. It can contain the items such as application icon, title of the activity, navigation tabs, key actions and options menu. Action bar is introduced in Android version 3.0 ( API Level 11 ) . In this article, we will see...

Read more »

Item Long Click handler for ListFragment in Android

July 4, 2012
By
Item Long click event handler for ListFragment

The objective of this article is to create an Android application which handles the long click event on the listfragment items. If you want to see the screenshot of this application, please jump to the end of this article 1. Create an Android Project namely “ListFragmentItemLongClick” 2. Select Android build target for this application...

Read more »

Itemclick handler for ListFragment in Android

July 3, 2012
By
ListFragment in landscape orientation

The objective of this article is to create a multi-pane android application using fragments. In the first pane, the list of country names will be displayed using ListFragment. On clicking a country, its details will be displayed in the second pane. This is the behaviour if the application is viewed in the landscape orientation....

Read more »

A ListFragment Application with backward compatibility in Android

July 2, 2012
By
Countries List Using ListFragment

ListFragment is a fragment class available in the package android.app and it is used to list a set of items in as a listview. Fragment is a new concept which is introduced in Android 3.0 and its higher versions. But we can create applications having fragments for the prior versions of Android till 1.6...

Read more »

A ListFragment Application in Android

July 2, 2012
By
ListFragment Demo

In this article we will create an application which displays a list of countries using ListFragment. ListFragment is a subclass of Fragment class which can display a set of items in a listview and facilitates to exist as a fragment. We are building this application for Android 4.0 in which fragments are supported by...

Read more »

Implementing CheckAll and UncheckAll for a listview in Android

June 21, 2012
By
Implementing CheckAll and UncheckAll for a listview in Android

In this article we are implementing the operations “CheckAll” and “UncheckAll”  for a listview in Android 1. Create an Android project named ListViewCheckAll 2.Select build target for this application 3. Enter application details 4. Open and update the file res/values/strings.xml with the given below code 5. Open and update the file res/layout/main.xml with the...

Read more »

Deleting Selected Items from ListView in Android

June 21, 2012
By
Deleting Selected Items from ListView in Android

In this article, we will create an application in which users select the required items to be deleted and click on “Delete Selected Items” button for deleting them. Actually this article is an extension of the article Dynamically add items to ListView in Android, in which we have created an application to add user...

Read more »

Dynamically add items to listview in Android

June 20, 2012
By
Dynamically add items to listview in Android

In this article we are creating an application in which user inputs items to a ListView via an EditText widget. An extension to this article is available in the article titled “Deleting Selected Items from ListView in Android“,  where deleting a listview item is discussed. 1. Create an Android project namely “AddItemsDynamically” 2. Select...

Read more »

ListView with ListActivity in Android

June 20, 2012
By
ListView with ListActivity in Android

In this article, we are creating a listview widget using ListActivity. In this demo, we are not using any layoutfile instead we make use the default layout of the listview. 1. Create an Android project namely ListViewWithListActivity 2. Select a build target for this application   3. Enter application details 4. Open and edit...

Read more »

Be friend at g+

Subscribe for Lastest Updates

FBFPowered by ®Google Feedburner