Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的应用程序中使用 sdk 目标 3.0 的操作栏。这可以从左侧更改图标吗?这是默认图标。我想在代码中的每个活动中更改此图标。在 android 4.0 我们有 getActionBar().setIcon。但是我如何在 3.0 中做到这一点
试试这个代码
ActionBar actionbar = getActionBar(); actionbar.setLogo(Drawable logo);