Fixed issue where throughput graph had a spacing when turning the phone
This commit is contained in:
parent
b266a711e7
commit
f00bd440a7
1 changed files with 3 additions and 2 deletions
|
|
@ -62,14 +62,15 @@ public class StatusFragment extends Fragment {
|
|||
upGraph = new GraphViewSeries("Upload Throughput", new GraphViewSeriesStyle(Color.RED, 3),
|
||||
new GraphViewData[]{new GraphViewData(0, 0)});
|
||||
|
||||
LineGraphView graphView = new LineGraphView(this.getActivity(), "GraphViewDemo");
|
||||
LineGraphView graphView = new LineGraphView(this.getActivity(), "GraphView");
|
||||
graphView.addSeries(downGraph);
|
||||
graphView.addSeries(upGraph);
|
||||
//graphView.setDrawDataPoints(true);
|
||||
graphView.setScrollable(true);
|
||||
graphView.setViewPort(0, 120);
|
||||
graphView.setScrollable(true);
|
||||
graphView.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
|
||||
graphView.getGraphViewStyle().setGridStyle(GraphViewStyle.GridStyle.BOTH);
|
||||
graphView.setShowVerticalLabels(false);
|
||||
|
||||
LinearLayout layout = (LinearLayout) view.findViewById(R.id.graph);
|
||||
layout.addView(graphView);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue