On Oct 21, 4:30 pm, purvi <[email protected]> wrote:
> Hello,
>
> I have a custom class that extends view class. Now this custom view is
> set in the listadapter that extends baseadapter. Along with the custom
> view I have a TextView in the list. So the xml i inflate for list view
> is
>
> <LinearLayout>
>     <my.customview ..../>
>     <TextView .../>
> </LinearLayout>
>
> the customview sets  a rounded rectangle behind the text in TextView.
> Now The height of the textview vary as per its content. So I want the
> height of the customview also vary as per the height of TextView. How
> can I achieve this? Can anyone please help me out with this? This is
> really urgent.
>
> Thanks.
> Regards,
> Purvi

if the only thing you do in your custom view is drawing round
rectangle behind the text, then consider setting background drawable
(e.g ShapeDrawable) to normal TextView.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to