in it after clicking and its size changes. I need to get Imageview height after that image loads and set given height to another view.
problem is that Android gets Imageview's height before image loading and the size is not correct.
how can i fix it?
its a little complex
final View view=//smth; ... view.post(new Runnable() { @Override public void run() { view.getHeight(); //height is ready } });
call the height getter method after the image is loaded
Обсуждают сегодня