Android Question Values not appearing in spinners after Layout separation

Sanxion

Active Member
Licensed User
Longtime User
Hi all

I have just divided my main layout file (Layout) into two files (LayoutA & LayoutB) as it was taking too long to load...

Both files contain spinners (lots of them). The declarations for the spinners on both Layouts are in Globals.

In Activity_Create I load LayoutA and initialise the spinners for LayoutA - I can't initialise them for LayoutB as they don't "exist" yet.

When the app moves from LayoutA to LayoutB, the code uses the same initialisation and loading of the spinners as it does for LayoutA, however, nothing appears in the spinners on the screen. If I move back to LayoutA, the spinners are populated by their values. It is as though the values for LayoutB are not being retained.

What have I missed?

Thanks.
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top