Transition Page Recycler using Animated Recycler View

Animated Recycler View is a library that allows you to animate a recycler view in your project like Google does it in its Google Play Store. Only the first visible items are animated there and you will see no animation when the recycler view scrolls up.
Animated Recycler View - Transition Page Recycler with layout animations
Animated Recycler View – Transition Page Recycler with layout animations

Reasons to use it

This library solves several problems:
  1. It works stably fast and without jerks.
  2. It doesn’t need to utilize the adapter to animate items when they appear for the first time.

Why Animated Recycler View is special for you?

While working on a project, most of time we need animation similar to the one used in the Google Play Store but didn’t find any appropriate library on Internet/ Github/ StackOverflow that could help us with this task. 
Source: How to Transition Page Recycler using Animated Recycler View? 

Best programming for Android after analyse APK



There are so many ways to make mobile apps ranging from direct platform specific development (using Java and Kotlin for Android, and ObjC and Swift for iOS), there’s React Native from Facebook, Electrode Native from Walmart, the Ionic framework, Unity for certain types of apps, and the flutter.io framework which was just released by Google.



Ever wondered how these libraries and frameworks affect the size of your app? Let’s analyze some apk files for apps written in some of these ways. The apps are very basic, containing just a title at the top and a text at the center of the screen.

This will show, for a bare minimum app what these frameworks need to package along with the apk for it to be able to run.

  • For this test I created four different versions of the app, one in each of JavaKotlinReact Nativeand Flutter. (Android API 27)
  • The apks were then published for release type using Android Studio for Java and Kotlin and using the cli for React Native and Flutter.
  • Default proguard configuration was used.
  • The apks were analyzed using the Analyze APK feature in Android Studio.
Source: Which Language is Good for Android by Analyze APK sizes?

Top 6 Java Defects can resolve by Kotlin

This article looks at many categories of Java defects that Kotlin prevents in addition to null safety. Kotlin showed a surprising impact on productivity.




This article looks at many categories of Java defects that Kotlin prevents in addition to null safety. My first article (5 cool thing about Kotlin) provided a brief introduction to Kotlin and showed a surprising impact on productivity.
It’s important to realize the difference in value in fixing a defect in one class versus preventing an entire category of Java defects from occurring in any class.

What we see today:

  1. Equality Defect Categories
  2. Data Class Defect Categories
  3. Switch Defect Categories
  4. Assignment Defect Categories
  5. Override Defect Categories
  6. Null Defect Categories
Source: How Kotlin remove Java defects? 

Magic Multiply by 9 Trick without Pen and Paper

Now you’re ready to multiply any number with 9 in 3 sec.
28 X 9 = ?
From Step 2, we’ve to subtract 28 with 3 :
28 – 3 = 25(this is your first part of your answer)
Now from Step 1, we’ve to multiply the unit place of 28 by 9 i.e. 8 X 9.
8 X 9 = 72 and we’ll take only unit place of answer i.e. 2
And, finally merge both step and your answer is
28 X 9 = 252
Let’s take one more example : 57 X 9 =?
57 – 6 = 51
7 X 9 = 63
57 X 9 = 513
Full tutorial : Magic Multiply by 9 Trick - Mind Calculation in 3 sec 

[CRUD Example] : Spring Boot with Kotlin and AngularJS

Today we’re going to learn CRUD example using Spring boot, Kotlin and AngularJS with WebJar. For this tutorial, nothing is assumed except some basic Java experience.

Spring Boot + Kotlin + AngularJS + WebJar CRUD Example

We’ll show you how simple it is to create compliant and flexible REST services using the incredible frameworks Spring Boot and Kotlin. We’ll go through the how and why of …

Source: Spring Boot + Kotlin + AngularJS + WebJar CRUD Example

What is MVC, MVP and MVVM in details?

 
Today, the MVC pattern is used by well-known frameworks such as Ruby on Rails, Apple iOS Development, ASP.NET MVC, etc. While MVP is mostly used for ASP.NET Web Forms applications and MVVM is used by WPF, Caliburn, Silverlight, nRoute, and more. Which development pattern are you currently using in your software projects? Let us know in the comments below.

Source: Comparison between MVC, MVP and MVVM in details

How to Add Popup Menu in Android?

Android Popup menu is really a good way to make your Android application more elegant and create a great UI.  And we already discuss some menu library for Android application like ;
Now let’s focus on PowerMenu Android library which is a library that let you implement Android popup menu so easily. Without going much more start with implementation.

Demo

