Finding the real position of an element with respect to the document

The first attempt when trying to get the position of an element with respect to the document has been to use the getBoundingClientRect method.

Element.getBoundingClientRect and Element.getClientRects

Continue reading Finding the real position of an element with respect to the document

Targeting different Android layouts based on different SDKs

Please read through the whole article before doing anything, since these are notes I took while I was developing this feature.

The version of Android running on the device is given by the variable

android.os.Build.VERSION.SDK_INT

Continue reading Targeting different Android layouts based on different SDKs