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.
我的夏洛克操作栏设置有一个通用样式,如下所示:
<style name="app_action_bar" parent="@style/Widget.Sherlock.ActionBar.Solid"> <item name="android:icon">@drawable/logo</item> </style>
如何使徽标可点击并设置 onclickhandler?
该图标是一个特殊的应用程序图标(android.R.id.home)点击处理的细节在这里:
单击应用程序图标不会触发 onOptionsItemSelected()