how to get width android
Display display = getWindowManager().getDefaultDisplay();
Point size = new Point();
display.getSize(size);
int width = size.x;
int height = size.y;
how to get width android
Display display = getWindowManager().getDefaultDisplay();
Point size = new Point();
display.getSize(size);
int width = size.x;
int height = size.y;
measure view height android
ViewTreeObserver vto = frameAbout.getViewTreeObserver();
vto.addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@Override
public void onGlobalLayout() {
int width = frameAbout.getMeasuredWidth();
int height = frameAbout.getMeasuredHeight();
ViewGroup.LayoutParams params = fakeheight.getLayoutParams();
params.height = height - 200;
fakeheight.setLayoutParams(params);
}
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us