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.
我正在 Android 4.0 上创建一个应用程序。
我想在前景的操作栏中显示图像以及应用程序图标和名称。
我用谷歌搜索了它,但找到了在后台设置图像的代码。
我希望图像出现在应用程序名称的右侧,并且可以横向和纵向工作。
任何帮助是极大的赞赏 。
问候皮尤什
您应该实现并添加自定义ActionView以显示图像。请参阅API Docs 的这一部分以了解如何执行此操作(实际上非常简单)。
ActionView