February 15, 2019

How to update RecyclerView in Android

1) Insert single item at any position:String value = “India”;int index = 2;dataList.add(index, value);adapter.notifyItemInserted(index);This will add India at position 2.2) Insert multiple items:int  index   = 3;dataList.add(index,”Australia”);dataList.add(index,”England”);dataList.add(index,”South Africa”);adapter.notifyItemRangeInserted( index,  dataList.size());Australia will be listed at position 3, England will be listed at position 4 and South Africa will be listed at position 53) Remove single item from any position:int  […]

How to update RecyclerView in Android Read More »

All about CSS Position : Absolute / Relative / Fixed / Sticky .

CSS Positions allow you to manipulate how elements are positioned  to achieve many different visual effects. In this post today, we’re going a little deeper to understand CSS positioning. There are basically 5 values but essentially only 4 values are commonly used.  Static : – This the default value all the elements have unless we change that

All about CSS Position : Absolute / Relative / Fixed / Sticky . Read More »

When we use !important exception and why we use it

The important the rule is used on a style declaration and this declaration overrides any other declarations. Although technically !important has nothing to do with specificity, it interacts directly with it. Using!important, however, is not good practice and should be avoided. Because it does debug more difficult by breaking the natural cascading in your stylesheets. When two conflicting declarations with

When we use !important exception and why we use it Read More »

Why I use JS.

Nowadays, JS is the most popular and friendly language ever. I use JS as my mainstream language. Let’s find out… WHY?? 1. EASY to Write: You can write code really fast in js. Not to need a headache with this. Its very simple to declare a variable. Like… var x = 10; var x = \’Hellow World\’; var

Why I use JS. Read More »