我已经设置了一个ImageButton为透明,所以图标与Android ActionBar的背景面板相匹配。这看起来很好,就像我想要的那样。
然而,当背景是透明的时候,没有蓝色高亮显示,就像在操作栏中按透明按钮时看到的那样。
我可以有一个既是透明的ImageButton,也能在点击时有高亮闪烁吗?
<ImageButton
android:id="@+id/nextItemButton"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:background="@null"
android:src="@drawable/ic_media_ff" />