WO2015089980A1 - 一种页面的适配方法、装置和终端设备 - Google Patents

一种页面的适配方法、装置和终端设备 Download PDF

Info

Publication number
WO2015089980A1
WO2015089980A1 PCT/CN2014/077100 CN2014077100W WO2015089980A1 WO 2015089980 A1 WO2015089980 A1 WO 2015089980A1 CN 2014077100 W CN2014077100 W CN 2014077100W WO 2015089980 A1 WO2015089980 A1 WO 2015089980A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
display interface
pages
size
preferred
Prior art date
Application number
PCT/CN2014/077100
Other languages
English (en)
French (fr)
Inventor
王毅
Original Assignee
小米科技有限责任公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 小米科技有限责任公司 filed Critical 小米科技有限责任公司
Priority to RU2015122443A priority Critical patent/RU2616173C2/ru
Priority to BR112014018514A priority patent/BR112014018514A8/pt
Priority to MX2014009066A priority patent/MX344897B/es
Priority to JP2015553003A priority patent/JP5960932B2/ja
Priority to US14/340,523 priority patent/US20150170334A1/en
Publication of WO2015089980A1 publication Critical patent/WO2015089980A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0442Handling or displaying different aspect ratios, or changing the aspect ratio
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/14Solving problems related to the presentation of information to be displayed
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2370/00Aspects of data communication
    • G09G2370/20Details of the management of multiple sources of image data
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2380/00Specific applications
    • G09G2380/16Digital picture frames

