Saturday, 15 August 2015

android - get information about a view that just created -



android - get information about a view that just created -

first , hello. have preblem - want top in pixel of view created xml file. there on create method. need info layout but, layout hasn't created yet. do>>?! tried utilize onstart , onresume method layout isn't created then.

protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); //full screen requestwindowfeature(window.feature_no_title); getwindow().setflags(windowmanager.layoutparams.flag_fullscreen, windowmanager.layoutparams.flag_fullscreen); //full screen setcontentview(r.layout.activity_main); setidandconsturtor(); buildlevels(); setidviews(); setevents(); }

just phone call methods within one:

@override public void onwindowfocuschanged(boolean hasfocus) { super.onwindowfocuschanged(hasfocus); //here can set methods setidandconsturtor(); buildlevels(); setidviews(); setevents(); }

android android-layout

No comments:

Post a Comment