Edittext focus issue solved. Removed uncommented code.