Home > Software design >  Why is Android studio is showing yellow highlighted in this code?
Why is Android studio is showing yellow highlighted in this code?

Time:12-18

Helloe everyone! I am curious to know why android studio is showing yellow highlighted in this portion of code.

I am using this touch listener on EditTextView because I want to hide something when this EditTextView is clicked/

snippet of code

enter image description here

CodePudding user response:

Codes automatically get highlighted if there's any warning or suggestions for a code block . In this case , the Android studio suggests to use a lambda function.

To see the suggestion ,

  1. Hover over the code block
  2. Right click > Show context Action
  3. Alt Enter
  • Related