动作条按钮背景按钮、背景、动作

由网友(孤身战群魔)分享简介:我想既为pressed而不是pressed状态的图像自定义动作条按钮。我把绘制选择在Android上:图标有两种状态(pressed而不是pressed)。问题是,如果我preSS按钮,我仍然有蓝色背景(ICS HOLO风格)随着我的pressed按钮图标。如何从动作条定制图标按钮删除这种行为?I want to c...

我想既为pressed而不是pressed状态的图像自定义动作条按钮。我把绘制选择在Android上:图标有两种状态(pressed而不是pressed)。问题是,如果我preSS按钮,我仍然有蓝色背景(ICS HOLO风格)随着我的pressed按钮图标。如何从动作条定制图标按钮删除这种行为?

I want to customize actionbar buttons with an image both for pressed and not pressed state. I put a drawable selector on android:icon with two states (pressed and not pressed). The problem is that, if I press the button, I still have the blue background (ics holo style) along with my pressed button icon. How can I remove this behaviour from actionbar customized icon buttons?

感谢

推荐答案

我已经解决了这一问题将

I have fixed the problem putting

 <item name="android:selectableItemBackground">@color/transparent</item>

在styles.xml。我认为这将影响到所有选择的款式,但是现在看来,这只是影响了动作条。

in styles.xml. I thought it would have affected all the select styles but it seems it affects just the actionbar.

阅读全文

相关推荐

最新文章