Android Question Maximum height in designer?

HappyDad

Member
Licensed User
Longtime User
I am making a pretty long layout (vertically).
Seems there is a maximum height of the layout or views I can make?
Now the panel height reached 2040, and I can't make it even longer.
 

KZero

Active Member
Licensed User
Longtime User
why you can't make it longer ? do you get any errors !?
2040 is a normal number and I think the maximum height is about 650000000
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
It looks like a limit of Android ScrollView. The maximum height appears to be 16,777,215.

I don't know for any other kind of views
 
Upvote 0

HappyDad

Member
Licensed User
Longtime User
Seems this is a limit of the designer.
When I set the height with code, I can set larger values.
But with the designer, when I put the views manually, I can't make the view longer than 2040.
 
Upvote 0

HappyDad

Member
Licensed User
Longtime User
How exactly did you try it?
I added a Panel in a layout, set the Height to 3000 and no problem!
What exactly do you want to put onto your layout?
Yeah, you can set the height in properties window, also in code.
But, I was dragging the panel longer and longer, until it reaches 2040, then I can't drag it longer any more.
Also, if you put a new view in designer window, where the top value is larger than 2040, or something like 2048, which is indicated by the gray area,
then you can't drag the lower handle downwards, but you can drag the upper handle.
 
Upvote 0

HappyDad

Member
Licensed User
Longtime User
How exactly did you try it?
I added a Panel in a layout, set the Height to 3000 and no problem!
What exactly do you want to put onto your layout?
Also, when I set the panel height to 3000 in the designer,
if I zoom in, to make the panel looks bigger on screen,
then I won't be able to move to the very bottom of the panel.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…