Fragment Example In Android

This example shows Arc effects of graphics in android.

 

Algorithm:

 

1.)  Create a new project by File-> New -> Android Project name it FragmentExample.

2.)  Write following into main.xml:

 

 

3.)  Create and write following into fragment.xml:

 

 

4.)  Create animator folder and write fragment left,right, entry and exit animation.

5.)  Run for output.

 

Steps:

 

1.) Create a project named FragmentExample and set the information as stated in the image.

 

Build Target: Android 4.0

Application Name: FragmentExample

Package Name: com. example. FragmentExample

Activity Name: FragmentExampleActivity

Min SDK Version: 14

 

 

2.) Open FragmentExampleActivity.java file and write following code there:

 

 

 

 

3.) Compile and build the project.

 

 

Output

 

 

 

 

Leave a Comment:

6 comments
sushant patekar says January 17, 2013

Thank You!!!
Very helpful

Reply
Arhtur says March 4, 2013

I kinda lost it at this step:
Create animator folder and write fragment left,right, entry and exit animation.

What animator folder?

Reply
Rodney Bluming says March 5, 2013

Thanks for sharing this great tutorial!

Reply
Oussama says May 16, 2013

Hi,

I didn’t understand the fourth step

4.) Create animator folder and write fragment left,right, entry and exit animation.

I would be thankfull if you explain it more.

Thanks in advance.

Reply
ggmax says June 29, 2013

hi thank you for creating this fine example. can you put your source project folder to download.

Reply
film senza limiti says October 23, 2013

The overall look of your website is great, let neatly as the content material!

Reply
Add Your Reply