Press Alt-Enter on your method and select doesn’t show hints for the current method.
Then you can see a dialog in the bottom right of the android studio.
select Show Parameters Hint Setting, now you can customize this functionality. and finally, select undo in the dialog.
File -> Setting -> Editor -> General -> Appearaance-> show parameters hint configure
You can enable it by doing the following:
- Go to File > Settings > Editor > General > Appearance > Show parameter name hints
- Click Configure
- Language: -> Java
- Options -> Check Show hints even when type of expression is clear
As you can see below, it is visible for all parameters regardless of type:
It looks like this setting was removed in Android Studio 4.0
There are however new Inlay Hints options:
- Go to File > Settings > Editor > Inlay Hints > Java > Parameter hints
- Check Show parameter hints for: