Back to project page HRForecast-WFM.
The source code is released under:
Copyright 2014 Ahmed Shafei
If you think the Android project HRForecast-WFM 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 de.hrf.workforcemanagement; /* ww w .j av a 2 s. c o m*/ import android.app.ProgressDialog; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import de.hrf.workforcemanagement.models.Chart; /** * {@link Fragment} responsible for showing the details of the selected chart * type. It receives a call whenever new chart type is selected */ public class HorizontalBarChartFragment extends Fragment { private Chart chart; private ProgressDialog loadingDialog; // TODO Create global Variable for the Chart view public HorizontalBarChartFragment(Chart chart) { this.chart = chart; } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { /** * Edit this to inflate the corresponding layout of this fragment chart * type */ View rootView = inflater.inflate(R.layout.horizontal_bar_chart_fragment, container, false); // TODO Assign the chart view global variable using the findViewById // TODO Show ProgressBar // Show loadingDialog new Thread(new Runnable() { @Override public void run() { populateGraph(); } }).start(); return rootView; } private void populateGraph() { // TODO Populate fragment using the chart and chartView this.getActivity().runOnUiThread(new Runnable() { @Override public void run() { // TODO Dismiss the progress Dialog // TODO Show the ChartView } }); } }