Yes.

You can use different MeasureSpec values depending on what you actually
need (e.g. staying within a certain width).

-- K



2014-06-24 7:23 GMT+04:00 Nathan <[email protected]>:

> Is this the idea?
>
>         int widthSpec = MeasureSpec.UNSPECIFIED;
>         int heightSpec = MeasureSpec.UNSPECIFIED;
>         mContentView.measure(widthSpec, heightSpec);
>
>         int W = mContentView.getMeasuredWidth();
>         int H = mContentView.getMeasuredHeight();
>
> Doing that, I get actual values for width and height, which is good.
>
>
> Nathan
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to