About 7,100,000 results
Open links in new tab
  1. ImageButton in Kotlin - GeeksforGeeks

    Jan 29, 2025 · Android ImageButton is a user interface widget which is used to display a button having image and to perform exactly like button when we click on it but here, we add an image …

  2. Display image after button click in android - Stack Overflow

    ImageView imageView = (ImageView) findViewById(R.id.imageView1); imageView.setImageResource(R.drawable.friendship); //System.out.println("res value"+res); . …

  3. How to set OnClickListener for ImageView in Kotlin Android

    When OnClickListener is set to ImageView, a click on the ImageView triggers the action and code inside setOnClickListener method is executed. In this tutorial, we will learn how to set …

  4. Android ImageView Using Kotlin With Example - Tutorialwing

    Here, we have accessed imageView using kotlin file (i.e. MainActivity.kt file) in the application. Then, we have set an image resource in it. After that, we have set a click listener on button …

  5. Handle Image Button Click Events in Kotlin - RRutors

    Dec 12, 2021 · In this Android example tutorial, we'll look at how to create an ImageButton, and handle the onClick and long click events, and explore its various properties in Android Studio …

  6. (Android Studio, Kotlin) Image in Imageview is not displaying …

    Mar 20, 2020 · The function drops receives a single View parameter, which is the image view the user clicked - but View class has no method called setImageResource, so you need to cast it …

  7. ImageView in Android with Example - GeeksforGeeks

    Jan 28, 2025 · ImageView class or android.widget.ImageView inherits the android.view.View class which is the subclass of Kotlin. AnyClass.Application of ImageView is also in applying tints to …

  8. Dynamic ImageView in Kotlin : r/Kotlin - Reddit

    Jul 27, 2022 · In this article, we will be discussing how to create an ImageView programmatically in Kotlin. The first step is to create a new project in Android Studio. For this follow these steps: …

  9. Display Images in Android Studio with Kotlin. | Medium

    Aug 29, 2020 · val imageButton = findViewById<Button>(R.id.image_button) iamgeButton.setOnClickListener { getImage.launch("image/*") Here imageButton is used for …

  10. Android Imageview - How to set Image programatically to Imageview

    Dec 12, 2021 · In this android example tutorial, we will see how to add an ImageView to an activity as well as how to set an image programmatically in Android Studio using Kotlin button …

  11. Some results have been removed
Refresh