android layout & some functions inplace