Infix Functions

Member functions and extensions with a single parameter can be turned into infix functions. Defines an infix extension function on Int. Calls the infix function. Creates a Pair by calling the infix function to from the standard library. Here’s your own implementation of to creatively… Read More »Infix Functions

Hello World

fun main() { println(“Hello, World!”) } An entry point to a Kotlin application is the main function. In Kotlin 1.3, you can declare main without any parameters. The return type is not specified, which means that the function returns nothing. println writes a line to… Read More »Hello World

If I use simple adapter to feed the listview and the listview contains textview and button so how can I perform operation on specific position?

I face this difficulty. In my case when i click on textview which is part of list-view’s custom XML file then the position is right, but when i click on the button which is the part of list-view’s custom XML file then it always gives first position.… Read More »If I use simple adapter to feed the listview and the listview contains textview and button so how can I perform operation on specific position?

Error:Unable to start the daemon process.Error occurred during initialization of VM Could not reserve enough space for 1572864KB object heap

https://www.youtube.com/watch?v=rEVWb_8XmLU Error occurred during initialization of VM Could not reserve enough space for 1572864KB object heap. To solve This Error You Have To Change Only Heap Size Which Is Define In Gradle.Properties file. You Have To Change The HeapSize To 1024m And Rebuild the Project, If The Error Is Not Solved… Read More »Error:Unable to start the daemon process.Error occurred during initialization of VM Could not reserve enough space for 1572864KB object heap