onMeasure cu wrap_content ia parametrii care nu sunt Integer.MIN_VALUE

In my xml I specified wrap_content for both the width and height but when I override the onMeasure function the width and height that are passed to it is -2147483348 which oddly is 300 > Integer.MIN_VALUE is there a reason for this? why is it not integer.MIN_VALUE or 0 if I didn't have anything inside it. BTW this is a custom view that i'm making so I have to do setMeasuredDimension I believe.

0

1 răspunsuri

0
adăugat
Mulțumesc, ar trebui să caut documentația
adăugat autor L7ColWinters, sursa
Android dezvoltatori, România — Moldova
Android dezvoltatori, România — Moldova
27 participanți

Parteneri: ciupacabra.com, @php_ro, @js_ro, @node_ro iOS: @ro_ios Reguli: https://github.com/js-ro/it-telegram/blob/master/RULES.md