In the development of cocos2d-x, we found that
SetDesignResolutionSize (960366f, 640366f, kResolutionExactFit) is not adaptive. Later, debugging found that it was not an engine problem, but in appController, when the program is started, it gets the bound of window and gets an incorrect value.
[[UIScreenmainScreen] bounds]It is clearly the simulator of 4 inch, and the height retrieved is always 480, instead of 568. In the simulator of 3.5, both the real machine and the real machine of ipad2 can
The page can adapt to the mobile phone screen size, and the image in it cannot be added to html
The content is read from the database, and the entire page and text can be adaptive, but the images in it won't be adaptive. what can I do?
Reply to discussion (solution)
Set the percentage width of the image.
The content is read from the database (html code), and the image attributes cannot be set
Quote: How can I hide all the buttons, address bars, and strong columns in this window?
The size of the control window is 800 × 600, centered on the screen. These are all completed in page loading. How can this problem be solved?
I can only do thisTip: you can modify some code before running
IPhone Devices:IPhone 1G---320x480IPhone 3G---320x480IPhone 3GS---320x480IPhone 4---640x960IPhone 4S---640x960IPhone 5---640x1136IPhone 5S---640x1136IPhone 5C---640x1136IPhone 6---750x1334IPhone 6 Plus---1080x1920 (development should be adapted according to 1242x2208)IPhone 6S---750x1334IPhone 6S Plus---1080x1920 (development should be adapted according to 1242x2208)IPhone 7---750x1334IPhone 7 Plus---1080x1920 (development should be adapted according to 1242x2208)IPhone 8---750x1334IPhone 8 Plus
As you know, the specific size of the notebook is not the same, large may reach 17, and the small only 10 to save, but for us to install the system, it is not possible to follow each specification for us to form a system, all the system version, font size is set by default, but some friends are puzzled , their computer screen is very small, but the installation o
This article mainly introduces Android to get the phone screen size implementation code, Android development often need to get the screen width, this article directly packaged into a tool class, the need for friends can refer to the
Android in the custom control, often need to get the width of the screen, each time to
Android in the custom control, often need to get the width of the screen, each time to write, you can directly encapsulate him into a tool class, directly to use, nonsense do not say, directly on the code
/**
* * * * * *
package com.example.customview;
Import Android.content.Context;
Import Android.util.DisplayMetrics;
Import Android.view.WindowManager;
/**
* Get mobile Screen
This article illustrates how Android is programmed to get the screen resolution size of a mobile phone. Share to everyone for your reference, specific as follows:
Import android.app.Activity;
Import Android.os.Bundle;
Import Android.util.DisplayMetrics;
Import Android.widget.TextView;
public class A03activity extends activity {
private TextView mTextView01;
/** called the activity is a. * *
@Overr
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.