/*
* Copyright (c) 2014. Marshal Chen.
*/
package com.marshalchen.common.demoofui.fadingactionbar;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import com.marshalchen.common.demoofui.R;
import com.marshalchen.common.uimodule.fadingactionbar.FadingActionBarHelper;
public class NoParallaxActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
FadingActionBarHelper helper = new FadingActionBarHelper()
.actionBarBackground(R.drawable.fading_actionbar_ab_background)
.headerLayout(R.layout.fading_actionbar_header)
.contentLayout(R.layout.fading_actionbar_activity_scrollview)
.parallax(false);
setContentView(helper.createView(this));
helper.initActionBar(this);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
return true;
}
}