Library

Shimmer effect in android app Facebook shimmer

Shimmer effect in android app Facebook shimmer in Android Studio.This is Content Placeholder Animation like Facebook using Shimmer. When the app wants to load the data from a network call,we normally use  loaders Instead of using the usual loaders, we can make the loading screen more interesting using Facebook’s Shimmer library. This library adds Shimmer effect …

Shimmer effect in android app Facebook shimmer Read More »

Shimmer effect in android app facebook.shimmer

To include Shimmer in your project, add the following dependency:// Gradle dependency on Shimmer for Androiddependencies { implementation ‘com.facebook.shimmer:shimmer:0.5.0’}========================================================Usage in layout————————————————————————–<com.facebook.shimmer.ShimmerFrameLayout android:id=”@+id/shimmer_view_container” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:layout_gravity=”center” android:layout_marginTop=”10dp” android:orientation=”vertical” app:shimmer_duration=”800″> <LinearLayout android:layout_width=”match_parent” android:layout_height=”wrap_content” android:orientation=”vertical”> <include layout=”@layout/data_placeholder_layout” /> <include layout=”@layout/data_placeholder_layout” /> ……………………………. ……………………………. </LinearLayout></com.facebook.shimmer.ShimmerFrameLayout>—————————————————————————-To start shimmer animation, useshimmerLayout = findViewById(R.id.shimmer_layout)shimmerLayout?.startShimmer() ———————————————————- Check this also :- Image libraries for …

Shimmer effect in android app facebook.shimmer Read More »

Image libraries for android

Image library Major image loading libraries in android are :1.Picasso 2.Glide 3.Universal Image Loader4.Fresco 1.Picasso ———————– GRADLE implementation ‘com.squareup.picasso:picasso:2.71828’ Picasso.get() .load(url) .placeholder(R.drawable.user_placeholder) .error(R.drawable.user_placeholder_error) .into(imageView); 2.Glide ———————Gradle dependency: repositories { mavenCentral()  google()}dependencies {  implementation ‘com.github.bumptech.glide:glide:4.8.0’ annotationProcessor ‘com.github.bumptech.glide:compiler:4.8.0’} Glide.with(getApplication()).load(url) .centerCrop() .crossFade() .error(R.mipmap.ic_launcher) .diskCacheStrategy(DiskCacheStrategy.ALL) .into(imageView); 3.Universal Image Loader————————————— Gradle dependency: compile ‘com.nostra13.universalimageloader:universal-image-loader:1.9.5’ ImageLoader imageLoader = ImageLoader.getInstance(); // Get singleton instance // Load image, …

Image libraries for android Read More »

Networking with Volley in Android

Volley is a networking library for Android that manages network requests. It bundles the most important features you’ll need, such as accessing JSON APIs, loading images and String requests in an easier-to-use package. By using Volley for network operations you avoid the standard way to handle networking, HttpURLConnection. Another reason is asynchronicity. Volley handles asynchronicity by …

Networking with Volley in Android Read More »