Comments (5)
@AndroidHitchhiking
Instead of using this direct in an adapter, Using this will solve your problem.
<com.androidnetworking.widget.ANImageView
android:id="@+id/img"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_gravity="center" />
and call this in adapter .
img.setDefaultImageResId(R.drawable.default);
img.setErrorImageResId(R.drawable.error);
img.setImageUrl(imageUrl);
As this uses memcache and proper canceling of request when user scroll the view.
And the problem that you are getting is because of the continuous decoding of bitmap as there is no cancelation and no bitmap caching in memcache. So use the above code.
Glide use a bitmap pool concept that we are going to implement it here. You can read more about that here
Anyway as you told, it must be like glide or picasso. We will add it in future upcoming release. It will be great if anybody will help me do it fast as soon as possible.
from fast-android-networking.
- can i use , like Picasso ? or "com.androidnetworking.widget.ANImageView" Circular?
Picasso.with(mContext).load(item.getImage())
.placeholder(R.drawable.shopping_bag)
.error(R.drawable.shopping_bag)
.centerCrop()
.fit()
.into(holder.imgShop);
from fast-android-networking.
@mupm1 The best library for Image loading is Glide.
from fast-android-networking.
@amitshekhariitbhu can you speake persian?
from fast-android-networking.
Volley isn’t particularly efficient for loading images because it copies all data it receives into byte arrays. Although Volley attempts to re-use these byte arrays, it’s recycling rate is relatively poor for moderate or large images. As a result, Volley can tend to cause a fair amount of memory churn when used with Glide to load images but Glide is faster then Volley and any other.
from fast-android-networking.
Related Issues (20)
- Unable to use in new Android Project HOT 1
- Could not find package library
- AndroidNetworking.initialize(getApplicationContext()); Not working HOT 14
- Could not find com.amitshekhar.android:android-networking:1.0.2. HOT 5
- https://github.com/MindorksOpenSource/android-mvp-architecture
- Seri
- Lib is missing? Can't fetch v1.0.2 with gradle. See screenshot. HOT 1
- Failed to resolve: HOT 11
- Error building project HOT 4
- Networking
- ANRequest unregister `requestListener` HOT 1
- Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'. HOT 8
- How can I get the Body Parameters sent with request.
- i cannot import AndroidNetworking Class HOT 2
- AndroidNetworking class is not being imported HOT 4
- Can we get an Androidx Update to this?
- Repository down?
- I'm getting this error Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
- Regarding Fast Android Networking latest features support and new update HOT 2
- Failed to resolve HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fast-android-networking.