0

我不知道如何更改滑动菜单的标题栏,如图标、背景颜色或图像,有没有办法使用我自己的布局文件?我用过sherlock,
我试试这个:</p>

    LayoutInflater inflator = (LayoutInflater)this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    View v1 = inflator.inflate(R.layout.titleview, null);((TextView)v1.findViewById(R.id.title)).setText("hello title");
    this.getSupportActionBar().setCustomView(v1);

但它不像我想要的那样工作

4

1 回答 1

0

简单地setTitle(int ResID)在 Activity 的onCreate方法中。

于 2013-04-26T02:25:39.033 回答