view.post(new Runnable() {
@Override
public void run() {
int width = view.getWidth();
int height = view.getHeight();
}
});
view.post(new Runnable() {
@Override
public void run() {
int width = view.getWidth();
int height = view.getHeight();
}
});
本文标题:android onCreate中获取view的宽高
本文链接:https://www.haomeiwen.com/subject/yadhgctx.html
网友评论