如何在android honeycomb中实现ActionBar?如何自定义操作栏?任何帮助,将不胜感激。
最佳答案
试试这个
ActionBar actionBar = getActionBar();
LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
View view = inflater.inflate(R.layout."id", null);
// lay.setLayoutParams(new ActionBar.LayoutParams(
// android.app.ActionBar.LayoutParams.MATCH_PARENT,
// android.app.ActionBar.LayoutParams.MATCH_PARENT));
//Not wrking
actionBar.setCustomView(view);
actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
关于android - 在 Android Honeycomb 中实现 Actionbar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9288053/