Android Question Problem with one panel on top of another panel

Sanxion

Active Member
Licensed User
Longtime User
Hi all

Could anybody explain why the following is happening:

I have two panels (one is large and the other is small) - both panels have an image view covering the entire panel and a few labels with text on them.

The large panel is the main visible one and the small panel is invisible by default. When I make the small panel visible, the labels appear along with their text but its image view either does not appear or is 'behind' the large panel - I am not sure.

Does anybody know why this is happening?
 

gz7tnn

Member
Licensed User
Longtime User
If you are using Designer, could it be as simple as checking the 'parent' of the ImageView. You may find that it is not set to the Panel - maybe it is set to the Activity...
The attached quick example has 2 panels, each has a label and imageview. Clicking the button shows and hides panel2 and the image is there.
Just a thought...
 

Attachments

  • 63317.zip
    30.9 KB · Views: 102
Upvote 0
Top