What do you want to save?
Add Code snippet
New code examples in category Kotlin
-
Wobbily_col 2021-11-09 18:04:17
hide keyboard suggestion android kotlin
class CloseHideSoftKeyboard : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_message) val editTextXml = findViewById<EditText&... Add solution -
Bretsky 2021-11-08 04:42:17
kotlin elvis operator
//The not-null assertion operator val l = b!!.length Add solution -
-
Sarath joseph 2021-11-05 16:39:12
kotlin curly braces after function call
// put whole lambda in parentheses list.any({ i: Int -> i > 0 }) // if its the last parameter, you can move lambda out of parentheses list.any() { i : Int -> i > 0} // if its the only parameters, you can remove parentheses list.any { i: Int -&... Add solution -
Pathfinder 2021-11-05 11:48:11
kotlin string contains integer
str.matches(".*\\d.*"); Add solution -
Greg Lee 2021-11-05 04:48:13
text is behind BottomNavigationView
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.a... Add solution
Best helpers
Haejin Lee
+5
Terry claw
+5
Bryan Pettit
+5
Root
+5
Meredithob
+5
Orgillion
+5
Barrie
+5
Victor Engel
+5
Rohan Wagle
+5
DanH
+5
Soks
+5
Bhavya PH
+5