Giter Site home page Giter Site logo

Preview not working about bsimagepicker HOT 14 CLOSED

siralam avatar siralam commented on July 28, 2024 6
Preview not working

from bsimagepicker.

Comments (14)

SharjeelAhmad84 avatar SharjeelAhmad84 commented on July 28, 2024 1

although it wont work with androidX but with legacy dependency all you have to do is to use glide or any other similar library in onImageLoad() function.

from bsimagepicker.

siralam avatar siralam commented on July 28, 2024 1

I have updated to use AndroidX in 1.3.0. Please try again

from bsimagepicker.

chemickypes avatar chemickypes commented on July 28, 2024

Inside README file we can read this:

You also need to make sure you have included 'com.android.support:support-v4:{supportLibraryVersion} in your dependencies.

so I think that the library should still be updated to androidx.

from bsimagepicker.

ashawe avatar ashawe commented on July 28, 2024

Any updates on this one?

from bsimagepicker.

siralam avatar siralam commented on July 28, 2024

Planning to update in near future about AndroidX, but I am thinking whether I should use internal dependency instead since AndroidX is still in alpha.

from bsimagepicker.

Nyariki avatar Nyariki commented on July 28, 2024

Any update on this?

from bsimagepicker.

alfredoqt avatar alfredoqt commented on July 28, 2024

Android X artifact mappings. Guys, if you look here for com.android.support:support-v4, you'll find the mapping to androidx.legacy:legacy-support-v4. Hope it helps!

from bsimagepicker.

tirumala007 avatar tirumala007 commented on July 28, 2024

same problem. any update ?

from bsimagepicker.

siralam avatar siralam commented on July 28, 2024

@tirumala007 Are you using v1.3.0? Just want to verify that the problem has been solved in v1.3.0 or not.

from bsimagepicker.

madwards28 avatar madwards28 commented on July 28, 2024

I am seeing this issue AFTER updating from 1.1.0 to 1.3.2. Both have been using AndroidX

from bsimagepicker.

johnshoe avatar johnshoe commented on July 28, 2024

Hi!

Screenshot_1610355388

I have same problem with this file provider:
<provider android:name="androidx.core.content.FileProvider" android:authorities="${applicationId}.fileprovider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" /> </provider>

And there is the file_path xml:
<?xml version="1.0" encoding="utf-8"?> <paths xmlns:android="http://schemas.android.com/apk/res/android"> <files-path name="my_images" path="images/" /> <cache-path name="my_cache_images" path="." /> </paths>

And I use this support version:
com.android.support:support-v4:28.0.0

Anyone can help me? Currently I have no idea.

Thank you

from bsimagepicker.

MSehati avatar MSehati commented on July 28, 2024

hello
i had the same problem and using androidx.
i could solve the problem by correct implementation of loadImage method of BSImagePicker.ImageLoaderDelegate (interface)

override fun loadImage(imageUri: Uri?, ivImage: ImageView?) {
if(ivImage != null)
Glide.with(this@MainActivity).load(imageUri).into(ivImage)
}

from bsimagepicker.

johnshoe avatar johnshoe commented on July 28, 2024

Hello

Yes, in the meantime, I realized that. It works well now.
Thank you very much!

from bsimagepicker.

MSehati avatar MSehati commented on July 28, 2024

you're welcome

from bsimagepicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.