Back to project page rfcx-client-stream-android.
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.
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; } }