Get Display Size in Android
Hello Friends,
now a days android device are come with different resolution and different screen size and it very difficult to design android application for that design dynamically layout we need to get display size for that,
hear is code for get display size of screen in android
DisplayMetrics metrics = this.getResources().getDisplayMetrics();
int width = metrics.widthPixels;
intheight = metrics.heightPixels;
we get device Height and Width from this code
we get device Height and Width from this code
No comments:
Post a Comment