Wednesday, July 13, 2011

[android-developers] Re: How to delegate layout in an abstract ViewGroup

Following could be a solution:
In the setter method for layout resourceID, inflate the layout and add
it as child to the "this" View object.
Is this a clean approach?

Regards,
Tapomay.

On Jul 13, 5:26 pm, Tapomay Dey <tapomay....@gmail.com> wrote:
> I want to create a custom AdapterView/ViewGroup. Its DataAdapter/
> childViews consists of elements that act as keys for a data filter.
> This custom view is associated with another dataAdapter-adapterview
> combo that holds the data to be filtered (based on what user selects
> in the custom filter view).
>
> Question is: i want to delegate the task of layout of this custom
> filter view to a layout resource.
> Eg:
> <MyFilterView layoutresid="@layout/filterElementslayoutFile"/> //most
> probably a listview or linearlayout
>
> What do I do to achieve this?

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment