Евгений Колесников 3 rokov pred
rodič
commit
858d5712e8
1 zmenil súbory, kde vykonal 20 pridanie a 0 odobranie
  1. 20 0
      shpora/glide.md

+ 20 - 0
shpora/glide.md

@@ -0,0 +1,20 @@
+1. Добавить в зависимости
+
+    ```txt
+    implementation 'com.github.bumptech.glide:glide:4.14.2'
+    annotationProcessor 'com.github.bumptech.glide:compiler:4.14.2'
+    ```
+
+1. Загрузка и отображение картинки
+
+    ```kt
+    Glide.with(this)
+        .load(car.photoUrl)
+        .into(carPhotoImageView)
+    ```
+
+    где
+
+    * *this* - контекст (активность)
+    * *car.photoUrl* - полный путь к изображению
+    * *carPhotoImageView* - как должно быть понятно из названия, указатель на визуальный элемент