Android Popup Menu PowerMenu Example
Android Popup Menu PowerMenu Example
This is a basic example on a screenshot. You can build PowerMenu(Android Popup Menu) using Builder.
PowerMenu powerMenu = new PowerMenu.Builder(context)
.addItemList(list) // list has "Novel", "Poerty", "Art"
.addItem(new PowerMenuItem("Journals", false))
.addItem(new PowerMenuItem("Travel", false))
.setAnimation(MenuAnimation.SHOWUP_TOP_LEFT) // Animation start point (TOP | LEFT)
.setMenuRadius(10f)
.setMenuShadow(10f)
.setTextColor(context.getResources().getColor(R.color.md_grey_800))
.setSelectedTextColor(Color.WHITE)
.setMenuColor(Color.WHITE)
.setSelectedMenuColor(context.getResources().getColor(R.color.colorPrimary))
.setOnMenuItemClickListener(onMenuItemClickListener)
.build();
You can add items or item List using PowerMenuItem class. This is how to initialize PowerMenuItem.
PowerMenuItem powerMenuItem = new PowerMenuItem(“Travel”, true);
At first, argument is item Title, and the other is setting selected status. If true, the item’s text or background colour is changed by your settings like below:
.setSelectedTextColor(Color.WHITE)
.setSelectedMenuColor(context.getResources().getColor(R.color.colorPrimary))
You can listen to item click.
private OnMenuItemClickListener<PowerMenuItem> onMenuItemClickListener = new OnMenuItemClickListener<PowerMenuItem>() {
@Override
public void onItemClick(int position, PowerMenuItem item) {
Toast.makeText(getBaseContext(), item.getTitle(), Toast.LENGTH_SHORT).show();
powerMenu.setSelected(position); // change selected item
powerMenu.dismiss();
}
};
and the last, show popup
powerMenu.showAsDropDown(view); // view is an anchor
or
powerMenu.showAsDropDown(view, (int)xOffset, (int)yOffset);

Source

Social Networks:

Twitter

Facebook




Top 5 Android and Kotlin Database Libraries

There are several popular ORM database libraries out there (SQLDelight, GreenDAO, SugarORM) but we’re going to see top 10 Android database library and nearly every one uses reflection for critical database interactions. Back-end developers get things done, plain and simple.





See this : Comparison of All Android Image Loading Library

Their work lays the foundation for an app’s success, and it comes with a lot of blood sweat and tears. Whatever your flavor, NoSQL or SQL these database libraries aim to make that work easier.

List of Top 10 Android Database Libraries

1. Sugar ORM (Java)

Image result for sugar orm android

TMH rating : 8.6/10

Insanely easy way to work with Android databases.

Sugar ORM – Github

It was built in contrast to other ORM’s to have:

  • A simple, concise, and clean integration process with minimal configuration.
  • Automatic table and column naming through reflection.
  • Support for migrations between different schema versions.

2. SQLDelight (Kotlin)

TMH rating : 7.3/10

Generates Java models from CREATE TABLE statements.

SQLDelight – Github

  • SQLDelight generates Java models from your SQL CREATE TABLE statements.
  • These models give you a typesafe API to read & write the rows of your tables.
  • It helps you to keep your SQL statements together, organized, and easy to access from Java.
Comparison of All Android Dependency Injection

3. Nitrite Database (Java)

TMH rating : 6.1/10

Java embedded nosql document store

NOsql Object (NO2 a.k.a Nitrite) database is an open source nosql embedded document store written in Java. It has MongoDB like API. It supports both in-memory and single file based persistent store powered by MVStore engine of h2 database.

Nitrite Database – Github

It is a server-less embedded database ideal for desktop, mobile or small web applications.

It features:

  • Embedded key-value/document and object store
  • In-memory or single data file
  • Very fast and lightweight MongoDB like API
  • Indexing
  • Full text search capability
  • Full Android compatibility
  • Observable store
  • Both way replication via Nitrite DataGate server

4. AppDataReader (Java)

TMH rating : 5.8/10

A library for reading Shared Preferences and Database values within the application.

Image result for AppDataReader

A library for reading and writing Shared Preferences and Database values of the application within the device.

AppDataReader – Github

Advantages of using this library

  • No Java Code. Only gradle dependency.
  • Read all the Database Values in the device without the need of a browser.
  • See all the Shared Preferences at once or file by file.
  • Edit the table data by clicking the value of a column in a row.
  • Query the database with various types of queries like SELECT, UPDATE, DELETE, INSERT and RAW QUERY. Querying is made simpler by making an interactive UI for various types of queries.
  • Copy the value of an individual column of Shared Preference and Database tables to Clipboard.
  • With the help of some additional gradle code, this library will pick up the compileSdk Version, targetSdk Version and Build Tools Version from the main project.
Top 12 Advanced Kotlin Tips For Pro Developers

5. greenDAO (Java)

TMH rating : 5.6/10

greenDAO is a light & fast ORM solution for Android that maps objects to SQLite databases.

Image result for greendao android

It is a light & fast ORM for Android that maps objects to SQLite databases. Being highly optimized for Android, greenDAO offers great performance and consumes minimal memory.

greenDAO – Github

Features

