Posts Tagged ‘ FragmentManager ’

Creating Side Menu Navigation Drawer in Android

June 6, 2013
By
Navigation Drawer in action

Navigation drawer is a UI design pattern that provides a set of menu items when user swipes from left edge of the application to the right. In Android, navigation drawer is available via Android Support library from revision 13 ( May/2013 ) onwards . An extension to this article which displays icons and counter in...

Read more »

Android Fragment Application Series

January 3, 2013
By
Android Fragment Applications List

A list of Android applications with fragments is given below : A Simple Fragment Application with backward compatibility in Android A Simple Fragment Application in Android Dynamically add fragments to an activity in Android Dynamically add fragments to an activity in a Legacy Android Version A ListFragment Application in Android A ListFragment Application with...

Read more »

Displaying TimePickerDialog using DialogFragment in Android with backward compatibilty support library

August 16, 2012
By
Time Picker Dialog

In this article we will create an Android application which demonstrate how to display a timepicker widget using dialog fragment. Since DialogFragment is introduced beginning with Android 3.0 ( API level 11 ) , we will make use Android support library to work this application in Android 1.6 ( API level 4 ) and...

Read more »

Displaying DatePickerDialog using DialogFragment in Android with backward compatibilty support library

August 16, 2012
By
DatePickerDialog using Dialog Fragment

In this article we will create an Android application which demonstrate how to display a datepicker widget using dialog fragment. Since DialogFragment is introduced beginning with Android 3.0 ( API level 11 ) , we will make use Android support library to work this application in Android 1.6 ( API level 4 ) and...

Read more »

Opening a DailogFragment on an item click in Android

July 4, 2012
By
Opening the Dialog Window

DialogFragment is a fragment that displays a dialog window on the top of the calling activity’s window. The objective of this article is to create an Android application which opens a dialog window when clicking on a country listed in the listview. In the opening dialog window, the local time of the selected country...

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 »

Dynamically add Fragments to an Activity in a Legacy Android Version

June 30, 2012
By
Main Activity with dynamically added fragment

Android begins to support fragments from the version 3.0 onwards. In those versions prior to 3.0, we have to use Android Support Library to create fragments. In this article we will create an application which adds a fragment to the main activity at runtime in Android version 2.3 using Android Support Library. 1. Create...

Read more »

Dynamically add Fragments to an Activity in Android

June 30, 2012
By
Main Activity with a dynamically added fragment

In this article , we will create an Android application in which a fragment can be added to an activity on a button click.   1. Create an Android project namely “DynamicFragments” 2. Select Android build target 3. Enter application details   4. res/values/strings.xml 5. res/layout/hello_fragment_layout.xml 6. src/in/wptrafficanalyzer/dynamicfragments/HelloFragment.java 7. res/layout/main.xml 8. src/in/wptrafficanalyzer/dynamicfragments/MainActivity.java 9. Execute...

Read more »

Be friend at g+

Subscribe for Lastest Updates

FBFPowered by ®Google Feedburner