Android Open Source - rfcx-client-stream-android Forest Detail Fragment






From Project

Back to project page rfcx-client-stream-android.

License

The source code is released under:

Apache License

If you think the Android project rfcx-client-stream-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.rfcx.android.stream;
/*from  www .ja  va 2s .c  o  m*/
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class ForestDetailFragment extends Fragment {

    private static final String ARG_DESCRIPT = "descript";

    private String descript;

    private TextView mDescriptText;

    public static ForestDetailFragment newInstance(String descript) {
        ForestDetailFragment fragment = new ForestDetailFragment();
        Bundle args = new Bundle();
        args.putString(ARG_DESCRIPT, descript);
        fragment.setArguments(args);
        return fragment;
    }

    public ForestDetailFragment() {
        // Required empty public constructor
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (getArguments() != null) {
            descript = getArguments().getString(ARG_DESCRIPT);
        }
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View rootView = inflater.inflate(R.layout.fragment_forest_detail, container, false);
        mDescriptText = (TextView) rootView.findViewById(R.id.descript_text);
        mDescriptText.setText(descript);
        return rootView;
    }

}




Java Source Code List

me.cafecode.lib.dotindicatorlib.ApplicationTest.java
me.cafecode.lib.dotindicatorlib.DotIndicator.java
org.rfcx.android.stream.ApplicationTest.java
org.rfcx.android.stream.BaseActivity.java
org.rfcx.android.stream.ForestDetailFragment.java
org.rfcx.android.stream.LoginActivity.java
org.rfcx.android.stream.RainForestActivity.java
org.rfcx.android.stream.view.SignUpFragment.java
org.rfcx.android.stream.view.VisualizerView.java