Definitions

  • the present invention is based on a Chinese patent application with the application number 201310699702.9 and the application date being 2013/12/18, and claims the priority of the Chinese patent application, the entire Chinese patent application The contents are incorporated herein by reference.
  • the present disclosure relates to the field of data processing technologies, and in particular, to a page adaptation method, apparatus, and terminal device. Background technique
  • the format of traditional book files is generally divided into streaming document format and layout document format, streaming documents, such as ⁇
  • the adaptation of the mobile terminal is not only related to the width of the display interface, but also related to the size ratio of the display interface. For example, in the e-book, the cover and the illustration page are considered to support the entire display. Interface, because the page size is fixed, there will be some problems in the adaptation of the display interface of different proportions.
  • the present disclosure provides a method for adapting a page, including:
  • the preferred page is displayed on the display interface.
  • Some beneficial effects of the present disclosure may include: enabling a page to automatically adapt to different sizes of terminal devices, Displayed on the same size terminal device, there will be no problem of a large amount of white space, empty edge or unclear layout, and the layout effect is clear, the adaptation effect is good, and the user is convenient to use.
  • Some beneficial effects of the present disclosure may include: configuring an adaptation page in each of the plurality of numerical intervals of the preset aspect ratio, determining a numerical interval in which the aspect ratio of the display interface is located, and determining the display interface
  • the adaptation page configured by the numerical interval in which the aspect ratio is located is used as the preferred page, thus providing a scheme for determining the preferred page.
  • the page with the smallest cropping amount among the N pages is taken as the preferred page.
  • the present disclosure provides another solution for determining a preferred page.
  • Determining, according to the size of the display interface, a cutting amount of each of the N pages comprising: determining, according to a size of the display interface, a length cutting amount of each of the N pages
  • the page that minimizes the amount of cropping in the N pages is used as the preferred page, and includes:
  • a page having the smallest amount of length cut in the N pages is taken as the preferred page.
  • Some of the beneficial effects of the present disclosure may include: using a page with the smallest amount of length clipping in the N pages as a preferred page, ensuring that the effective content is not cut, and the fitting effect is good.
  • Determining, according to the size of the display interface, a cutting amount of each of the N pages comprising: determining, according to a size of the display interface, a width of each page of the N pages
  • the page that minimizes the amount of cropping in the N pages is used as the preferred page, and includes:
  • a page having the smallest amount of width clipping in the N pages is taken as the preferred page.
  • Some of the beneficial effects of the present disclosure may include: using a page with the smallest amount of width clipping in the N pages as a preferred page, ensuring that the effective content is not cut, and the fitting effect is good.
  • the present disclosure provides an apparatus for adapting a page, including:
  • a detecting module configured to detect a size of the display interface
  • a determining module configured to determine a preferred page in the N pages with different preset sizes, where a size difference between the preferred page and the display interface is within a preset gap, and the N is greater than or equal to 2 Positive integer
  • a display module configured to display the preferred page on the display interface.
  • the determining module includes:
  • An aspect ratio determining unit configured to determine an aspect ratio of the display interface according to a size of the display interface; and an interval determining unit, configured to determine the display in a plurality of numerical intervals of a preset aspect ratio The numerical interval in which the aspect ratio of the interface is located; And a first processing unit, configured to use, as the preferred page, an adaptation page configured for a numerical interval in which the aspect ratio of the display interface is located.
  • the determining module includes:
  • a cutting amount determining unit configured to determine, according to the size of the display interface, a cutting amount of each of the N pages
  • a second processing unit configured to use, as the preferred page, a page with the smallest amount of clipping in the N pages.
  • the present disclosure provides a terminal device including a memory, and one or more programs, wherein one or more programs are stored in a memory and configured to be one or one Executing, by the processor, the one or more programs includes instructions for: detecting a size of the display interface;
  • the preferred page is displayed on the display interface.
  • Figure 1 is a schematic diagram of the first processing method for displaying a 4:3 page of a widescreen display
  • FIG. 2 is a schematic diagram of a second processing method for displaying a 4:3 page of a widescreen display
  • FIG. 3 is a flowchart of a main method for adapting a page in an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of a first preferred embodiment of a method for adapting pages in an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of a second preferred embodiment of a method for adapting pages in an embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of a third preferred embodiment of a method for adapting pages in an embodiment of the present disclosure
  • 7C is an effect diagram of displaying a display interface having an aspect ratio of 4:3 on an aspect ratio of 16:11;
  • FIG. 9 is a schematic diagram of a first specific structure of a determining module in an embodiment of the present disclosure.
  • the embodiments of the present disclosure provide a method, an apparatus, a terminal, and a server for adapting a page.
  • the disclosure will be described in detail below with reference to the accompanying drawings.
  • the page with the aspect ratio of 4:3 shown in the left side of FIG. 1 is scaled up until the horizontally wide screen display interface with an aspect ratio of 16:9 is displayed, and the result is shown in FIG. 1 .
  • the processing method makes the top and bottom of the page cropped, which is usually unacceptable.
  • the technical solution provided by the embodiment of the present disclosure can implement page adaptation in various display interfaces, and does not cause the problem that the effective content is cut or left blank.
  • Step 32 Determine a preferred page in the N pages with different preset sizes, where the size difference between the preferred page and the display interface is within a preset gap, and N is a positive integer greater than or equal to 2.
  • Step 33 Display the preferred page on the display interface.
  • the above step 32 may include the following steps A1-A3: Step A1, determining the aspect ratio of the display interface according to the size of the display interface.
  • Step A2 determining, in a plurality of numerical intervals of the preset aspect ratio, determining a length-to-width ratio of the display interface, where the difference between the maximum value and the minimum value of each of the plurality of numerical intervals is the same , can also be different.
  • Step A3 The adaptation page configured for the numerical interval in which the aspect ratio of the display interface is located is taken as the preferred page
  • an adaptation page is configured for each of the plurality of numerical intervals of the preset aspect ratio, and the numerical interval in which the aspect ratio of the display interface is located is determined, and the aspect ratio of the display interface is determined.
  • the adaptation page configured by the numerical interval is used as the preferred page, thus providing a solution for determining the preferred page.
  • the above step 32 may include the following steps B1-B2:
  • Step Bl according to the size of the display interface, determine the length of each page of each of the N pages.
  • Step B2 The page with the smallest amount of length clipping in the N pages is used as the preferred page.
  • the length of each page in each of the N pages can be determined according to the following formula: h, h x
  • rf is the length of the i-th page in the N pages
  • is the length of the i-th page
  • /2 is the width of the i-th page
  • w x is the length of the display interface
  • the clipping amount of the page length can be made smaller than the maximum clipping amount of the preset page length, that is, ⁇ 11 ⁇ 0/ 0 , which ensures that the effective content is not cut, and the matching effect is good.
  • the above step 32 may include the following steps C1-C2:
  • Step Cl according to the size of the display interface, determine the width of each page of each of the N pages.
  • Step C2 The page with the smallest amount of width clipping in the N pages is used as the preferred page.
  • /3 ⁇ 4 is the width of the i-th page in the N pages
  • is the length of the i-th page
  • /2 is the width of the i-th page
  • w x is the length of the display interface, which is the display interface width.
  • the clipping amount of the page width can be made smaller than the maximum clipping amount of the preset page width, that is, / ⁇ xm h o/ 0 , which ensures that the effective content is not cut, and the fitting effect is good.
  • the N-pages with different preset sizes have a minimum aspect ratio of 4:3; or, the preset N-pages of different sizes have a maximum aspect ratio of 16:9; or, preset The N pages of different sizes have a minimum aspect ratio of 4:3, and the N pages with different preset sizes have a maximum aspect ratio of 16:9.
  • the aspect ratio of the display interface of mainstream mobile terminals is generally between 4:3 and 16:9. Usually, these two values are directly used as the aspect ratio points, so two pages with different aspect ratios are provided. One is 4:3 and the other is 16:9. In this way, basically all the display interface sizes will be selected with the closest one to ensure that the effective content of the page is not cut or left blank.
  • the page can automatically adapt different size smart terminal devices (for example, smart phones, tablets, computers, etc.), display on different size smart terminal devices, without a lot of blank, empty border or typesetting Unclear problems, clear layout effect, good adaptation effect, convenient for users.
  • smart terminal devices for example, smart phones, tablets, computers, etc.
  • FIG. 4 is a first preferred embodiment of a method for adapting pages in an embodiment of the present disclosure.
  • an adaptation page configured for a numerical interval in which the aspect ratio of the display interface is located is As a preferred page, the method includes the following steps:
  • Step 401 Detect the size of the display interface.
  • Step 402 Determine an aspect ratio of the display interface according to the size of the display interface.
  • Step 403 Determine, in a plurality of numerical intervals of the preset aspect ratio, a numerical interval in which the aspect ratio of the display interface is located.
  • Step 404 The adaptation page configured for the numerical interval in which the aspect ratio of the display interface is located is used as the preferred page.
  • Step 405 Display the preferred page on the display interface.
  • the preset three aspect ratio values are [4/3, 3/2], [3/2, 5/3], [5/3, 16/9], and the three aspect ratios.
  • Each aspect ratio value interval in the numerical interval is configured with an adaptation page (when the aspect ratio is located in a value within the interval, the adaptation page displays good on the display interface of the current aspect ratio, that is, ensures that the effective content is not Is cut or left blank), the aspect ratio of the detection display interface is 13/9, and the aspect ratio 13/9 of the display interface is determined to be in the numerical interval [4/3, 3/2], then the numerical interval is determined [4] /3,3/2]
  • the configured adaptation page is used as the preferred page.
  • an adaptation page is configured in each of the plurality of numerical intervals of the preset aspect ratio, determining a numerical interval in which the aspect ratio of the display interface is located, and determining an aspect ratio for the display interface.
  • the adapted page configured by the value interval is used as the preferred page, thus providing a solution for determining the preferred page.
  • Embodiment 2 A second preferred embodiment of the method for adapting a page in the embodiment of the present disclosure is shown in FIG. 5.
  • the clipping amount of the page length is smaller than the maximum clipping amount of the preset page length, that is, ⁇ 11 ⁇ 0/(), the method includes the following steps:
  • Step 501 Detect the size of the display interface.
  • Step 502 N pages having different preset sizes, where N is a positive integer greater than or equal to 2.
  • step 502 may also be performed before step 501, that is, before detecting the size of the display interface, N pages of different sizes are preset, and N is a positive integer greater than or equal to 2.
  • Step 503 Determine, according to the following formula, the length of each page of the N pages:
  • h r h x where is the length of the i-th page in the N pages, ⁇ is the length of the i-th page, /2 is the width of the i-th page, and w x is the length of the display interface, for display The width of the interface.
  • Step 504 satisfying 0 ⁇ 1 ⁇ 4 ⁇ ⁇ 11 ⁇ %, and the minimum value of rf page as the page is preferable, wherein, m w% ratio of a preset maximum cut length of the page.
  • Step 505 Display the preferred page on the display interface.
  • three pages with different aspect ratios are preset, that is, pages having an aspect ratio of 4:3, 5:3, and 16:9, and the lengths of the three pages are 12, 15, and 16, respectively.
  • the width is 9 and the maximum crop ratio for each page length is 10%.
  • the aspect ratio of the detection display interface is 13:9, and the length of each page of each of the three pages is determined to be 1, 2, and P 3, respectively, and the cropping ratios of the three pages are 8.3%, 13.3%, and 18.75, respectively. %, then the page with the length and height of 12 and 9 respectively is determined to be the preferred page.
  • the cutting amount of the page length can be made smaller than the maximum clipping amount of the preset page length, that is, w ; xm w % , which ensures that the effective content is not cut, and the matching effect is good.
  • FIG. 6 is a third preferred embodiment of the method for adapting pages in the embodiment of the present disclosure.
  • the clipping amount of the page width is smaller than the maximum clipping amount of the preset page width, that is, / 2 ; xm h %, the method includes the following steps:
  • Step 601 Detect the size of the display interface.
  • Step 602 N pages having different preset sizes, where N is a positive integer greater than or equal to 2.
  • step 602 may also be performed before step 601, that is, before detecting the size of the display interface, N pages of different sizes are preset, and N is a positive integer greater than or equal to 2.
  • Step 603 Determine, according to the following formula, the width of each page of the N pages:
  • the width of the i-th page in the page is ⁇ , the length of the i-th page, h, the width of the i-th page, and W X is the length of the display interface, which is the width of the display interface.
  • Step 604 A page that satisfies 0 ⁇ / ⁇ ⁇ /2 ; ⁇ 111 11 %, and the value of / 3 ⁇ 4 is the smallest page, where m h % is the maximum crop ratio of the preset page width.
  • Step 605 Display the preferred page on the display interface.
  • the fourth embodiment can be applied to such a scenario: Since the aspect ratio of the display interface of the current mainstream mobile terminal is generally between 4:3 and 16:9, it is possible to preset between 4:3 and 16:9.
  • the aspect ratios are pages with aspect ratios of 4:3, 5:3, and 16:9, and the contents of the three pages are the same.
  • an implementation manner of applying a page adaptation method in an embodiment of the present disclosure includes the following steps:
  • Step 701 Detect an aspect ratio of the display interface, and the aspect ratio of the display interface is 16:11.
  • Step 703 Determine that the aspect ratio of the display interface is 16:11 between 4:3 and 5:3, and the values of 16:11 and 4:3 are closest.
  • Step 705 Display the above preferred page on the display interface.
  • the page 71 of 3 displays the effect diagram 72 of the display interface having an aspect ratio of 16:11, wherein the smile map 721 is the effect diagram after the smile map 711 is displayed, and the cover sheet 722 of the new star reader is the effect of the cover image 712 of the new star reader.
  • the length and width are selected.
  • a page with a ratio of 4:3 is used as a preferred page, and is displayed on a display interface with an aspect ratio of 16:11, which ensures that the effective content is not cut, and the adaptation effect is good.
  • a determining module 802 configured to determine, in a preset N pages of different sizes, a preferred page, wherein a size difference between the preferred page and the display interface is within a preset gap, and N is a positive integer greater than or equal to 2;
  • the display module 803 is configured to display the preferred page on the display interface.
  • the determining module 802 shown in FIG. 8 above may include:
  • the determining module 802 shown in FIG. 8 above may include:
  • the second processing unit 1002 is configured to use a page with the smallest cropping amount among the N pages as a preferred page.
  • the crop amount determining unit 1001 is configured to determine each page in the N pages according to the following formula
  • the second processing unit 1002 is configured to use a page that satisfies 0 ⁇ h id ⁇ /2 ; xm h %, and the minimum value is the preferred page, where m h % is the maximum crop ratio of the preset page width.
  • N pages of different preset sizes have a minimum aspect ratio of 4:3; and / or preset sizes of N pages have an aspect ratio of at most 16:9.
  • the communication unit 110 can be used for transmitting and receiving information and receiving and transmitting signals during a call.
  • the communication unit 110 can be a network communication device such as an RF (Radio Frequency) circuit, a router, a modem, or the like.
  • RF Radio Frequency
  • the communication unit 110 is an RF circuit
  • the downlink information of the base station is received and then processed by one or more processors 180; in addition, data related to the uplink is transmitted to the base station.
  • RF circuits as communication units include, but are not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, and a LNA (Low Noise Amplifier, low) Noise amplifier), duplexer, etc.
  • communication unit 110 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access).
  • memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 120 may also include a memory controller to provide access to memory 120 by processor 180 and input unit 130.
  • the input unit 130 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • the input unit 130 can include a touch-sensitive surface 131 as well as other input devices 132.
  • Touch-sensitive surface 131 also referred to as a touch display or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., on any touch-sensitive surface 131 or on the touch-sensitive surface 131 The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program.
  • the touch-sensitive surface 131 may include two parts of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information
  • the processor 180 is provided and can receive commands from the processor 180 and execute them.
  • the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 can also include other input devices 132.
  • other input devices 132 may include, but are not limited to, physical keyboards, function keys (such as One or more of a volume control button, a switch button, etc., a trackball, a mouse, a joystick, and the like.
  • Display unit 140 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of terminal device 1200, which can be comprised of graphics, text, icons, video, and any combination thereof.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141.
  • touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
  • Terminal device 1200 can also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 and/or when the terminal device 1200 moves to the ear.
  • Backlighting As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the terminal device 1200 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here No longer.
  • the audio circuit 160, the speaker 161, and the microphone 162 provide an audio interface between the user and the terminal device 1200.
  • the audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, transmitted to the terminal device, for example, by the RF circuit 110, or outputted to the memory 120 for further processing.
  • the audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the terminal device 1200.
  • the terminal device may be configured with a wireless communication unit 170, which may be a WIFI (Wireless Fidelity) module.
  • WIFI is a short-range wireless transmission technology, and the terminal device 1200 can help users to send and receive emails, browse web pages, and access streaming media through the wireless communication unit 170, which provides wireless broadband Internet access for users.
  • FIG. 11 shows the wireless communication unit 170, it can be understood that it does not belong to the essential configuration of the terminal device 1200, and may be omitted as needed within the scope of not changing the essence of the disclosure.
  • the processor 180 is a control center of the terminal device 1200 that connects various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120.
  • the various functions and processing data of the terminal device 1200 are executed to perform overall monitoring of the mobile phone.
  • the processor 180 may include one or more processing cores.
  • the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. Modulation The demodulation processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
  • the terminal device 1200 further includes a power source 190 (such as a battery) for supplying power to the various components.
  • a power source 190 such as a battery
  • the power source can be logically connected to the processor 180 through the power management system to manage functions such as charging, discharging, and power management through the power management system.
  • Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the terminal device 1200 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the terminal device browses the webpage by using a browser
  • the terminal device further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be processed by one or more Executing the one or more programs includes instructions for performing the following operations:
  • a preferred page is determined, and the size difference between the preferred page and the display interface is within a preset gap, and N is a positive integer greater than or equal to 2;
  • the preferred page is displayed on the display interface.
  • the memory also includes instructions to:
  • determine a preferred page including:
  • the numerical interval in which the aspect ratio of the display interface is located is determined; the adapted page configured for the numerical interval in which the aspect ratio of the display interface is located is used as the preferred page.
  • determine a preferred page including:
  • the page with the smallest cropping amount among the N pages is taken as the preferred page.
  • the memory also includes instructions to:
  • the size of the display interface determine the length of each page of each of the N pages
  • the page with the smallest amount of length cut in the N pages is taken as the preferred page.
  • the memory also includes instructions to:
  • the size of the display interface determine the width of each page of each of the N pages
  • the page with the smallest cropping amount in the N pages is taken as the preferred page, including:
  • the page with the smallest amount of width clipping in the N pages is taken as the preferred page.
  • the mobile terminal of the present disclosure may be a variety of handheld terminal devices, such as mobile phones, personal digital assistants (PDAs), etc., and thus the scope of protection of the present disclosure should not be limited to a particular type of mobile terminal.
  • PDAs personal digital assistants
  • the method according to the present disclosure may also be implemented as a computer program executed by a central processing unit CPU.
  • the computer program is executed by the CPU, the above-described functions defined in the method of the present disclosure are performed.
  • the above method steps and system elements can also be implemented with a controller and a computer readable storage device for storing a computer program that causes the controller to implement the above described steps or unit functions.
  • the computer readable storage devices can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory.
  • the nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash.
  • ROM read only memory
  • PROM programmable ROM
  • EPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • flash volatile memory
  • Volatile memory can include random access memory (RAM), which can act as external cache memory.
  • RAM can be obtained in a variety of forms, such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM) and direct Rambus RAM (DRRAM).
  • DRAM synchronous RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM Synchronous Link DRAM
  • DRRAM direct Rambus RAM
  • Storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
  • DSP digital signal processor
  • ASIC dedicated Integrated circuit
  • FPGA field programmable gate array
  • a general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller or state machine.
  • the processor can also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
  • a software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor, such that the processor can read information from or write information to the storage medium.
  • the storage medium can be integrated with a processor.
  • the processor and storage media can reside in the ASIC.
  • ASIC can reside in use In the terminal.
  • the processor and the storage medium may reside as a discrete component in the user terminal.
  • the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted as one or more instructions or code on a computer readable medium.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a general purpose or special purpose computer.
  • the computer readable medium may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage device, disk storage device or other magnetic storage device, or may be used to carry or store a form of instructions Or the required program code of the data structure and any other medium that can be accessed by a general purpose or special purpose computer or a general purpose or special purpose processor. Also, any connection is properly termed a computer-readable medium.
  • a magnetic disk and an optical disk include a compact disk (CD), a laser disk, an optical disk, a digital versatile disk (DVD), a floppy disk, a Blu-ray disk, wherein the disk generally reproduces data magnetically, and the optical disk optically reproduces data using a laser . Combinations of the above should also be included within the scope of computer readable media.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Digital Computer Display Output (AREA)
  • Document Processing Apparatus (AREA)
  • Telephone Function (AREA)

