NavigationDrawer 를 Activity로 구성하였는데 FadingActionBarHelper 를 사용하려 하니 난관에 부딪히네요 ㅠ
public class HomeActivity extends NavigationDrawerActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getLayoutInflater().inflate(R.layout.activity_home, frameLayout);
.......
}
}
layout 을 저렇게 inflate 으로 호출하였는데 FadingActionBarHelper 를 사용하려고 보니
이걸 어떻게 적용시켜야 할지 잘 모르겠습니다.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
FadingActionBarHelper helper = new FadingActionBarHelper()
.actionBarBackground(R.drawable.ab_background)
.headerLayout(R.layout.header)
.contentLayout(R.layout.activity_scrollview);
setContentView(helper.createView(this));
helper.initActionBar(this);
}
이부분을 inflate 로 어떻게 변경시키는지 아시는분 조언좀 부탁드립니다.
코드를 이리저리 바꿔봐도 저는 잘 안되네요 ,,ㅠㅠ