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.
我必须添加一个按钮。这应该是不停地发光。所以我使用了一个外部库。通过这个,我必须将图像添加到 UIImageView,然后将 imageview 添加到视图。这被添加到按钮。发光由 startGlow: 方法启用,该方法采用 UIView。这迫使我将 UIView 添加到 UIButton。当我触摸按钮时,问题就出现了,里面装满了 UIView,它没有响应。边缘似乎工作正常。有什么解决办法吗?我希望按钮能够响应所有 TouchInside 事件。谢谢
如果您不需要与视图交互,您可以通过将 userInteractionEnabled 属性设置为 NO 来关闭交互。然后,您应该能够与其下方的视图或 UIButton 进行交互。
javasetAlpha()方法说它是 API 级别 11。但它的 XML 方面没有说明任何内容,当我使用它时,由于我指定了 min SDK 8,因此在 Lint 中没有将它作为警告拾取。
setAlpha()
如果我使用 android:alpha="" 会在 2.2 上崩溃吗?