You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have problem with list view.
I put ListView with other elements into ScrollVIew
I need to resize parent and the ListView, so parent contains fully-expanded listview and other elements.
I cannot set minHeight for ListView, but can set height.
I try to set percent value and calculate it in this way:
listview.height = listview.getMeasuredHeight() / (parent.getMeasuredHeight() - listview.getActuallSize().height);
But this not worked
Also, when wrote
listview.height = (value: listview.getMeasuredHeight() / (parent.getMeasuredHeight() - listview.getActuallSize().height), unit:'%'};
It does not working.
Size is always not applied or scroll area is too large.
What to do?
I also set parent minHeight previously, but it does not made difference.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have problem with list view.
I put ListView with other elements into ScrollVIew
I need to resize parent and the ListView, so parent contains fully-expanded listview and other elements.
I cannot set minHeight for ListView, but can set height.
I try to set percent value and calculate it in this way:
listview.height = listview.getMeasuredHeight() / (parent.getMeasuredHeight() - listview.getActuallSize().height);
But this not worked
Also, when wrote
listview.height = (value: listview.getMeasuredHeight() / (parent.getMeasuredHeight() - listview.getActuallSize().height), unit:'%'};
It does not working.
Size is always not applied or scroll area is too large.
What to do?
I also set parent minHeight previously, but it does not made difference.
Beta Was this translation helpful? Give feedback.
All reactions