I think I figured out what the answer is.
To expand searchview by default if I use
mSearchView.setIconifiedByDefault(false);
it will show search bar like first image
If I use mSearchView.onActionViewExpanded();
then it shows like second image.