Skip to content

Tag: android

How to use PixelCopy API in android java to get bitmap from View

Currently I am using view.getDrawingCache() now get drawing cache is deprecated view.getDrawingCache() is deprecated in Android API 28 Solution in java code is have getting error Callback Can not resolve Callback Activity Window Handler which is supper class of callback ? Answer Check this article CallBack in…

.OnClickListener versus .OnChildClickListener

I know that (View.)OnClickListener is called whenever a view has been clicked on. What I don’t understand properly is, what OnChildClickListener does. I also wanted to know the difference between them. P.S. I have read Android’s documentation on OnChildClickListener but I am not able to grasp the …