Android Open Source - android-jobboard Job Detail Activity






From Project

Back to project page android-jobboard.

License

The source code is released under:

Apache License

If you think the Android project android-jobboard listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package fr.ygo.jobboard;
/*from   ww w.j  ava 2s .c  o  m*/
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBarActivity;

/**
 * Created by Yoann on 05/10/2014.
 */
public class JobDetailActivity extends ActionBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        // load the view
        setContentView(R.layout.activity_job_detail);

        // if save instance state bundle is not null (orientation change, ...) then the fragment is automatically reloaded
        if(savedInstanceState == null) {

            // Create fragment and add bundle
            Fragment fragment = new JobDetailFragment();

            // Load fragment in the Activity
            getSupportFragmentManager().beginTransaction()
                    .add(R.id.fragment_job_detail_layout, fragment)
                    .commit();
        }
    }
}




Java Source Code List

fr.ygo.jobboard.ApplicationTest.java
fr.ygo.jobboard.JobDetailActivity.java
fr.ygo.jobboard.JobDetailFragment.java
fr.ygo.jobboard.data.Job.java
fr.ygo.jobboard.data.JobsContent.java