Android plot range tick labels and domain tick lables are not visible when upgraded to 0.9.8 -


i using library version 0.9.7 , everythng working expected. when moved 0.9.8, range tick labels , domain tick lables became invisible. have not done other changes other library upgrade.

please find xml

<com.androidplot.xy.xyplotzoompan             android:id="@+id/dynamicxyplot0"             androidplot.graphwidget.marginbottom="10dp"             androidplot.graphwidget.marginleft="10dp"             androidplot.graphwidget.marginright="10dp"             androidplot.graphwidget.margintop="10dp"             androidplot.rendermode="use_background_thread"             android:layout_width="match_parent"             android:layout_height="150dp"             ap:backgroundcolor="#00000000"             ap:bordercolor="#00000000"             ap:label="lead     "             ap:labeltextcolor="#757575"             ap:labeltextsize="15sp" /> 

and plot initialization.

private void initializeplot(xyplotzoompan plot, int tick, simplexyseries series) {     plot.setdomainboundaries(0, windowsize, boundarymode.fixed);     plot.addseries(series, formatter);     plot.setdrawrangeoriginenabled(true);     plot.setticksperrangelabel(constants.range_ticks);     plot.setticksperdomainlabel(constants.domain_ticks);     plot.getgraphwidget().getrangeoriginticklabelpaint().settextsize(20);     plot.getgraphwidget().getrangeticklabelpaint().settextsize(20);     plot.getgraphwidget().getdomainoriginticklabelpaint().settextsize(20);     plot.getgraphwidget().getdomainticklabelpaint().settextsize(20);     plot.getlegendwidget().setvisible(false);     plot.setbackgroundcolor(color.white);     plot.getgraphwidget().getbackgroundpaint().setcolor(color.white);     plot.getgraphwidget().getgridbackgroundpaint().setcolor(color.white);     plot.getgraphwidget().getdomainoriginlinepaint().setcolor(dkgrey);     plot.getgraphwidget().getdomainoriginticklabelpaint().setcolor(dkgrey);     plot.getgraphwidget().getrangeoriginticklabelpaint().setcolor(dkgrey);     plot.getgraphwidget().getrangeoriginlinepaint().setcolor(dkgrey);     plot.gettitlewidget().position(0, xlayoutstyle.absolute_from_right, 0,             ylayoutstyle.absolute_from_top, anchorposition.right_top);     plot.centeronrangeorigin(0);     plot.setrangebottommax(-constants.range_min);     plot.setrangetopmin(constants.range_min);     plot.setrangestep(xystepmode.increment_by_val, tick);     plot.setdomainstep(xystepmode.increment_by_val, constants.domain_tick);     adjustrangewindow(); } 

the easiest fix add style param plot's xml:

style="@style/apdefacto.dark" 

on side note, can optionally replace of formatting you're doing in code xml. additionally, there exist formal styleable attrs these params:

androidplot.graphwidget.marginbottom="10dp" androidplot.graphwidget.marginleft="10dp" androidplot.graphwidget.marginright="10dp" androidplot.graphwidget.margintop="10dp" 

while these continue work, rely on configurator older way of styling via xml. replace with:

ap:margintop="10dp" ap:marginbottom="10dp" ap:marginleft="10dp" ap:marginright="10dp" 

the full list of styleable attrs available in 0.9.8 can found here. documentation these attrs sparse @ moment, should better in upcoming 1.0 release.


Comments