When switch / replace a fragment, the keyboard normally does not dismiss itself. Here is a quick way to ensure keyboard dismissed after the fragment replace (Leaving the fragment).

When switch / replace a fragment, the keyboard normally does not dismiss itself. Here is a quick way to ensure keyboard dismissed after the fragment replace (Leaving the fragment).
How to get size in pixel on device dynamically in code?
If you follow this note, you will learn that we can set the in cell space using decoration. If we want to dynamically change the space based on the view’s (cell) size, then we will need to get the view.height property from the * getItemOffsets* function. However, I sometimes get a 0 when I visit view.height .
Android device size is a little tricky. How do we know what device size is for the phone we have?
I had a problem where the the vector assigned to an ImageView and it crashed on an odder device.
When I was working on analytics for Kinetic, the click event in setOnClickListener never gets called. So I find out a secondary solution is to catch up the screen motion event in Activity.
Here is how we can have custom paddings in between cells for a RecyclerView.
First we need to create a Protocol object to define what kind of functions will exists in the delegate. Here is a template:
At Mapsted, we need to generate html class reference for the SDK. Have a detailed reference not only makes us look professional but also helps our client easier integrating our SDK.
In Swift, you can generate todo comments, like below: