如何改变一个onClick亮点的形状? [英] How to change the shape of an onClick highlight?

查看:189
本文介绍了如何改变一个onClick亮点的形状?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在我的应用程序的GridView的图标。当他们被点击,一个橙色的正方形短暂地出现在他们周围的一大亮点。唯一的问题是,我认为,这看起来业余,想改变形状,以便它夹在GridView,而不是一个大广场的图标。如果你不能确定我的意思,它是在捕获应用程序的注意事项顺利进行,他们的仪表板/主屏幕上。我只是想知道是否有人知道的方式来解决这个,或者如果它只是一个小的布局属性。

I currently have icons in a GridView on my app. When they are clicked, an orange square appears around them briefly as a highlight. The only problem is that I think this looks amateurish and would like to change the shape so that it clips the icon in the GridView instead of a large square. If you are unsure as to what I mean, it is carried out successfully in the Catch Notes app, on their dashboard/home screen. I was just wondering whether anybody knew a way to tackle this or if it is simply a small layout attribute.

https://play.google。 COM /存储/应用/细节ID = com.threebanana.notes&放大器; HL = EN

在预先感谢所有帮助将AP preciated!

Thanks in advance, all help would be appreciated!

看起来有效像这样的EditText如下图所示。它毗邻的EditText橙色的方式是完全相同单击时如何边界在主屏幕的图标。

It looks effectively like this EditText in the image below. The way that it borders the EditText in orange is exactly how it borders the icons in the home screen when clicked.

推荐答案

我已经决定,要解决这个问题最简单的方法是简单地引用另一个图像已被点击了GridView的图像时。这意味着,第二图像可以只被在Photoshop以具有围绕它辉光编辑。

I've decided that the easiest way to solve this problem is to simply reference another image when the image on the GridView has been clicked. This means that the second image can just be edited in Photoshop in order to have a glow around it.

这篇关于如何改变一个onClick亮点的形状?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