Abstract

 本公开是关于一种页面的适配方法、装置和终端设备,能够实现页面自动适配不同尺寸的终端设备,在不同尺寸终端设备上显示,适配效果好,方便用户使用。其中,所述适配方法包括:检测显示界面的尺寸;在预置的尺寸不同的N张页面中,确定一张优选页面,所述优选页面与所述显示界面的尺寸差距在预设差距范围内,所述N为大于或等于2的正整数;将所述优选页面显示于所述显示界面上。

Description

一种页面的适配方法、 装置和终端设备 本申请基于申请号为 201310699702.9、 申请日为 2013/12/18的中国专利申请提出, 并 要求该中国专利申请的优先权, 该中国专利申请的全部内容在此引入本申请作为参考。 技术领域
本公开涉及数据处理技术领域, 尤其涉及一种页面的适配方法、 装置和终端设备。 背景技术
在移动设备越来越普及的今天, 移动终端上的电子图书阅读已经为大众所接受, 但移 动设备的显示界面尺寸差异性极大, 给图书内容的排版带来了挑战。
传统的图书文件的格式一般分为流式文档格式和版式文档格式,流式文档,例如 τχτ
(Text File, 文本文件) 、 ePub (Electronic Publication, 电子出版) , 可以针对显示界面 宽度进行适配; 而版式文档, 例如 PDF (Portable Document Format, 便携文件格式), 则 无法满足不同显示界面大小的适配要求。 另外, 从图文混排的角度出发, 移动终端的适配 不仅仅和显示界面的宽度有关, 还和显示界面的尺寸比例相关, 例如, 在电子书中会考虑 封面、 插图页撑满整个显示界面, 因为页面尺寸是固定的, 对于不同比例的显示界面在适 配上就会遇到一些问题。
相关技术中, 针对不同尺寸的设备, 想要一张图片尽可能的撑满整个显示界面, 通常 有两种解决方案: 一种是对图片进行裁剪, 使之符合显示界面的长宽比例; 另一种是在某 个方向上留空, 保证另外一个方向的内容撑满。第一种方案的不足在于可能导致某些有效 内容被裁剪了, 例如, 如果图像使用 4:3比例的尺寸 (1024 X 768) , 那么在 16:9比例的 显示界面上, 宽度方向上将被裁掉 192个像素, 这在某些情况下是不能接受的, 比如封面 内容。 第二种方案则会导致留空, 达不到撑满整个显示界面的预期效果。 发明内容
为克服相关技术中存在的问题, 本公开提供一种页面的适配方法、 装置和终端设备, 用于实现在各种比例的显示界面下均可进行页面适配,并且不会产生有效内容被裁减或者 留空的问题。
根据本公开的第一方面, 本公开提供了一种页面的适配方法, 包括:
检测显示界面的尺寸;
在预置的尺寸不同的 N张页面中,确定一张优选页面,所述优选页面与所述显示界面 的尺寸差距在预设差距范围内, 所述 N为大于或等于 2的正整数;
将所述优选页面显示于所述显示界面上。
本公开的一些有益效果可以包括: 能够实现页面自动适配不同尺寸的终端设备, 在不 同尺寸终端设备上显示, 不会出现大量留白、 空边或者排版不清楚的问题, 达到排版效果 清晰, 适配效果好, 方便用户使用。
所述在预置的尺寸不同的 N张页面中, 确定一张优选页面, 包括:
根据所述显示界面的尺寸, 确定所述显示界面的长宽比;
在预置的长宽比的多个数值区间中, 确定所述显示界面的长宽比所处的数值区间; 将针对所述显示界面的长宽比所处的数值区间所配置的适配页面, 作为所述优选页 面。
本公开的一些有益效果可以包括:在预置的长宽比的多个数值区间中的每个数值区间 配置一适配页面, 确定显示界面的长宽比所处的数值区间, 确定针对显示界面的长宽比所 处的数值区间所配置的适配页面作为优选页面, 这样提供了一种确定优选页面的方案。
所述在预置的尺寸不同的 N张页面中, 确定一张优选页面, 包括:
根据所述显示界面的尺寸, 确定所述 N张页面中每张页面各自的裁剪量;
将所述 N张页面中裁剪量最小的页面作为所述优选页面。
本公开提供了另一种确定优选页面的方案。
所述根据所述显示界面的尺寸, 确定所述 N张页面中每张页面各自的裁剪量, 包括: 根据所述显示界面的尺寸, 确定所述 N张页面中每张页面各自的长度裁剪量; 所述将所述 N张页面中裁剪量最小的页面作为所述优选页面, 包括:
将所述 N张页面中长度裁剪量最小的页面作为所述优选页面。
本公开的一些有益效果可以包括: 将 N张页面中长度裁剪量最小的页面作为优选页 面, 保证了有效内容不被裁减, 适配效果好。
所述根据所述显示界面的尺寸, 确定所述 N张页面中每张页面各自的裁剪量, 包括: 根据所述显示界面的尺寸, 确定所述 N张页面中每张页面各自的宽度裁剪量; 所述将所述 N张页面中裁剪量最小的页面作为所述优选页面, 包括:
将所述 N张页面中宽度裁剪量最小的页面作为所述优选页面。
本公开的一些有益效果可以包括: 将 N张页面中宽度裁剪量最小的页面作为优选页 面, 保证了有效内容不被裁减, 适配效果好。
根据本公开的第二方面, 本公开提供了一种页面的适配装置, 包括:
检测模块, 用于检测显示界面的尺寸;
确定模块, 用于在预置的尺寸不同的 N张页面中, 确定一张优选页面, 所述优选页面 与所述显示界面的尺寸差距在预设差距范围内, 所述 N为大于或等于 2的正整数;
显示模块, 用于将所述优选页面显示于所述显示界面上。
所述确定模块包括:
长宽比确定单元, 用于根据所述显示界面的尺寸, 确定所述显示界面的长宽比; 区间确定单元, 用于在预置的长宽比的多个数值区间中, 确定所述显示界面的长宽比 所处的数值区间; 第一处理单元, 用于将针对所述显示界面的长宽比所处的数值区间所配置的适配页 面, 作为所述优选页面。
所述确定模块包括:
裁剪量确定单元,用于根据所述显示界面的尺寸,确定所述 N张页面中每张页面各自 的裁剪量;
第二处理单元, 用于将所述 N张页面中裁剪量最小的页面作为所述优选页面。
根据本公开的第三方面, 本公开提供了一种终端设备, 终端设备包括有存储器, 以及 一个或者一个以上的程序, 其中一个或者一个以上程序存储于存储器中, 且经配置以由一 个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令: 检测显示界面的尺寸;
在预置的尺寸不同的 N张页面中,确定一张优选页面,所述优选页面与所述显示界面 的尺寸差距在预设差距范围内, 所述 N为大于或等于 2的正整数;
将所述优选页面显示于所述显示界面上。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。 附图说明
此处所说明的附图用来提供对本公开的进一步理解, 构成本申请的一部分, 并不构成 对本公开的限定。 在附图中:
图 1为目前宽屏显示器显示 4:3页面的第一种处理方法示意图;
图 2为目前宽屏显示器显示 4:3页面的第二种处理方法示意图;
图 3为本公开实施例中页面的适配主要方法流程图;
图 4为本公开实施例中页面的适配方法的第一种优选的实施方式示意图;
图 5为本公开实施例中页面的适配方法的第二种优选的实施方式示意图;
图 6为本公开实施例中页面的适配方法的第三种优选的实施方式示意图;
图 7A为应用本公开实施例中页面的适配方法的实施方式示意图;
图 7B为长宽比为 4:3的页面示意图;
图 7C为将长宽比为 4:3页面显示在长宽比为 16: 11的显示界面的效果图;
图 8为本公开实施例中页面的适配装置的主要结构示意图;
图 9为本公开实施例中确定模块的第一种具体结构示意图;
图 10为本公开实施例中确定模块的第二种具体结构示意图;
图 11为本公开实施例提供的一种终端设备结构示意图。
通过上述附图, 已示出本公开明确的实施例, 后文中将有更详细的描述。 这些附图和 文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本 领域技术人员说明本公开的概念。 具体实施方式
为使本公开的目的、 技术方案和优点更加清楚明白, 下面结合实施方式和附图, 对本 公开做进一步详细说明。 在此, 本公开的示意性实施方式及其说明用于解释本公开, 但并 不作为对本公开的限定。
本公开实施例提供一种页面的适配方法、 装置、 终端及服务器, 以下结合附图对本公 开进行详细说明。
目前, 针对不同尺寸的设备, 想要将一张页面尽可能的撑满整个显示界面, 例如, 将 长宽比为 4:3的页面在宽屏显示器上显示, 有以下两种处理方法:
如图 1所示, 将图 1中左侧图所示的长宽比为 4:3的页面等比例放大, 直到横向铺满 长宽比为 16:9的宽屏显示界面, 显示结果如图 1中右侧图所示, 由该显示结果可以知道, 该处理方法使得页面的顶部和底部被裁剪了, 这种情况通常是不能接受的。
如图 2所示,将图 2中左侧图所示的长宽比为 4:3的页面放在长宽比为 16:9的宽屏中 心进行显示时, 需要在两个侧面增加黑边以填满宽屏显示界面的显示范围, 显示结果如图 2中右侧图所示。 由该显示结果可以知道, 这种处理方式会影响用户观看的视觉效果。 而 且, 由于显示界面的两边长期显示黑边, 整个显示屏工作状态不均匀, 容易加速显示屏的 老化。
本公开实施例提供的技术方案能够实现在各种比例的显示界面下均可进行页面适配, 并且不会产生有效内容被裁减或者留空的问题。
在一个实施例中, 如图 3所示, 为本公开实施例中页面适配的主要方法流程, 执行该 方法的显示终端可以是手机、 平板电脑或者电子书阅读器等设备, 包括以下步骤 31-33 : 步骤 31、 检测显示界面的尺寸。
这里, 显示界面的尺寸可以包括: 显示界面长和宽的尺寸。
步骤 32、 在预置的尺寸不同的 N张页面中, 确定一张优选页面, 该优选页面与显示 界面的尺寸差距在预设差距范围内, N为大于或等于 2的正整数。
其中, 上述 N张页面可以是内容相同, 也可以是内容不同的页面。 其中, 如果上述 N 张页面是内容相同的页面,适合的场景可以是需要将某一电子图片在不同的终端设备上显 示, 由于各个终端的显示界面尺寸不同, 需要针对该电子图片预置多张不同的尺寸; 如果 上述 N张页面是内容不同的页面,适合的场景可以是用户在旅行途中拍摄了许多山水风景 照片, 需要跟家人、 朋友分享, 由于家人或朋友的终端设备的显示界面尺寸可能不同, 为 了更好的呈现照片, 需要针对每张照片预置不同的尺寸。
步骤 33、 将优选页面显示于显示界面上。
上述步骤 32是为了在预置的尺寸不同的 N张页面中, 确定一张优选页面, 确定的方 法可以有以下几种:
方法一
上述步骤 32可包括以下步骤 A1-A3 : 步骤 Al、 根据显示界面的尺寸, 确定显示界面的长宽比。
步骤 A2、 在预置的长宽比的多个数值区间中, 确定显示界面的长宽比所处的数值区 上述多个数值区间中每个数值区间的最大值与最小值的差值可以相同, 也可以不同。 步骤 A3、 将针对显示界面的长宽比所处的数值区间所配置的适配页面, 作为优选页 面'
这里, 在预置的长宽比的多个数值区间中的每个数值区间配置一适配页面, 确定显示 界面的长宽比所处的数值区间,确定针对显示界面的长宽比所处的数值区间所配置的适配 页面作为优选页面, 这样提供了一种确定优选页面的方案。
还可以根据显示界面的尺寸, 确定 N张页面中每张页面各自的裁剪量; 将 N张页面 中裁剪量最小的页面作为优选页面, 以下方式二和方式三进行了详细介绍。
方法二
上述步骤 32可包括以下步骤 B1-B2:
步骤 Bl、 根据显示界面的尺寸, 确定 N张页面中每张页面各自的长度裁剪量。
步骤 B2、 将 N张页面中长度裁剪量最小的页面作为优选页面。
例如, 可以根据以下公式确定 N张页面中每张页面各自的长度裁剪量: h, hx
其中, rf为 N张页面中第 i张页面的长度裁剪量, ^为第 i张页面的长度, /2,为第 i 张页面的宽度, wx为显示界面的长度, 为显示界面的宽度。
Figure imgf000006_0001
< wi xmvi % , 且 rf数值最小的页面作为优选页面, 其中, mw%为预 设的页面长度的最大裁剪比例。
这样,可以使得页面长度的裁剪量小于预设的页面长度的最大裁剪量,即^^ 11^ 0/0, 保证了有效内容不被裁减, 适配效果好。
方法三
上述步骤 32可包括以下步骤 C1-C2:
步骤 Cl、 根据显示界面的尺寸, 确定 N张页面中每张页面各自的宽度裁剪量。
步骤 C2、 将 N张页面中宽度裁剪量最小的页面作为优选页面。
例如, 根据以下公式确定 N张页面中每张页面各自的宽度裁剪量: hrhid)
其中, /¾为N张页面中第 i张页面的宽度裁剪量, ^为第 i张页面的长度, /2,为第 i 张页面的宽度, wx为显示界面的长度, 为显示界面的宽度。
Figure imgf000006_0002
< hi x mh% , 且/ ¾数值最小的页面作为优选页面, 其中, mh%为预设 的页面宽度的最大裁剪比例。
这样, 可以使得页面宽度的裁剪量小于预设的页面宽度的最大裁剪量, 即/^ x mho/0, 保证了有效内容不被裁减, 适配效果好。
另外, 优选地, 预置的尺寸不同的 N张页面的长宽比值最小为 4:3 ; 或者, 预置的尺 寸不同的 N张页面的长宽比值最大为 16:9; 或者, 预置的尺寸不同的 N张页面的长宽比 值最小为 4:3, 且预置的尺寸不同的 N张页面的长宽比值最大为 16:9。 目前, 主流移动终 端的显示界面的长宽比一般介于 4:3到 16:9之间,通常会直接采用这两个值作为长宽比点, 因此会提供两张不同长宽比的页面, 一张为 4:3, 另外一张为 16:9, 这样基本上所有的显 示界面尺寸, 都会选取最接近的一张进行适配, 保证页面的有效内容不被裁减或者产生留 空。
采用上述技术方案, 能够实现页面自动适配不同尺寸的智能终端设备(例如, 智能手 机, 平板电脑, 电脑等) , 在不同尺寸智能终端设备上显示, 不会出现大量留白、 空边或 者排版不清楚的问题, 达到排版效果清晰, 适配效果好, 方便用户使用。
以上介绍了图 3所示的实施例中各环节的多种实现方式,下面通过几个实施例来详细 介绍实现过程。
实施例一
如图 4 所示为本公开实施例中页面的适配方法的第一种优选的实施方式, 该实施例 中, 将针对显示界面的长宽比所处的数值区间所配置的适配页面, 作为优选页面, 该方法 包括以下步骤:
步骤 401、 检测显示界面的尺寸。
步骤 402、 根据显示界面的尺寸, 确定显示界面的长宽比。
步骤 403、 在预置的长宽比的多个数值区间中, 确定显示界面的长宽比所处的数值区 间。
步骤 404、 将针对显示界面的长宽比所处的数值区间所配置的适配页面, 作为优选页 面。
步骤 405、 将优选页面显示于显示界面上。
例如, 预置三个长宽比数值区间分别为 [4/3,3/2]、 [3/2,5/3]、 [5/3,16/9], 且该三个长宽 比数值区间中的每一长宽比数值区间配置有一适配页面 (当长宽比位于区间内的一数值 时, 该适配页面在当前长宽比的显示界面显示效果好, 即确保有效内容不被裁减或者产生 留空),检测显示界面的长宽比为 13/9,确定显示界面的长宽比 13/9位于数值区间 [4/3,3/2], 则确定该数值区间 [4/3,3/2]所配置的适配页面作为优选页面。
实施例一中, 在预置的长宽比的多个数值区间中的每个数值区间配置一适配页面, 确 定显示界面的长宽比所处的数值区间,确定针对显示界面的长宽比所处的数值区间所配置 的适配页面作为优选页面, 这样提供了一种确定优选页面的方案。
实施例二 如图 5 所示为本公开实施例中页面的适配方法的第二种优选的实施方式, 该实施例 中, 让页面长度的裁剪量小于预设的页面长度的最大裁剪量, 即^ 11^ 0/(), 该方法包括 以下步骤:
步骤 501、 检测显示界面的尺寸。
步骤 502、 预置尺寸不同的 N张页面, N为大于或等于 2的正整数。
这里, 步骤 502也可以在步骤 501之前执行, 即在检测显示界面的尺寸之前, 预置尺 寸不同的 N张页面, N为大于等于 2的正整数。
步骤 503、 根据以下公式确定 N张页面中每张页面各自的长度裁剪量:
(w. - w. ,) W ^
~ '■ ~~ '^ = ^, ζ = 1,2,· · ·,Ν
hr hx 其中, 为 N张页面中第 i张页面的长度裁剪量, ^为第 i张页面的长度, /2,为第 i 张页面的宽度, wx为显示界面的长度, 为显示界面的宽度。
步骤 504、 将满足0≤¼^ < ^ 11^ %, 且 rf数值最小的页面作为优选页面, 其中, mw %为预设的页面长度的最大裁剪比例。
当满足条件 0≤ wid < wx xmw %的 rf至少有两个时, 取 数值最小的页面作为优 选页面。
步骤 505、 将优选页面显示于显示界面上。
例如, 预置三张长宽比不同的页面, 即长宽比分别为 4:3、 5:3、 16:9的页面, 该三张 页面的长度分别为 12、 15和 16, 该三张页面的宽度都为 9, 每张页面长度的最大裁剪比 例均为 10%。检测显示界面的长宽比为 13 :9, 确定三张页面中每张页面各自的长度裁剪量 分别为 1、 2禾 P 3, 该三张页面的裁剪比例分别为 8.3%、 13.3%和 18.75%, 则确定长和高 分别为 12和 9的页面为优选页面。
实施例二中, 可以使得页面长度的裁剪量小于预设的页面长度的最大裁剪量, 即 w; xmw% , 保证了有效内容不被裁减, 适配效果好。
实施例三
如图 6 所示为本公开实施例中页面的适配方法的第三种优选的实施方式, 该实施例 中, 让页面宽度的裁剪量小于预设的页面宽度的最大裁剪量, 即/ 2; xmh%, 该方法包括 以下步骤:
步骤 601、 检测显示界面的尺寸。
步骤 602、 预置尺寸不同的 N张页面, N为大于或等于 2的正整数。
这里, 步骤 602也可以在步骤 601之前执行, 即在检测显示界面的尺寸之前, 预置尺 寸不同的 N张页面, N为大于等于 2的正整数。
步骤 603、 根据以下公式确定 N张页面中每张页面各自的宽度裁剪量:
w. w … 、τ
ζ = 1,2 ,· · ·,Ν
h 其中, /¾为?^张页面中第 i张页面的宽度裁剪量, ^为第 i张页面的长度, h,为第 i 张页面的宽度, WX为显示界面的长度, 为显示界面的宽度。
步骤 604、 将满足0≤/^ < /2;^ 11111 %, 且/ ¾数值最小的页面作为优选页面, 其中, mh%为预设的页面宽度的最大裁剪比例。
当满足条件 0≤ hid < /2; xmh%的 /¾至少有两个时, 取 数值最小的页面作为优选 页面。
步骤 605、 将优选页面显示于显示界面上。
实施例三中, 可以使得页面宽度的裁剪量小于预设的页面宽度的最大裁剪量, 即 2; xmh% , 保证了有效内容不被裁减, 适配效果好。
实施例四
实施例四可以应用在这样一个场景: 由于目前主流移动终端的显示界面的长宽比一般 介于 4:3到 16:9之间, 不妨预置介于 4:3到 16:9之间三个长宽比, 即长宽比分别为 4:3、 5:3、 16:9的页面, 且该三张页面的内容相同。
如图 7A所示为应用本公开实施例中页面的适配方法的实施方式, 该方法包括以下步 骤:
步骤 701、 检测显示界面的长宽比, 该显示界面的长宽比为 16: 11。
步骤 702、 预置三张内容相同但长宽比不同的页面, 即长宽比分别为 4:3、 5:3、 16:9 的页面。
步骤 703、 确定该显示界面的长宽比为 16: 11介于 4:3与 5:3之间, 且 16: 11与 4:3的 数值最接近。
步骤 704、 确定长宽比为 4:3的页面作为优选页面。
步骤 705、 将上述优选页面显示于显示界面上。
如图 7B所示, 长宽比为 4:3的页面 71, 其中笑脸图为 711, 新星读本封面图为 712; 如图 7C所示, 为将如图 7B所示的长宽比为 4:3的页面 71显示在长宽比为 16: 11的显示 界面的效果图 72, 其中笑脸图 721为笑脸图 711 显示后的效果图, 新星读本封面图 722 为新星读本封面图 712显示后的效果图。
实施例四中, 在预置的介于 4:3到 16:9之间三个长宽比, 即长宽比分别为 4:3、 5:3、 16:9的页面中, 选择长宽比为 4:3的页面作为优选页面, 在长宽比为 16: 11的显示界面显 示, 保证了有效内容不被裁减, 适配效果好。
需要说明的是, 实际应用中, 上述所有可选实施方式可以采用结合的方式任意组合, 形成本公开的可选实施例, 在此不再一一赘述。
以上描述了页面的适配方法实现过程, 该过程可由装置实现, 下面对装置的内部功能 和结构进行介绍。
在一个实施例中, 如图 8所示, 一种页面的适配装置包括: 检测模块 801、 确定模块 802和显示模块 803。 检测模块 801, 用于检测显示界面的尺寸;
确定模块 802, 用于在预置的尺寸不同的 N张页面中, 确定一张优选页面, 该优选页 面与显示界面的尺寸差距在预设差距范围内, N为大于或等于 2的正整数;
显示模块 803, 用于将优选页面显示于显示界面上。
在一个实施例中, 如图 9所示, 上述图 8展示的确定模块 802可包括:
长宽比确定单元 901, 用于根据显示界面的尺寸, 确定显示界面的长宽比; 区间确定单元 902, 用于在预置的长宽比的多个数值区间中, 确定显示界面的长宽比 所处的数值区间;
第一处理单元 903,用于将针对显示界面的长宽比所处的数值区间所配置的适配页面, 作为优选页面。
在一个实施例中, 如图 10所示, 上述图 8展示的确定模块 802可包括:
裁剪量确定单元 1001, 用于根据显示界面的尺寸, 确定 N张页面中每张页面各自的 裁剪量;
第二处理单元 1002, 用于将 N张页面中裁剪量最小的页面作为优选页面。
在一个实施例中, 裁剪量确定单元 1001用于根据以下公式确定 N张页面中每张页面 各自的长度裁剪量: h, hx
其中, 为 N张页面中第 i张页面的长度裁剪量, ^为第 i张页面的长度, /2,为第 i 张页面的宽度, wx为显示界面的长度, 为显示界面的宽度;
第二处理单元 1002用于将满足 0≤ wid < w; xmw %, 且 rf数值最小的页面作为优 选页面, 其中, mw %为预设的页面长度的最大裁剪比例。
在一个实施例中, 裁剪量确定单元 1001用于根据以下公式确定 N张页面中每张页面
( K
其中, /¾为N张页面中第 i张页面的宽度裁剪量, ^为第 i张页面的长度, /2,为第 i 张页面的宽度, wx为显示界面的长度, 为显示界面的宽度;
第二处理单元 1002用于将满足 0≤ hid < /2; x mh%, 且 数值最小的页面作为优选 页面, 其中, mh %为预设的页面宽度的最大裁剪比例。
在一个实施例中, 预置的尺寸不同的 N张页面的长宽比值最小为 4:3 ; 和 /或预置的尺 寸不同的 N张页面的长宽比值最大为 16:9。
本公开实施例还提出一种终端设备, 图 11是本公开实施例提供的一种终端设备结构 示意图。 参见图 11, 该终端设备可以用于实施上述实施例中提供的显示方法。 优选的: 终端设备 1200可以包括通信单元 110、包括有一个或一个以上计算机可读存储介质的 存储器 120、输入单元 130、显示单元 140、传感器 150、音频电路 160、无线通信单元 170、 包括有一个或者一个以上处理核心的处理器 180、 以及电源 190等部件。 本领域技术人员 可以理解, 图 11 中示出的终端设备结构并不构成对终端设备的限定, 可以包括比图示更 多或更少的部件, 或者组合某些部件, 或者不同的部件布置。 其中:
通信单元 110可用于收发信息或通话过程中, 信号的接收和发送, 该通信单元 110可 以为 RF (Radio Frequency, 射频) 电路、 路由器、 调制解调器、 等网络通信设备。 特别 地, 当通信单元 110为 RF电路时, 将基站的下行信息接收后, 交由一个或者一个以上处 理器 180处理; 另外, 将涉及上行的数据发送给基站。 通常, 作为通信单元的 RF电路包 括但不限于天线、 至少一个放大器、 调谐器、 一个或多个振荡器、 用户身份模块 (SIM) 卡、 收发信机、 耦合器、 LNA (Low Noise Amplifier, 低噪声放大器) 、 双工器等。 此外, 通信单元 110还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通 信标准或协议, 包括但不限于 GSM (Global System of Mobile communication, 全球移动通 讯系统)、 GPRS (General Packet Radio Service,通用分组无线服务)、 CDMA (Code Division Multiple Access, 码分多址) 、 WCDMA (Wideband Code Division Multiple Access, 宽带 码分多址) 、 LTE (Long Term Evolution, 长期演进) 、 电子邮件、 SMS ( Short Messaging Service, 短消息服务)等。 存储器 120可用于存储软件程序以及模块, 处理器 180通过运 行存储在存储器 120的软件程序以及模块, 从而执行各种功能应用以及数据处理。存储器 120可主要包括存储程序区和存储数据区, 其中, 存储程序区可存储操作系统、 至少一个 功能所需的应用程序(比如声音播放功能、 图像播放功能等)等; 存储数据区可存储根据 终端设备 1200 的使用所创建的数据 (比如音频数据、 电话本等) 等。 此外, 存储器 120 可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、 闪存器件、 或其他易失性固态存储器件。 相应地, 存储器 120还可以包括存储器控制器, 以提供处理器 180和输入单元 130对存储器 120的访问。
输入单元 130可用于接收输入的数字或字符信息, 以及产生与用户设置以及功能控制 有关的键盘、 鼠标、 操作杆、 光学或者轨迹球信号输入。 优选地, 输入单元 130可包括触 敏表面 131 以及其他输入设备 132。 触敏表面 131, 也称为触摸显示屏或者触控板, 可收 集用户在其上或附近的触摸操作(比如用户使用手指、 触笔等任何适合的物体或附件在触 敏表面 131上或在触敏表面 131附近的操作), 并根据预先设定的程式驱动相应的连接装 置。 可选的, 触敏表面 131可包括触摸检测装置和触摸控制器两个部分。 其中, 触摸检测 装置检测用户的触摸方位, 并检测触摸操作带来的信号, 将信号传送给触摸控制器; 触摸 控制器从触摸检测装置上接收触摸信息, 并将它转换成触点坐标, 再送给处理器 180, 并 能接收处理器 180发来的命令并加以执行。 此外, 可以采用电阻式、 电容式、 红外线以及 表面声波等多种类型实现触敏表面 131。 除了触敏表面 131, 输入单元 130还可以包括其 他输入设备 132。 优选地, 其他输入设备 132可以包括但不限于物理键盘、 功能键 (比如 音量控制按键、 开关按键等) 、 轨迹球、 鼠标、 操作杆等中的一种或多种。
显示单元 140可用于显示由用户输入的信息或提供给用户的信息以及终端设备 1200 的各种图形用户接口, 这些图形用户接口可以由图形、 文本、 图标、 视频和其任意组合来 构成。显示单元 140可包括显示面板 141,可选的, 可以采用 LCD (Liquid Crystal Display, 液晶显示器) 、 OLED (Organic Light-Emitting Diode, 有机发光二极管) 等形式来配置显 示面板 141。 进一步的, 触敏表面 131可覆盖显示面板 141, 当触敏表面 131检测到在其 上或附近的触摸操作后, 传送给处理器 180以确定触摸事件的类型, 随后处理器 180根据 触摸事件的类型在显示面板 141上提供相应的视觉输出。 虽然在图 11 中, 触敏表面 131 与显示面板 141是作为两个独立的部件来实现输入和输入功能, 但是在某些实施例中, 可 以将触敏表面 131与显示面板 141集成而实现输入和输出功能。
终端设备 1200还可包括至少一种传感器 150, 比如光传感器、运动传感器以及其他传 感器。 光传感器可包括环境光传感器及接近传感器, 其中, 环境光传感器可根据环境光线 的明暗来调节显示面板 141的亮度, 接近传感器可在终端设备 1200移动到耳边时, 关闭 显示面板 141 和 /或背光。 作为运动传感器的一种, 重力加速度传感器可检测各个方向上 (一般为三轴)加速度的大小, 静止时可检测出重力的大小及方向, 可用于识别手机姿态 的应用 (比如横竖屏切换、 相关游戏、 磁力计姿态校准) 、 振动识别相关功能 (比如计步 器、 敲击) 等; 至于终端设备 1200还可配置的陀螺仪、 气压计、 湿度计、 温度计、 红外 线传感器等其他传感器, 在此不再赘述。
音频电路 160、扬声器 161,传声器 162可提供用户与终端设备 1200之间的音频接口。 音频电路 160可将接收到的音频数据转换后的电信号, 传输到扬声器 161, 由扬声器 161 转换为声音信号输出; 另一方面, 传声器 162将收集的声音信号转换为电信号, 由音频电 路 160接收后转换为音频数据, 再将音频数据输出处理器 180处理后, 经 RF电路 110以 发送给比如另一终端设备, 或者将音频数据输出至存储器 120以便进一步处理。 音频电路 160还可能包括耳塞插孔, 以提供外设耳机与终端设备 1200的通信。
为了实现无线通信,该终端设备上可以配置有无线通信单元 170,该无线通信单元 170 可以为 WIFI (Wireless Fidelity, 无线保真) 模块。 WIFI属于短距离无线传输技术, 终端 设备 1200通过无线通信单元 170可以帮助用户收发电子邮件、 浏览网页和访问流式媒体 等, 它为用户提供了无线的宽带互联网访问。虽然图 11示出了无线通信单元 170, 但是可 以理解的是, 其并不属于终端设备 1200的必须构成, 完全可以根据需要在不改变公开的 本质的范围内而省略。
处理器 180是终端设备 1200的控制中心, 利用各种接口和线路连接整个手机的各个 部分, 通过运行或执行存储在存储器 120 内的软件程序和 /或模块, 以及调用存储在存储 器 120内的数据, 执行终端设备 1200的各种功能和处理数据, 从而对手机进行整体监控。 可选的, 处理器 180可包括一个或多个处理核心; 优选的, 处理器 180可集成应用处理器 和调制解调处理器, 其中, 应用处理器主要处理操作系统、 用户界面和应用程序等, 调制 解调处理器主要处理无线通信。可以理解的是, 上述调制解调处理器也可以不集成到处理 器 180中。
终端设备 1200还包括给各个部件供电的电源 190 (比如电池), 优选的, 电源可以通 过电源管理系统与处理器 180逻辑相连, 从而通过电源管理系统实现管理充电、 放电、 以 及功耗管理等功能。电源 190还可以包括一个或一个以上的直流或交流电源、再充电系统、 电源故障检测电路、 电源转换器或者逆变器、 电源状态指示器等任意组件。
尽管未示出, 终端设备 1200还可以包括摄像头、 蓝牙模块等, 在此不再赘述。 在本 实施例中, 终端设备采用浏览器浏览网页, 终端设备还包括有存储器, 以及一个或者一个 以上的程序, 其中一个或者一个以上程序存储于存储器中, 且经配置以由一个或者一个以 上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:
检测显示界面的尺寸;
在预置的尺寸不同的 N张页面中,确定一张优选页面,该优选页面与显示界面的尺寸 差距在预设差距范围内, N为大于或等于 2的正整数;
将优选页面显示于显示界面上。
存储器还包括进行以下操作的指令:
在预置的尺寸不同的 N张页面中, 确定一张优选页面, 包括:
根据显示界面的尺寸, 确定显示界面的长宽比;
在预置的长宽比的多个数值区间中, 确定显示界面的长宽比所处的数值区间; 将针对显示界面的长宽比所处的数值区间所配置的适配页面, 作为优选页面。
存储器还包括进行以下操作的指令:
在预置的尺寸不同的 N张页面中, 确定一张优选页面, 包括:
根据显示界面的尺寸, 确定 N张页面中每张页面各自的裁剪量;
将 N张页面中裁剪量最小的页面作为优选页面。
存储器还包括进行以下操作的指令:
根据显示界面的尺寸, 确定 N张页面中每张页面各自的裁剪量, 包括:
根据显示界面的尺寸, 确定 N张页面中每张页面各自的长度裁剪量;
将 N张页面中裁剪量最小的页面作为优选页面, 包括:
将 N张页面中长度裁剪量最小的页面作为优选页面。
存储器还包括进行以下操作的指令:
根据显示界面的尺寸, 确定 N张页面中每张页面各自的裁剪量, 包括:
根据显示界面的尺寸, 确定 N张页面中每张页面各自的宽度裁剪量;
将 N张页面中裁剪量最小的页面作为优选页面, 包括:
将 N张页面中宽度裁剪量最小的页面作为优选页面。
本公开实施例, 能够实现页面自动适配不同尺寸的智能终端设备 (例如, 智能手机, 平板电脑等)显示界面, 在不同尺寸智能终端设备上显示, 不会出现大量留白、 空边或者 排版不清楚的问题, 达到排版效果清晰, 适配效果好, 方便用户使用。
此外, 典型地, 本公开所述的移动终端可为各种手持终端设备, 例如手机、 个人数字 助理 (PDA) 等, 因此本公开的保护范围不应限定为某种特定类型的移动终端。
此外, 根据本公开的方法还可以被实现为由中央处理器 CPU执行的计算机程序。 在 该计算机程序被 CPU执行时, 执行本公开的方法中限定的上述功能。
此外,上述方法步骤以及系统单元也可以利用控制器以及用于存储使得控制器实现上 述步骤或单元功能的计算机程序的计算机可读存储设备实现。
此外, 应该明白的是, 本文所述的计算机可读存储设备 (例如, 存储器)可以是易失 性存储器或非易失性存储器, 或者可以包括易失性存储器和非易失性存储器两者。作为例 子而非限制性的,非易失性存储器可以包括只读存储器(ROM)、可编程 ROM (PROM)、 电可编程 ROM (EPROM) 、 电可擦写可编程 ROM (EEPROM) 或快闪存储器。 易失性 存储器可以包括随机存取存储器(RAM) , 该 RAM可以充当外部高速缓存存储器。 作为 例子而非限制性的, RAM可以以多种形式获得, 比如同步 RAM (DRAM) 、 动态 RAM (DRAM)、同步 DRAM ( SDRAM)、双数据速率 SDRAM (DDR SDRAM)、增强 SDRAM (ESDRAM) 、 同步链路 DRAM ( SLDRAM) 以及直接 Rambus RAM (DRRAM) 。 所 公开的方面的存储设备意在包括但不限于这些和其它合适类型的存储器。
本领域技术人员还将明白的是, 结合这里的公开所描述的各种示例性逻辑块、 模块、 电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。 为了清楚地说明硬件 和软件的这种可互换性, 已经就各种示意性组件、 方块、 模块、 电路和步骤的功能对其进 行了一般性的描述。这种功能是被实现为软件还是被实现为硬件取决于具体应用以及施加 给整个系统的设计约束。本领域技术人员可以针对每种具体应用以各种方式来实现所述的 功能, 但是这种实现决定不应被解释为导致脱离本公开的范围。
结合这里的公开所描述的各种示例性逻辑块、模块和电路可以利用被设计成用于执行 这里所述功能的下列部件来实现或执行: 通用处理器、 数字信号处理器 (DSP) 、 专用集 成电路 (ASIC) 、 现场可编程门阵列 (FPGA) 或其它可编程逻辑器件、 分立门或晶体管 逻辑、 分立的硬件组件或者这些部件的任何组合。 通用处理器可以是微处理器, 但是可替 换地, 处理器可以是任何传统处理器、 控制器、 微控制器或状态机。 处理器也可以被实现 为计算设备的组合, 例如, DSP 和微处理器的组合、 多个微处理器、 一个或多个微处理 器结合 DSP 核、 或任何其它这种配置。
结合这里的公开所描述的方法或算法的步骤可以直接包含在硬件中、由处理器执行的 软件模块中或这两者的组合中。软件模块可以驻留在 RAM存储器、快闪存储器、 ROM存 储器、 EPROM存储器、 EEPROM存储器、 寄存器、 硬盘、 可移动盘、 CD-ROM、 或本领 域已知的任何其它形式的存储介质中。示例性的存储介质被耦合到处理器, 使得处理器能 够从该存储介质中读取信息或向该存储介质写入信息。在一个替换方案中, 所述存储介质 可以与处理器集成在一起。 处理器和存储介质可以驻留在 ASIC 中。 ASIC可以驻留在用 户终端中。 在一个替换方案中, 处理器和存储介质可以作为分立组件驻留在用户终端中。 在一个或多个示例性设计中,所述功能可以在硬件、软件、固件或其任意组合中实现。 如果在软件中实现,则可以将所述功能作为一个或多个指令或代码存储在计算机可读介质 上或通过计算机可读介质来传送。计算机可读介质包括计算机存储介质和通信介质, 该通 信介质包括有助于将计算机程序从一个位置传送到另一个位置的任何介质。存储介质可以 是能够被通用或专用计算机访问的任何可用介质。作为例子而非限制性的, 该计算机可读 介质可以包括 RAM、 ROM、 EEPROM、 CD-ROM 或其它光盘存储设备、 磁盘存储设备 或其它磁性存储设备,或者是可以用于携带或存储形式为指令或数据结构的所需程序代码 并且能够被通用或专用计算机或者通用或专用处理器访问的任何其它介质。此外, 任何连 接都可以适当地称为计算机可读介质。 例如, 如果使用同轴线缆、 光纤线缆、 双绞线、 数 字用户线路 (DSL) 或诸如红外线、 无线电和微波的无线技术来从网站、 服务器或其它远 程源发送软件, 则上述同轴线缆、 光纤线缆、 双绞线、 DSL或诸如红外先、 无线电和微波 的无线技术均包括在介质的定义。 如这里所使用的, 磁盘和光盘包括压缩盘 (CD) 、 激 光盘、 光盘、 数字多功能盘 (DVD) 、 软盘、 蓝光盘, 其中磁盘通常磁性地再现数据, 而 光盘利用激光光学地再现数据。 上述内容的组合也应当包括在计算机可读介质的范围内。
尽管前面公开的内容示出了本公开的示例性实施例, 但是应当注意, 在不背离权利要 求限定的本公开的范围的前提下, 可以进行多种改变和修改。根据这里描述的公开实施例 的方法权利要求的功能、 步骤和 /或动作不需以任何特定顺序执行。 此外, 尽管本公开的 元素可以以个体形式描述或要求, 但是也可以设想多个, 除非明确限制为单数。
以上所述的具体实施方式, 对本公开的目的、 技术方案和有益效果进行了进一步详细 说明, 所应理解的是, 以上所述仅为本公开的具体实施方式而已, 并不用于限定本公开的 保护范围, 凡在本公开的精神和原则之内, 所做的任何修改、 等同替换、 改进等, 均应包 含在本公开的保护范围之内。

Claims

权利要求
1、 一种页面的适配方法, 其特征在于, 包括:
检测显示界面的尺寸;
在预置的尺寸不同的 N张页面中, 确定一张优选页面, 所述优选页面与所述显示界 面的尺寸差距在预设差距范围内, 所述 N为大于或等于 2的正整数;
将所述优选页面显示于所述显示界面上。
2、 如权利要求 1所述的适配方法, 其特征在于, 所述在预置的尺寸不同的 N张页面 中, 确定一张优选页面, 包括:
根据所述显示界面的尺寸, 确定所述显示界面的长宽比;
在预置的长宽比的多个数值区间中, 确定所述显示界面的长宽比所处的数值区间; 将针对所述显示界面的长宽比所处的数值区间所配置的适配页面, 作为所述优选页 面。
3、 如权利要求 1所述的适配方法, 其特征在于, 所述在预置的尺寸不同的 N张页面 中, 确定一张优选页面, 包括:
根据所述显示界面的尺寸, 确定所述 N张页面中每张页面各自的裁剪量; 将所述 N张页面中裁剪量最小的页面作为所述优选页面。
4、 如权利要求 3所述的适配方法, 其特征在于,
所述根据所述显示界面的尺寸, 确定所述 N张页面中每张页面各自的裁剪量, 包括: 根据所述显示界面的尺寸, 确定所述 N张页面中每张页面各自的长度裁剪量; 所述将所述 N张页面中裁剪量最小的页面作为所述优选页面, 包括:
将所述 N张页面中长度裁剪量最小的页面作为所述优选页面。
5、 如权利要求 3所述的适配方法, 其特征在于,
所述根据所述显示界面的尺寸, 确定所述 N张页面中每张页面各自的裁剪量, 包括: 根据所述显示界面的尺寸, 确定所述 N张页面中每张页面各自的宽度裁剪量; 所述将所述 N张页面中裁剪量最小的页面作为所述优选页面, 包括:
将所述 N张页面中宽度裁剪量最小的页面作为所述优选页面。
6、 一种页面的适配装置, 其特征在于, 包括:
检测模块, 用于检测显示界面的尺寸;
确定模块, 用于在预置的尺寸不同的 N张页面中, 确定一张优选页面, 所述优选页 面与所述显示界面的尺寸差距在预设差距范围内, 所述 N为大于或等于 2的正整数; 显示模块, 用于将所述优选页面显示于所述显示界面上。
7、 如权利要求 6所述的适配装置, 其特征在于, 所述确定模块包括:
长宽比确定单元, 用于根据所述显示界面的尺寸, 确定所述显示界面的长宽比; 区间确定单元,用于在预置的长宽比的多个数值区间中,确定所述显示界面的长宽比 所处的数值区间; 第一处理单元, 用于将针对所述显示界面的长宽比所处的数值区间所配置的适配页 面, 作为所述优选页面。
8、 如权利要求 6所述的适配装置, 其特征在于, 所述确定模块包括:
裁剪量确定单元, 用于根据所述显示界面的尺寸, 确定所述 N张页面中每张页面各 自的裁剪量;
第二处理单元, 用于将所述 N张页面中裁剪量最小的页面作为所述优选页面。
9、 一种终端设备, 其特征在于, 终端设备包括有存储器, 以及一个或者一个以上的 程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理 器执行所述一个或者一个以上程序包含用于进行以下操作的指令:
检测显示界面的尺寸;
在预置的尺寸不同的 N张页面中, 确定一张优选页面, 所述优选页面与所述显示界 面的尺寸差距在预设差距范围内, 所述 N为大于或等于 2的正整数;
将所述优选页面显示于所述显示界面上。
PCT/CN2014/077100 2013-12-18 2014-05-09 一种页面的适配方法、装置和终端设备 WO2015089980A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
RU2015122443A RU2616173C2 (ru) 2013-12-18 2014-05-09 Способ, устройство и терминальное устройство для адаптации страницы
BR112014018514A BR112014018514A8 (pt) 2013-12-18 2014-05-09 Método e aparelho para adaptação da página e dispositivo de terminal
MX2014009066A MX344897B (es) 2013-12-18 2014-05-09 Método, aparato y dispositivo terminal para adaptación de página.
JP2015553003A JP5960932B2 (ja) 2013-12-18 2014-05-09 ページ適応方法、ページ適応装置、端末装置、プログラム及び記録媒体
US14/340,523 US20150170334A1 (en) 2013-12-18 2014-07-24 Method and terminal device for adaption of page

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310699702.9A CN103678259B (zh) 2013-12-18 2013-12-18 一种页面的适配方法、装置和终端设备
CN201310699702.9 2013-12-18

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/340,523 Continuation US20150170334A1 (en) 2013-12-18 2014-07-24 Method and terminal device for adaption of page

Publications (1)

Publication Number Publication Date
WO2015089980A1 true WO2015089980A1 (zh) 2015-06-25

Family

ID=50315872

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/077100 WO2015089980A1 (zh) 2013-12-18 2014-05-09 一种页面的适配方法、装置和终端设备

Country Status (8)

Country Link
EP (1) EP2887203B1 (zh)
JP (1) JP5960932B2 (zh)
KR (1) KR20150085468A (zh)
CN (1) CN103678259B (zh)
BR (1) BR112014018514A8 (zh)
MX (1) MX344897B (zh)
RU (1) RU2616173C2 (zh)
WO (1) WO2015089980A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678259B (zh) * 2013-12-18 2016-08-17 小米科技有限责任公司 一种页面的适配方法、装置和终端设备
CN106126197A (zh) * 2016-05-31 2016-11-16 美通云动(北京)科技有限公司 使移动端应用页面与pc端应用页面同步的方法及装置
CN107566487A (zh) * 2017-09-01 2018-01-09 安徽教育网络出版有限公司 基于自动排版的多终端自适应匹配的方法
CN108377401A (zh) * 2018-02-26 2018-08-07 上海康斐信息技术有限公司 一种基于机顶盒的页面图片显示方法及系统
CN109491726B (zh) * 2018-11-16 2021-11-09 掌阅科技股份有限公司 开屏文件的呈现方法、电子设备及计算机存储介质
CN110489621B (zh) * 2019-07-09 2022-03-11 北京字节跳动网络技术有限公司 一种动态调整路由的方法、装置、介质和电子设备
CN117389672B (zh) * 2023-10-31 2024-05-17 江苏缤原力科技有限公司 一种页面自适应适配方法、电子设备及计算机可读介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1669026A (zh) * 2003-05-17 2005-09-14 微软公司 用于提供文档内容多样重现的系统和方法
CN101911675A (zh) * 2008-01-08 2010-12-08 三星电子株式会社 移动终端的图像显示控制方法和设备
CN103678259A (zh) * 2013-12-18 2014-03-26 小米科技有限责任公司 一种页面的适配方法、装置和终端设备

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001166754A (ja) * 1999-12-08 2001-06-22 Dainippon Printing Co Ltd 表示システム
CA2327161C (en) * 2000-11-30 2007-12-11 Ibm Canada Limited-Ibm Canada Limitee Adaptive catalog page display
WO2002059761A1 (en) * 2001-01-26 2002-08-01 Pictureiq Corporation Method and apparatus for dynamic optimization and network delivery of multimedia content
US7363279B2 (en) * 2004-04-29 2008-04-22 Microsoft Corporation Method and system for calculating importance of a block within a display page
CN1897529A (zh) * 2005-07-11 2007-01-17 中国移动通信集团公司 移动通信终端显示页面自动适配的方法
US8255825B2 (en) * 2008-10-07 2012-08-28 Microsoft Corporation Content aware adaptive display
US8640180B2 (en) * 2010-09-29 2014-01-28 Alcatel Lucent Apparatus and method for client-side compositing of video streams
US8854397B2 (en) * 2011-12-13 2014-10-07 Facebook, Inc. Photo selection for mobile devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1669026A (zh) * 2003-05-17 2005-09-14 微软公司 用于提供文档内容多样重现的系统和方法
CN101911675A (zh) * 2008-01-08 2010-12-08 三星电子株式会社 移动终端的图像显示控制方法和设备
CN103678259A (zh) * 2013-12-18 2014-03-26 小米科技有限责任公司 一种页面的适配方法、装置和终端设备

Also Published As

Publication number Publication date
BR112014018514A8 (pt) 2017-07-11
RU2015122443A (ru) 2017-01-10
CN103678259A (zh) 2014-03-26
CN103678259B (zh) 2016-08-17
EP2887203B1 (en) 2017-12-20
EP2887203A1 (en) 2015-06-24
RU2616173C2 (ru) 2017-04-12
KR20150085468A (ko) 2015-07-23
JP2016506587A (ja) 2016-03-03
JP5960932B2 (ja) 2016-08-02
BR112014018514A2 (zh) 2017-06-20
MX344897B (es) 2017-01-09
MX2014009066A (es) 2015-08-26

Similar Documents

Publication Publication Date Title
RU2616536C2 (ru) Способ, устройство и терминальное устройство для отображения сообщений
WO2015089980A1 (zh) 一种页面的适配方法、装置和终端设备
WO2016165568A1 (zh) 视频图像缩放方法和移动终端
US9740671B2 (en) Method and apparatus of generating a webpage from an original design file comprising layers
RU2602791C2 (ru) Способ, устройство и система набора
KR20120029898A (ko) 인터넷 페이지 표시 방법 및 이를 이용하는 이동 단말기
US10133480B2 (en) Method for adjusting input-method keyboard and mobile terminal thereof
US10158749B2 (en) Method by which portable device displays information through wearable device, and device therefor
US20140321671A1 (en) Method and apparatus for playing content
WO2015043194A1 (zh) 虚拟键盘显示方法、装置及终端
US11972106B2 (en) Split screen method and apparatus, and electronic device
US20170111575A1 (en) Method and apparatus for adjusting a photo-taking direction, mobile terminal
US20160292946A1 (en) Method and apparatus for collecting statistics on network information
US20150128033A1 (en) Method and apparatus for webpage browsing
US9921735B2 (en) Apparatuses and methods for inputting a uniform resource locator
US11481357B2 (en) Album display method, electronic device, and storage medium
WO2020007116A1 (zh) 分屏窗口调节方法、装置、存储介质和电子设备
WO2015043192A1 (zh) 一种选取文字的方法、装置和终端设备
CN103616983A (zh) 一种图片展示方法、装置和终端设备
WO2015074387A1 (zh) 滑动操作响应方法、装置及终端设备
US10154171B2 (en) Image forming apparatus, cloud server, image forming system, and method for setting connection with image forming apparatus
WO2015014135A1 (zh) 鼠标指针的控制方法、装置及终端设备
CN105513098B (zh) 一种图像处理的方法和装置
CN104238931B (zh) 信息输入方法、装置及电子设备
US10331334B2 (en) Multiple transparent annotation layers for use within a graphical user interface

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: MX/A/2014/009066

Country of ref document: MX

ENP Entry into the national phase

Ref document number: 20147021507

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2015553003

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2015122443

Country of ref document: RU

Kind code of ref document: A

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112014018514

Country of ref document: BR

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14872911

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14872911

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 112014018514

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20140728