I made a numeric keypad object that consists mainly of buttons and panels.
When I launch the activity, the object is built and works totally fine. However, after pausing the activity by loading another, and then resuming the activity by returning to it, some of the objects inside the class appear distorted.
For instance, some of the buttons will have altered dimensions. They will regain their dimensions if you click them, but upon resuming they look weird. I managed to fix this issue by initializing the numeric pad class in the Activity_Resume routine, but I have no idea why this works.
Anyone know what I might be doing wrong?
I also have a button inside this numeric pad class that creates a panel and adds it to the activity. When the panel is added, the gradient on my activity appears to be reversed (the gradient is a white to a light grey, but upon generating this panel, the gradient changes to black/dark grey). After releasing the button (removing the panel), the gradient returns to normal.
Again, anyone have any ideas? I know these seem like two different issues and warrant two posts, but something tells me I'm being an idiot and overlooking something big that relates to two.
Thanks
When I launch the activity, the object is built and works totally fine. However, after pausing the activity by loading another, and then resuming the activity by returning to it, some of the objects inside the class appear distorted.
For instance, some of the buttons will have altered dimensions. They will regain their dimensions if you click them, but upon resuming they look weird. I managed to fix this issue by initializing the numeric pad class in the Activity_Resume routine, but I have no idea why this works.
Anyone know what I might be doing wrong?
I also have a button inside this numeric pad class that creates a panel and adds it to the activity. When the panel is added, the gradient on my activity appears to be reversed (the gradient is a white to a light grey, but upon generating this panel, the gradient changes to black/dark grey). After releasing the button (removing the panel), the gradient returns to normal.
Again, anyone have any ideas? I know these seem like two different issues and warrant two posts, but something tells me I'm being an idiot and overlooking something big that relates to two.
Thanks