Android Question Change activity size during runtime

Keith Yong

Active Member
Licensed User
Hi,

I have issue on changing the activity height during runtime. Please refer to the attachment screen, when I did the debug, it is show the correct size '2096' in the log, but when I remove the debug, it is showing '2031'. May I know any that I did wrong?
 

Attachments

Keith Yong

Active Member
Licensed User
Hi,

I manage to find a solution, use panel to load the layout after adjust the height. Not sure whether is it a right way or not.

Dim pnl As Panel = Activity
pnl.Height = Activity.Height + 25dip
 
Top