Android Question Change activity size during runtime

Keith Yong

Active Member
Licensed User
Longtime 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

  • Screen Shot 2019-03-12 at 10.04.05 AM.png
    Screen Shot 2019-03-12 at 10.04.05 AM.png
    61.5 KB · Views: 183

Keith Yong

Active Member
Licensed User
Longtime 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
 
Upvote 0
Top