android - How to get the whole bitmap of all views below? -


i have view has transparent area. through transparent area , can see view below it, want view see trough transparent area become blur. have found code make bitmap blur how can bitmap of i'm seeing trough transparent area?

i found builddrawingcache function of view not know how use it.

you can convert view bitmap. visit link see how that.

public static bitmap loadbitmapfromview(view v) {    bitmap b = bitmap.createbitmap( v.getlayoutparams().width, v.getlayoutparams().height, bitmap.config.argb_8888);                    canvas c = new canvas(b);    v.layout(v.getleft(), v.gettop(), v.getright(), v.getbottom());    v.draw(c);    return b; 

}

what you're trying achive it'll done using fragments. haveing on fragment on other. set blue view of lower fragment background of upper fragment.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -