展会信息港展会大全

如何制作listview向下滚动逐步显示的actionbar效果
来源:互联网   发布日期:2016-01-14 11:29:54   浏览:1996次  

导读:@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); FadingActionBarHelper helper = new FadingActionBarHelper() .actionBarBackground(R.drawable.ab_background) .headerLayout(R.layout.header) .co...

@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);

setUpListView();

}

dependencies {

compile 'com.github.manuelpeinado.fadingactionbar:fadingactionbar:3.1.2'

}

赞助本站

人工智能实验室

相关热词: android开发 android教程

AiLab云推荐
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港