In this article, today learn android kotlin listview example . Listview is a set of array adapter. for the more information visit google developer listview Android ListView displays data vertically with each item positioned below the previous data items. ListView is scrollable. You can use ListView without any issues for displaying a few data items in UI. But for displaying large volumes of data as a list, you need to use to build well-performing apps. 1.MainActivity.kt: import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.widget.Toast import kotlinx.android.synthetic.main.activity_main.* class MainActivity : AppCompatActivity() { val fruit = arrayOf<String>("Mango","cocunt","apple","Cherry","orange") val description = arrayOf<String>( "Mango is fruit", "cocunt is fruit", "apple is fruit&q
Comments
Post a Comment