I\'m trying to inflate a layout and use that to set a bitmap on an image view. Then, I\'m adding that imageview to a linear layout and displaying the linear layout. Here\'s
You cant get bitmap on the views or layout is not being inflated.
Layout will only getting inflated after OnCreate()
OnCreate()
.
1.Get bitmap on Button_Clicked(View view){}
Button_Clicked(View view){}
2.Or using a Handle()to post delaying your get bitmap
Handle()
3.Make sure drawing cache is created using view.buildDrawingCache();
view.buildDrawingCache();