android - How to tell when image has been displayed in a view -


I have an activity that displays a spinning progress, while retrieving an image from a server in the background Has been there. After retrieving the image, it appears in the image view, which hides the progress. In addition, there are some menu items that perform different actions on the image.

I should not show this menu item until the image is loaded in the image view. Is there a type of listener that I can add to the image view to display the image? I tried to add Focus Listener to the Properbarbar, when Progress Barr was not focusing anymore, thinking that the focus is lost when the image is displayed, but it never started. any other suggestions?

You will use some library or some idealler class to load the image, then check it all Before setting the bitmap in the image view to set the bitmap file image in the byte download library image bytes, you must change your menu item before performing a callback interface to notify the action to be performed. .

Specially please post your image loading code.

If you use Android control, then do it as follows:

  file file = new file (path); Callback aq.id (R.id.avatar) .image (file, wrong, 300, new bitmapxcodebackback), // Load image from override {override public zero callback (string url, imageview iv, bitmap BM, Ajaxstats status) ) {Iv.setImageBitmap (BM); // do something with BM}});    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -