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

2011-07-19 Thread Tapomay Dey
veloper.android.com/resources/articles/layout-tricks-stubs.html > > -- Kostya > > 15.07.2011 10:02, Tapomay Dey пишет: > > > O god, ViewStub is declared final. > > Why??? > > I can't extend it. > > How do I reuse it? > > -- > Kostya Vasil

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

2011-07-14 Thread Tapomay Dey
O god, ViewStub is declared final. Why??? I can't extend it. How do I reuse it? On Jul 13, 7:14 pm, Tapomay Dey wrote: > Thanks for the ViewStub approach. > > On Jul 13, 6:08 pm, Kostya Vasilyev wrote: > > > Yeah, why not? > > > Presumably, you

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

2011-07-13 Thread Tapomay Dey
view hierarchy, replacing itself with the > inflated layout. > > -- Kostya > > 13.07.2011 16:42, Tapomay Dey пишет: > > > Following could be a solution: > > In the setter method for layout resourceID, inflate the layout and add > > it as child to the "this"

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

2011-07-13 Thread Tapomay Dey
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 wrote: > I want to create a custom AdapterView/ViewGroup. It

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

2011-07-13 Thread Tapomay Dey
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).

Re: [android-developers] Re: Custom List View

2010-12-06 Thread Tapomay Dey
And of course getView is applicable when you are using adapters to hold the data objects for the list. On Thu, Dec 2, 2010 at 12:23 PM, Tapomay Dey wrote: > I guess View (in)visibility is supposed to be handled in getView. > > > On Thu, Dec 2, 2010 at 11:49 AM, Prateek Jain wr

Re: [android-developers] Re: Custom List View

2010-12-06 Thread Tapomay Dey
I guess View (in)visibility is supposed to be handled in getView. On Thu, Dec 2, 2010 at 11:49 AM, Prateek Jain wrote: > On itemClickListener make web view invisible for all the items other > than the selected one. > > It will be better if you can post the code too. > > Cheers, > Prateek > > On

Re: [android-developers] Re: getView what the arguments means?

2010-12-06 Thread Tapomay Dey
Adding to hoyski's reply: Purpose of convertView argument: Its all discussed in some Google I/O video by Romain. (Ref: Kumar Bibek's reply). Its well known that when you update the data that backs-up a listview, you are supposed to call notifydatasetchanged() when you want the data changes(for eg:

Re: [android-developers] Re: onItemClick(AdapterView parent, View view,

2010-12-03 Thread Tapomay Dey
Mark has been repeatedly saying "don't call getview" Adding to it, your call to adapt.notifyDataSetChanged(); is what's going to trigger a getView() call for each of the items visible in your list. So some internal code in listview widget is what's going to call getview, not the user(you). However