0
使用setDisplayHomeAsUpEnabled我想在我的應用程序中實現FadingActionBar
to get the effects like latest Google play Music app.
下面就是我如何使用FadingActionBar錯誤而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_listview);
setContentView(helper.createView(this));
helper.initActionBar(this);
在這裏,我想用setDisplayHomeAsUpEnabled(true);
我收到錯誤的動作條中添加後退按鈕同時添加上面的代碼說沒有找到這樣的方法。
我的問題是有沒有辦法添加setDisplayHomeAsUpEnabled(true);
如果沒有,我們如何爲FadingActionBar
您可以在['FadingActionBarHelperBase.java'(https://github.com/ManuelPeinado/FadingActionBar/blob/master添加此方法/library/src/com/manuelpeinado/fadingactionbar/FadingActionBarHelperBase.java) – 2014-10-27 09:00:51