0

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

  • 1
    If you hover over the code, I expect Android Studio will tell you why it's highlighted. – Slaw Dec 18 '22 at 07:17
  • If you click on ! in triangle (in top right corner of the editor), it will show you all the warnings that highlights the code – Saurav Rao Dec 18 '22 at 07:31
  • @SauravRao , help me with this. https://stackoverflow.com/questions/74834819/how-to-implement-onclicklistener-inside-dialogbox-which-is-inside-fragment-in-an – prabin chand Dec 18 '22 at 07:50

1 Answers1

1

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
Supun Ayeshmantha
  • 499
  • 1
  • 5
  • 9