Click on a hidden button or image

In android, there is something like that we can create a hidden button or image, and this is still clickable.or alternatively there is some way to achieve this functionality in Android. In ios, we can use a hidden hidden button.

0
source share
3 answers

Everything can be achieved in Android

<Button... android:background="@null"> 
+4
source

Probably use a transparent image for the button.

0
source

You can make the button transparent or translucent using the background property:

 android:background="#ARGB" 

where A is the transparency that can be set between 0-F, i.e. 0 means transparency, and F means opacity. The remaining colors are R-Red, G-Green, B-Blue. so, for example, it could be:

 android:background="#200B" 

which gives a shade of blue.

This way you can provide transparency as well as a hue of transparent color for your look. This works with any view.

You can also apply this via code:

 button.setBackgroundColour(0x220000BB); 
0
source

All Articles