如何设计自定义ActionBar?

时间:2014-08-12 06:25:14

标签: android android-actionbar actionbarsherlock

我是ActionBar的新手。我获得了功能,但如何设计我自己的actionbar,如下图所示:

enter image description here

  

这个我的要求:如何设计自定义操作栏。有人知道吗?感谢所有


1 个答案:

答案 0 :(得分:1)

您可以使用自己的布局并申请:

ActionBar mActionBar = getSupportActionBar();

mActionBar.setCustomView(R.layout.your_layout);

希望它可以帮到你!!