How to make graphview background completely blank, not even show x axis and y axis. couldn't find anything on web
Asked
Active
Viewed 2,051 times
1 Answers
12
I got my solution by adding these lines
mygraphview.getGridLabelRenderer().setGridStyle(GridLabelRenderer.GridStyle.NONE);// It will remove the background grids
mygraphview.getGridLabelRenderer().setHorizontalLabelsVisible(false);// remove horizontal x labels and line
mygraphview.getGridLabelRenderer().setVerticalLabelsVisible(false);
// remove vertical labels and lines

abh22ishek
- 2,631
- 4
- 27
- 47
-
3In addition, you may have to set the background to invisible: mygraphview.setBackgroundColor(Color.TRANSPARENT); – Geraldo Neto Apr 11 '16 at 02:35