We normally use spinner loaders when the app wants to load the data from a network call. Instead of using the usual loaders, we can make the loading screen more interesting using Facebook’s Shimmer library. This library adds Shimmer effect on to any custom view that we define. You can notice this shimmer effect in Facebook’s mobile and desktop apps.

This tutorial explains how to use the Shimmer library in your apps with an example of loading a list data from a API call.

1. Facebook’s Shimmer Library

Shimmer is an Android library that provides an easy way to add a shimmer effect to…


DynamicSizes — dynamic scalable size unit

An android SDK that provides a new size unit — hsdp. This size unit scales with the screen size. It can help Android developers with supporting multiple screens.

With this library, you can support almost 97% of screens

Use it carefully! for example, in most cases you still need to design a different layout for tablets.

Example

Here is a single layout built using hsdp:

Image for post
Image for post
Layout using hsdp

Here is a single layout built using dp:


This library add a shrinking effect on any ‘View’ while clicking.

How it’s work

Image for post
Image for post

How to integrate Click Shrink Effect Library into Android Project?

Step 1:

Add below code into <project>/build.gradle file.

allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}

Step 2:

Add below code into <project>/<app>/build.gradle.

dependencies {
// Add this line
implementation 'com.hardik.clickshrinkeffect:shrinkeffect:1.0.1'
}

Step 3:

Press on sync now in the Android Studio.

How to use Click Shrink Effect Library into Android Project?

Kotlin:

fab.applyClickShrink()
cardView.applyClickShrink()
textView.applyClickShrink()
imageView.applyClickShrink()

Java:

ClickShrinkEffectKt.applyClickShrink(fab);
ClickShrinkEffectKt.applyClickShrink(cardView);
// ORnew ClickShrinkEffect(fab);
new ClickShrinkEffect(cardView);

So that’s all for this Click Shrink Effect Tutorial. If any query/suggestion for Click Shrink Effect Tutorial ask freely on hardikdungrani8@gmail.com

Please go through my GitHub repository.

Thanks.

Hardik D.


This is a tutorial about sending push notifications to Android through Firebase, based on the new release of Firebase this year (2016).

Android Working With Firebase Push Notification

Firebase is developed in the year 2011 by the company know as Firebase. Then Google acquired this product in 2014. Google added many new features into this product and those new features are introduced in Google I/O 2016. Firebase offers so many useful features. But today we are going to discuss Firebase Push Notification.

For sending Firebase Push Notification we are going to use FCM(Firebase Cloud Messaging). FCM is a newer version of GCM(Google Cloud Messaging). FCM includes…


Image for post
Image for post

Now, I will share about how developers can send APKs to anyone who needs it directly.

You can integrate App Distribution into your Android build process using the App Distribution Gradle plugin. The plugin lets you specify your testers and release notes in your app’s build.gradle file, letting you configure distributions for different build types and variants of your app.

Before you begin

If you haven’t already, add Firebase to your Android project.

If you aren’t using any other Firebase products, you only have to create a project and register your app.

Download .json file from Firebase and add file to your project(module).

1. Set up your Android project

Hardik Dungrani

I have extensive experience in developing innovative and complex Android /iOS Apps and also in Website Developing. Been working in Kotlin for the last 2 years.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store