Android: get Viewgroup from the view? -


is there way viewgroup view? i'm trying create custom array adapter , needs viewgroup

depending on viewgroup after, can parent of view , cast viewgroup:

(viewgroup)view.getparent() // can done level in view hierarchy  

or can cast view viewgroup:

(viewgroup)view 

basically, find view want in view hierarchy , cast viewgroup


Comments