Android Programjaim

Android, Flutter/Dart, Kotlin, Java, Unity, HarmonyOS

Android how to screen-shot a ListView with some code?

2012. október 07. 17:25 - lacas8282

basically this is very easy, we iterate on the listview's items, then we just call setDrawingCacheEnabled(true) and getDrawingCache() on each childs, then add all Bitmaps to an ArrayList, then we draw all the Bitmaps to a big Bitmap, and here it is, the final code: public static Bitmap…

Tovább
komment
süti beállítások módosítása