Android Open Source - Mobile_Android About Us Fragment






From Project

Back to project page Mobile_Android.

License

The source code is released under:

GNU General Public License

If you think the Android project Mobile_Android 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 org.aisillinois.mobile;
/*from  w ww  .  jav a2 s  .  c  o m*/

import android.os.Bundle;
import android.app.Activity;
import android.app.Fragment;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.View;
import android.view.ViewGroup;

public class AboutUsFragment extends Fragment {
    public static final String ARG_FRAGMENTS_NUMBER = "fragment_number";

    public AboutUsFragment() {
        // Empty constructor required for fragment subclasses
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        View rootView = inflater.inflate(R.layout.fragment_display, container, false);
        int i = getArguments().getInt(ARG_FRAGMENTS_NUMBER);
        String fragment = getResources().getStringArray(R.array.fragments_array)[i];
        getActivity().setTitle(fragment);
        return rootView;
    }
}




Java Source Code List

org.aisillinois.mobile.AboutUsFragment.java
org.aisillinois.mobile.FragmentDisplayActivity.java