android - 更改操作栏默认标题标签的文本和样式
解决方案
如果您正在从事活动,请尝试以下操作:
ActionBar actionBar = getSupportActionBar();
actionBar.setTitle("Your title goes here");
//see the other attributes for actionBar for the color and the size
如果您使用的是片段:
((AppCompatActivity)).getSupportActionBar()).setTilte("your title");
推荐阅读
- c++ - 有没有办法从内容管理器获取的动画蓝图资源中获取类数据?
- javascript - 如何仅获取我在谷歌地图上创建的路线的纬度和经度以获取方向?
- angular - 在 MSAL 中获取登录请求 URL
- r - 有没有办法将我的 for 循环转换为 sapply 函数?
- html - 在 VB.net 中使用 Selenium 在 HTML 页面上查找下一个选择控件
- algorithm - 将 DAG 转换为二叉树
- php - TYPO3:自动允许一个BE用户组编辑一个分机的所有CE?
- plot - 绘制数据的在线平台?
- rest - 如何在 Dspace rest api 调用中使用 OR 运算符
- python - predict() 得到了一个意外的关键字参数 'stats'