I got it.
Thank you very much!

2013/1/26 lbendlin <l...@bendlin.us>

> Keep track of the banner height elsewhere (at the point where it gets
> measured and rendered),  and then use that measurement to specify the image
> height , and then through the aspect ratio, calculate the image width and
> the x-position of the image.
>
> If the images are subviews of the banner, then you could even override the
> banner's onLayout, rather than the one for the images.
>
>
>
> On Saturday, January 26, 2013 6:47:48 AM UTC-5, Greenhand wrote:
>>
>> Although I can keep the ratio, I do not know what my background height is
>> from parameters.
>> Could you give me some code snippetss?
>>
>> lbendlin於 2013年1月26日星期六UTC+**8下午7時33分50秒寫道:
>>
>>> Now that you have extended the object you can change the calculations
>>>  for measure to achieve your desired effect while keeping the image aspect
>>> ratio.
>>
>>  --
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Reply via email to