Android的Kotlin的*** = if(***){***}提示:红色波浪线

                
                
                
                
                
                

Android的Kotlin的*** = if(***){***}提示:红色波浪线

                
                
                
                
                
                
在这里插入图片描述
                
                
                
                
                
                

*** = if(***){***}支持java,但是不支持kotlin

                
                
                
                
                
                
解决:
                
                
                
kotlin的三元运算符(if)中

来源url
栏目