x 1334, between them Relationship 1:2 relationship. That is, a coordinate corresponds to 2 pixels. iphone 6 plus machine with Retina screen, coordinates 414, 736, screen pixels x 192 0, the relationship between them 1:2.6 relations. That is, a coordinate corresponds to 2.6 pixels. adaptation methods:
after the IPhone 4s , different models, screen size coordinates unchanged, with the actual picture size ratio is not 1:1 is 1:2 relationship. Because the coordinates are consta
1. Fit layout, the child element will automatically fill the entire parent container (the width setting for the element is invalid). If the container component has multiple child elements, only the first child element will be displayed.
II. Application Example
CopyCodeThe Code is as follows: Ext. onready (function (){
New Ext. Panel ({
Renderto: Ext. getbody (),
Title: "container components ",
Layout: "fit
In the iOS phone interface design, because of different phone types of mobile phone size is different, then in the design of the mobile phone interface to adapt to the screen, here to the landing interface design as a simple example of the implementation of the screen adaptation method: (Screen auto-fit zoom)Effect:The following is a look at the code implementation process:1, the code implemented in the agent:AppDelegate.h//Landing Interface Design#im
Recent Contacts small screen machine contact name display--longer than the boundary font size is smaller/*** custom TextView, text content automatically adjusts font size to fit textview size * @author yzp*/ publicclassAutoFitTextViewextendsTextView{ privatePaintmTextPaint;privatefloat Mtextsize;publicautofittextview (Contextcontext) {super (context); }publicautofittextview (Contextcontext, attributesetattrs) {super (context , attrs);}/** *resizethefo
properties of the original system properties will be supported, but the root layout does not support the auto-percent PX, but the general root layout is match_parent, and the above way, the root layout can be directly px percent.Iv. Precautions (1) How to open previewWe all know that when writing layout files, can not be real-time to preview the effect, then the experience is really very bad, but also to a large extent to reduce the development efficiency, so the following teach you how to use
1. Use anchors and Pivot in recttransform to fit the layout of controls and forms.Anchors controls the layout position of the current panel relative to the parent form, can be set to center or upper left corner, and the current panel can automatically layout to the correct position when the parent form is stretched. At the same time, you can set the stretching, such as the main interface is generally full-screen stretching, this situation can be handl
PrefaceSeptember 20, formally push the official version of Xcode 9 and iOS 11, the adaptation of iOS 11 is the first to adapt, many online tutorials, not repeat. The main point here is that the adaptation of the iphone x to the big God level can not be seen, I am speaking here is mainly the basic adaptation workSummaryStart diagram: 1125 * 2436StatusBar Height: 44Tabbar Height: 83
Start the application
For some older projects, on the start-up diagram, there may be no adap
Recently, design patterns are popular, MVC is ubiquitous, and the PHP field is no exception, and many forums are beginning to discuss the use of MVC in PHP. However, how should M, V, c be implemented in PHP? Is MVC really a good fit for PHP? Here easy to give some of their own thinking.Recently, design patterns are popular, MVC is ubiquitous, and the PHP field is no exception, and many forums are beginning to discuss the use of MVC in PHP. However, ho
When a user prints a Word document using Word2013, if the printer you are using does not support the type of paper specified in the current Word document Page Setup, you can automatically use A4 sized paper by setting the zoom content, as described in the following steps:
Step 1th, open the Word2013 document window, click the file → options command, and so on, as shown in Figure 1.
Figure 1 Click the Options command
Step 2nd, open the Word Options dialog box and switch to the Advanced
Two days ago, I first saw "Product/market fit" in an interview with Dong Jing. Today, when I read "hacker and painter", the author PaulGraham also repeatedly stressed the importance of rapid market response, opposed to the step-by-step drag of traditional software, especially for startup company. Therefore, I specifically checked "Product/market fit" and then got into touch with things like customer develop
I haven't written any logs for a long time. I will share some good Mac software over the next period of time, hoping to help my PC-> Mac friends.
Let's introduce the Chinese Input Method for Mac today. I believe that for the vast majority of users, this is the first Mac software.
Although the MAC system has its own input method, it is not good enough. If you use Mac, you must make the best effort.
There are three good input methods in Mac.
1 fun input toy (often referred to as
Example.png.The picture is the same as the screen, also has 1x mode, 2x mode. In the iphone 6 Plus, there is also 3x mode, the principle is the same.When iphone 4 selects the [email protected] image, it will generate a picture with a size of 40 dots and 2x mode. This time, the picture will look very clear. And there is no adaptation of the old program, [email protected] does not exist, select Example.png, generate a size of 40 x points, 1x mode of the picture, looks more blurred. But they occup
mode will prefer [email protected], if [email protected] does not exist, select Example.png.The picture is the same as the screen, also has 1x mode, 2x mode. In the iphone 6 Plus, there is also 3x mode, the principle is the same.When iphone 4 selects the [email protected] image, it will generate a picture with a size of 40 dots and 2x mode. This time, the picture will look very clear. And there is no adaptation of the old program, [email protected] does not exist, select Example.png, generate a
preview panel, select the device with the same resolution:Then you can see 最为精确的 the preview:Two items to note:
The size of the design you gave to the UI is not a mainstream design, this size is not found, you can take the monitor hit him to create a new device.
Don't look at all the resolutions in preview, it's not going to fit, because some of the calculations are dynamic.
(2) About TextViewTextView This control, there may be some
The least square method is used to fit the plane ., Least multiplication plane
This article uses some opencv functions to fit the plane.
//Ax+by+cz=Dvoid cvFitPlane(const CvMat* points, float* plane){// Estimate geometric centroid.int nrows = points->rows;int ncols = points->cols;int type = points->type;CvMat* centroid = cvCreateMat(1, ncols, type);cvSet(centroid, cvScalar(0));for (int c = 0; c
Call metho
Android adaptation, before the work is to 1280*720 interface to adapt to work, but now the resolution of the mobile phone into the 2K era, so now art are 1920*1080 to do interface design. Based on previous work experience, summed up the appropriate plan.1. Tools: Markman This is a must-have measurement tool (do not update the download after installation, otherwise the measured data will not be saved)2. Understand the resolution principle (0.75, 1, 1.5, 2.0, 3.0)3. Know what resolution to develo
ObjectAtIndex:indexPath.row] Objectforkey:persontel]; returncell;}-(Nsinteger) TableView: (UITableView *) TableView numberofrowsinsection: (nsinteger) section{NSLog (@"%d", _contactlist.count); return_contactlist.count;}The difference between iOS and Android table usage:iOS defines an array member variable in Viewcontroller, sets Viewcontroller to TableView DataSource object, and then creates or re-uses the UI in Cellforrowatindexpath. The array member variables are updated to the UI after read
log output (Basic understanding Log4net) Three steps:1. Writing the config file (log4netstudy.config)2. Import Log4net.dll (directly in the VS Unget search, also available in the first article)3. Add this sentence code to the namespace: [Assembly:log4net. Config.xmlconfigurator (configfile = "Config's absolute path or relative path", Watch = True)]Then you can write code that "the comments for the code are all in Program.cs ".2. Form programs (where most output logs are included)If you look at
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.