我已将 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" />