Variables with underline

后端 未结 6 1602
轮回少年
轮回少年 2020-12-28 12:23

I\'m getting an underline in some variables on Android Studio (in this case on the \'position\' variable). I think it\'s not an error because the application runs perfectly

6条回答
  •  余生分开走
    2020-12-28 13:08

    I've found the answer for this question here.

    The decoration is a syntax highlighting preference. Take a look at File > Settings > Editor > Color Scheme > Java/Kotlin

    In the case of Java, you can find this effect for example at Parameters > Implicit anonymous class parameter. It's the checkbox Effects.

    The same with Kotlin at Properties and Variables > Var (mutable variable, parameter or property).

提交回复
热议问题