greenDAO’s unique set of features:

  • Rock solid: greenDAO has been around since 2011 and is used by countless famous apps
  • Super simple: concise and straight-forward API, in V3 with annotations
  • Small: The library is <150K and it’s just plain Java jar (no CPU dependent native parts)
  • Fast: Probably the fastest ORM for Android, driven by intelligent code generation
  • Safe and expressive query API: QueryBuilder uses property constants to avoid typos
  • Powerful joins: query across entities and even chain joins for complex relations
  • Flexible property types: use custom classes or enums to represent data in your entity
  • Encryption: supports SQLCipher encrypted databases.

Note : If you want next five popular Android database library then check here.

BlockChain Technology - Advantage and Disadvantage

What is BlockChain Advantage and Disadvantage?
What is BlockChain Advantage and Disadvantage?
Blockchain is a public record of transactions. It’s also distributed, so instead of one person controlling everything, there are thousands of computers around the world connected to a network, and these thousands of computers together come to an agreement on which transactions are valid.
A blockchain, originally block chain,is a continuously growing list of records, called blocks, which are linked and secured using cryptography. Each block typically contains a hash pointer as a link to a previous block, a timestamp and transaction data.
Attempting to explain the advantages and disadvantages of blockchain technology, in it’s current format, for developing solutions.
Over the last 6 months, we’ve been attempting to pull apart blockchain, from concept, to economics. This article is designed to record some of our thoughts about blockchain and why it’s useful, or not. If we have something wrong, inaccurate or out of date, let us know in the comments!
Source: What is BlockChain Advantage and Disadvantage?

Android Technology Trends in 2018

Top 3 Mobile Technology Trends in 2018
Top 3 Mobile Technology Trends in 2018
Here is my Top three technology trends you all should look out for in your endeavors in this new year 2018, which as always, will offer you loads of new opportunities to rock this world. Being a part of this mobile app ecosystem I feel immense pride while writing this piece of article for all you visionaries and future mobile apprenuer.
Before I kick-start this article, please allow me to wish
“ A Very Very Very… Happy New Year 2018” To all you lovely readers and my well wishers.
It has been an amazing journey so far being a part of this mobile app revolution since 2006, I feel blessed to see both pre & post smartphone evolution era and having experienced the change myself being the developer, leader and now a father of my own mobility startup. So thought to analyze the trend setters which kind of will rule this new year.
Technology trends Credit: BOD
Technology trends – Credit: BOD

List of Top 3 Mobile Technology Trends in 2018

Comparison between all Android Wear Library

Top 5 Android Wear Library In 2018
Top 5 Android Wear Library In 2018

Welcome to 2018. Happy New Year To All Of You.

If you’re planning to make your own Wear app then i can give you list of some great Android Wear library which you can use in 2018.

Android Wear is a version of Google’s Android operating system designed for smartwatches and other wearables.By pairing with mobile phones running Android version 4.3 or newer, or iOS version 8.2 or newer with limited support from Google’s pairing application, Android Wear integrates Google Assistant technology and mobile notifications into a smartwatch form factor. It also adds the ability to download applications from the Google Play Store.


Top 5 Android Wear Library In 2018
Top 5 Android Wear Library In 2018
Android Wear smartwatches let you track your fitness, glance at alerts & messages, and ask Google for help – right on your wrist.

List of Top 5 Android Wear Library In 2018

Multicolor TextView for Android

Android TextView is capable of showing text in your Android app and previously we discuss how to add rotating animation with TextView. This tutorial explains how to use MultiColor TextView in Android application.
Multicolor TextView in Android

This is a simple library to display text with multicolor. Let see some demo of Multicolor TextView library:

samplesamplesample

How to Install Multicolor TextView?

Add to your app module build.gradle
compile 'com.lombokcyberlab.android.multicolortextview:MultiColorTextView:1.0.0'
For gradle 3.x
implementation 'com.lombokcyberlab.android.multicolortextview:MultiColorTextView:1.0.0'
For maven add to your pom file:
<dependency>

<groupId>com.lombokcyberlab.android.multicolortextview</groupId>

<artifactId>MultiColorTextView</artifactId>

<version>1.0.0</version>

<type>pom</type>

</dependency>
Source: How to Add Multicolor TextView in Android? 

Nothing Type in Kotlin

A colleague approached me a while ago and asked me a question about Kotlin. What was this “Nothing type”, and what was it used for? I did not really have a good answer for him at the time.
Since then, I’ve found my answer.
In mathematics, bottom (often denoted as _|_) represents the absolute minimum value something can hold.
Nothing type has no instances. You can use Nothing to represent “a value that never exists”: for example, if a function has the return type of Nothing, it means that it never returns (always throws an exception).
Previously shared Kotlin post:
  1. Top 12 Advanced Kotlin Tips For Pro Developers
  2. Kotlin Parcelize – Developer need to know
  3. Create Firefox Extension Using KotlinJS
When we’re talking about types, we can think of Nothing as being the absolute bottom (leaf) object of any type hierarchy.
What we can see in this diagram (figure 1) is that Nothing is the opposite of Any. While every object you will work with in Kotlin implicitly extends Any, so to does Nothing implicity extend any object that exists. This makes Nothing the ‘dual’ or opposite of Any.
So, why is this useful?

See full article >>