Back to project page local-stories.
The source code is released under:
Apache License
If you think the Android project local-stories 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 no.hiof.stud.localstories; /*from w w w. ja v a 2 s . 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 ArticleFragment extends Fragment{ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment return inflater.inflate(R.layout.event_article_fragment, container, false); } @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); Fragment frag = getFragmentManager().findFragmentByTag("event_article_Fragment"); TextView EventDates = (TextView) frag.getView().findViewById(R.id.EventDates); String dateFrom=EventActivity.getEvent().fromDay+"/"+EventActivity.getEvent().fromMonth+"/"+EventActivity.getEvent().fromYear; String dateTo=EventActivity.getEvent().toDay+"/"+EventActivity.getEvent().toMonth+"/"+EventActivity.getEvent().toYear; EventDates.setText(dateFrom+" - "+dateTo); TextView EventText = (TextView) frag.getView().findViewById(R.id.EventText); EventText.setText(EventActivity.getEvent().text); } }