android - how to get tag of dynamically created linear layout and it's child ImageView -
parent_linearlayout
linearlayout textview linearlayout
i have parent linear layout in xml. created linear layout dynamically , child textview , linear layout. added layout parent linear layout.
now question how tag of linear layout(4th) , tag of child (which add later dynamically).
for(int i=0;i<parent_layout.getchildcount();i++){ view v=parent_layout.getchildat(i); toast.maketext(getapplicationcontext(),""+parent_layout.getchildcount() , toast.length_long).show(); }
am trying this, not getting idea how achieve
you can use settag()
on layouts...and later retrieve layout using gettag()
.hope helps.
Comments
Post a Comment