I need to get a link to a separate XML file, which is FrameLayout, but I canβt figure out how to do this, this code does not work:
FrameLayout desktopFrameLayout = (FrameLayout) findViewById(R.id.desktopsFramelayout); desktopFrameLayout.setDrawingCacheEnabled(true); desktopFrameLayout.buildDrawingCache(); Bitmap bitmap = desktopFrameLayout.getDrawingCache();
source share