• BLOG
  • ARCHIVE
  • Dismiss Keyboard After Leaving Fragment

    May 15, 2019

    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).

    ...more
  • Dynamically Get Screen Element Size

    May 15, 2019

    How to get size in pixel on device dynamically in code?

    ...more
  • Wrong View Size In Decoration

    May 15, 2019

    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 .

    ...more
  • Device Screen Size

    May 13, 2019

    Android device size is a little tricky. How do we know what device size is for the phone we have?

    ...more
  • ImageView Drawable Crash On Vector Source

    May 13, 2019

    I had a problem where the the vector assigned to an ImageView and it crashed on an odder device.

    ...more
  • Detect Motion Event On Screen

    May 6, 2019

    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.

    ...more
  • Custom Cell Space For RecyclerView

    May 3, 2019

    Here is how we can have custom paddings in between cells for a RecyclerView.

    ...more
  • Create Custom Delegate

    Apr 19, 2019

    First we need to create a Protocol object to define what kind of functions will exists in the delegate. Here is a template:

    ...more
  • Generate Class Reference

    Apr 10, 2019

    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.

    ...more
  • Todo Tags In Xcode

    Mar 3, 2019

    In Swift, you can generate todo comments, like below:

    ...more
PREVNEXT