Android(Kotlin)

Android Coil

----___<<<<< 2023. 3. 19. 18:35

 

 

<uses-permission android:name="android.permission.INTERNET"/>
class MainActivity : AppCompatActivity() {

    val imgurl = "https://www.geeksforgeeks.org/wp-content/uploads/gfg_200X200-1.png"

    override fun onCreate(savedInstanceState: Bundle?) {

        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        val img = findViewById<ImageView>(R.id.myImg)
        img.load(imgurl)

    }
    
}

 

 

 

-- 참조

 

https://coil-kt.github.io/coil/

 

Coil

Overview An image loading library for Android backed by Kotlin Coroutines. Coil is: Fast: Coil performs a number of optimizations including memory and disk caching, downsampling the image in memory, automatically pausing/cancelling requests, and more. Ligh

coil-kt.github.io

 

https://www.geeksforgeeks.org/how-to-use-coil-image-loader-library-in-android-apps/

 

How to Use COIL Image Loader Library in Android Apps? - GeeksforGeeks

A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.

www.geeksforgeeks.org

 

'Android(Kotlin)' 카테고리의 다른 글

Compose Text  (0) 2023.04.25
Compose Hello World  (0) 2023.04.24
Andorid ImageView to Bitmap  (0) 2023.02.06
ROOM + Coroutine Flow - 5 (Flow)  (0) 2023.01.28
Android Horizontal ProgressBar  (0) 2023.01.21