I'm using androidplot to display a fixed-sized graph, which I've setted up a BitmapShader to match each Range interval and I need to set this shader to be always displayed on the graph, since it's beginning.
My problem is:
I can't intialize the graph with this shader (I've tested it using as base the DemoApp and the shader is working properly). Every time I try to get the GridRect using the method getGridRect() it returns null, no matter where I call this function during the activity creation. I can only set the shadder after the activity is created, but only with a button or something like it.
I searched through the entire source code but could not find where this measure occurs during the activity's lifecycle.
Unfortunately, I was unable the proper way of getting the gridrect mesured during it's creatiion, but I've found a way around.
I was able to define the graph height by getting the XYPlot view-height and subtract the graph top and bottom padding.
A snippet from my code: