Sourav Bagchi

Results 10 comments of Sourav Bagchi

I think it is time to make your own custom element! No commit since last 10 months

> Thanks for this PR! Do you happen to know whether this behavior is consistent across browsers? My main concern is ensuring that `relatedTarget` can be used on all of...

Please add suffix and prefix support like Hunspell. It will be very useful. Hunspell dictionaries are pretty good and up to date.

Yeah. Gradle wrappers need to be updated 6.5 version.

Hi @stowy `getContext().getResources().getConfiguration().densityDpi` method will not work in this case. `getContext().getResources().getConfiguration().densityDpi` will return corresponding to density resource qualifier like ldpi, mdpi etc. Please look at this [stackoverflow answer](https://stackoverflow.com/a/35006910).

@stowy, `resources.displayMetrics` method isn't working on Android R too. I found this [bug](https://cs.android.com/android/platform/superproject/+/master:frameworks/base/core/java/android/content/res/ResourcesImpl.java;l=203;bpv=0;bpt=1) in AOSP sources. I think proper implementation will be something like this- ```` DisplayMetrics outMetrics = new...

@stowy , I also found in AOSP [DisplayInfo ](https://cs.android.com/android/platform/superproject/+/master:frameworks/base/core/java/android/view/DisplayInfo.java) source that `density=densityDpi * DisplayMetrics.DENSITY_DEFAULT_SCALE` So an alternative better solution is `getContext().getResources().getConfiguration().densityDpi * DisplayMetrics.DENSITY_DEFAULT_SCALE `

I was wrong. To convert pixels into dp, we should divide pixels by a scaling factor and that [scaling factor](https://developer.android.com/training/multiscreen/screendensities) is `dpi / 160`. `getContext().getResources().getConfiguration().densityDpi` method returns the screen dpi...