wangyao5 / achartengine

Automatically exported from code.google.com/p/achartengine
0 stars 0 forks source link

GraphicalView covers/hides another view in same Layout #442

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is more of a request for help initially ....
I have an app that is based on multiple Fragments, each Fragment (view) is like 
a separate Tab.  I have a main Layout (multi-fragments layout) 'hosting' the 
individual layouts of the Fragments.    
On the main-Layout, I have another specific small-square view which is a 
SurfaceView for Camera Preview feed (side class is implementing the Camera 
Preview). It is very small (say, 1 x 1 inch) at the top-left corner.  
Within the App implementation, one Fragment is implementing a 
GraphicalView/achartengine view as it is progressing with some data, and then 
rendering/repainting it as needed.   The rest of the Fragments/Classes are 
implementing other View objects (not related to achartengine, non graphic).
What I get is, that all of the non-achartengine Fragments are successfully able 
to treat the small SurfaceView (camera) as a corner-Overlay view (coming from 
the multi-view layout) on top of their individual Layouts, WHEREAS the 
achartengine Fragment entirely hides/covers that SurfaceView. i.e. the 
GraphicalView fills up its entire Layout 'without' considering the SurfaceView 
coming from the main-Layout. i.e. that Fragment can not make the SurfaceView as 
an "Overlay" ..
Practically speaking, as the user is pressing the tabs, it can see the camera 
feed as he/she flips thru the views, but when pressing on the one with the 
Graph then the camera disappears ...
(I hope my description makes sense ...)

"What steps will reproduce the problem?"

follow concept described above.  does not have to be a SurfaceView, can be any 
Layout that you want to program to be in foreground as Overlay on top of the 
Graph view to demonstrate the problem.

"What is the expected output? What do you see instead?"
I need the ability to have a small (much smaller than the graph view) Overlay 
view (of other Layout) while the graph view is active as if it is still in the 
foreground ...
What I get now is that the graph view blindly hides everything ...

"Please provide a source code snippet that we can use to replicate the
issue."

"What version of the product binary library are you using?"
either 1.1.0 or 1.2.0

"Please provide any additional information below."
If you could provide snippet of code in which it is shown that overlay view can 
be implemented, that would be awesome.

Thank you very much !!
Ohad

Original issue reported on code.google.com by ohad.sha...@gmail.com on 10 Oct 2014 at 3:44