위와 같이 배경을 지정하면 공백부분이 위 색으로 채워집니다.
뭔가 액션바가 그 위에 뜨고 있는 것 같은데...
어떻게 해야 할까요?
도와주세요....
소스는 길이 제한으로 아래 댓글에 첨부합니다....
액션바가 들어간 액티비티에..
ActionBar actionBar = getSupportActionBar(); actionBar.setDisplayShowHomeEnabled(false); actionBar.setDisplayShowCustomEnabled(true); actionBar.setDisplayShowTitleEnabled(false); View customView = getLayoutInflater().inflate(R.layout.main_action_bar, null); actionBar.setCustomView(customView); Toolbar parent =(Toolbar) customView.getParent(); parent.setContentInsetsAbsolute(0,0);
http://stackoverflow.com/questions/27354812/android-remove-left-margin-from-actionbars-custom-layout