Fragment Example In Android

fragmentscommunication

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

 

 

 

 

Comments 6

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

    What animator folder?

  2. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">