Package android.util

Examples of android.util.DisplayMetrics


        // Create a LinearLayout in which to add the ImageView
        mLinearLayout = new LinearLayout(this);

        // get the display metric (width and height)
        DisplayMetrics metrics = new DisplayMetrics();
        getWindowManager().getDefaultDisplay().getMetrics(metrics);
        final int width = metrics.widthPixels;
        final int height = metrics.heightPixels;

        final Bitmap lBmp = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
View Full Code Here

TOP

Related Classes of android.util.DisplayMetrics

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.