WO2016112696A1 - 调节页面显示方式的方法及装置 - Google Patents

调节页面显示方式的方法及装置 Download PDF

Info

Publication number
WO2016112696A1
WO2016112696A1 PCT/CN2015/088582 CN2015088582W WO2016112696A1 WO 2016112696 A1 WO2016112696 A1 WO 2016112696A1 CN 2015088582 W CN2015088582 W CN 2015088582W WO 2016112696 A1 WO2016112696 A1 WO 2016112696A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
user
logical density
logical
density
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2015/088582
Other languages
English (en)
French (fr)
Inventor
余明阳
李伟星
万钰臻
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to KR1020157031180A priority Critical patent/KR101779483B1/ko
Priority to BR112015030053A priority patent/BR112015030053A2/pt
Priority to MX2015015871A priority patent/MX354970B/es
Priority to RU2015152475A priority patent/RU2637475C2/ru
Priority to JP2016568993A priority patent/JP2017510914A/ja
Publication of WO2016112696A1 publication Critical patent/WO2016112696A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/003Details of a display terminal, the details relating to the control arrangement of the display terminal and to the interfaces thereto
    • G09G5/005Adapting incoming signals to the display format of the display terminal
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/37Details of the operation on graphic patterns
    • G09G5/373Details of the operation on graphic patterns for modifying the size of the graphic pattern
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation
    • 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
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2354/00Aspects of interface with display user

Definitions

  • the present disclosure relates to the field of Internet technologies, and in particular, to a method and apparatus for adjusting a page display manner.
  • the density mechanism of the current Android system has made it impossible to make layout adjustments for third-party applications.
  • the mobile phone manufacturer uses different cut patterns for different screen size mobile phones, which can stretch the picture horizontally and vertically at random, while preserving the pixel fineness, which can meet the needs of various resolutions of the Android platform.
  • this kind of cut mode only implements page layout adjustment for its pre-installed applications such as system applications, does not work for third-party applications installed by users themselves, and cannot change the layout for specific devices.
  • the embodiments of the present disclosure provide a method and an apparatus for adjusting a page display manner, so as to implement a page display manner of adjusting a terminal device according to a user's needs.
  • a method for adjusting a manner of displaying a page including:
  • the elements in the page of the application are scaled and displayed according to the scaling.
  • the determining the application page based on the first logical density and the second logical density The scaling of the elements in the polygon, which can include:
  • m represents a scaling of elements in the application page
  • X represents the first logical density
  • Z represents the second logical density
  • the first logical density corresponding to the requirement of the user to display the page according to the user's requirement for the display mode of the page may include:
  • the first logical density corresponding to the page layout size set by the user is selected according to the user's setting of the size of the page layout.
  • the method may further include:
  • each page layout option includes an identifier for indicating a degree of page layout size corresponding to the option; and setting and storing a first logical density corresponding to each of the at least two page layout options;
  • the page layout size corresponds to the first logical density.
  • the first logical density corresponding to the requirement of the user to display the page according to the user's requirement for the display mode of the page may include:
  • a first logical density corresponding to the model of the current terminal or the size of the display screen is selected according to the model of the current terminal or the size of the display screen.
  • an apparatus for adjusting a manner of displaying a page includes:
  • a first acquiring module configured to acquire a first logical density corresponding to a requirement of the user for the display mode of the page according to a requirement of the user for displaying the page, where the first logical density is defined by the developer in the system;
  • a second acquiring module configured to acquire a second logical density of the application to be displayed, where the second logical density is defined by a developer of the application to be displayed;
  • a determining module configured to determine a scaling ratio of an element in the application page according to the first logical density and the second logical density
  • a scaling module configured to scale display the elements in the page of the application according to the scaling.
  • the determining module may include:
  • a calculation submodule configured to calculate a scaling ratio m of an element in the application page according to the following formula
  • the first obtaining module may include:
  • the first selection submodule is configured to select a first logical density corresponding to the page layout size set by the user according to a setting of a size of the page layout by the user.
  • the apparatus may further include:
  • a setting module configured to set at least two page layout options, each page layout option includes an identifier for indicating a degree of page layout size corresponding to the option; and setting and storing a first logical density corresponding to each of the at least two page layout options;
  • the first selection sub-module is further configured to: display at least two page layout options; determine a page layout option selected by the user among the at least two page layout options; and first logic corresponding to the page layout option selected by the user Density, as the first logical density corresponding to the page layout size set by the user.
  • the first obtaining module may include:
  • a second selection submodule configured to select, according to the model of the current terminal or the size of the display screen, a first logical density corresponding to the model of the current terminal or the size of the display screen.
  • an apparatus for adjusting a manner of displaying a page includes:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the elements in the page of the application are scaled and displayed according to the scaling.
  • the technical solution provided by the embodiment of the present disclosure determines the first logical density corresponding to the user's requirement for the page display mode and the second logical density of the application to be displayed, and determines according to the first logical density and the second logical density.
  • FIG. 1 is a flow chart showing a method of adjusting a display manner of a page according to an exemplary embodiment.
  • FIG. 2 is a flow chart showing another method of adjusting a page display manner according to an exemplary embodiment.
  • FIG. 3 is a flowchart of still another method for adjusting a page display manner, according to an exemplary embodiment.
  • FIG. 4 is a flowchart of still another method for adjusting a page display manner, according to an exemplary embodiment.
  • FIG. 5 is a block diagram of an apparatus for adjusting a page display manner, according to an exemplary embodiment.
  • FIG. 6 is a block diagram of another apparatus for adjusting a page display manner, according to an exemplary embodiment.
  • FIG. 7 is a block diagram of still another apparatus for adjusting a page display manner, according to an exemplary embodiment.
  • FIG. 8 is a block diagram of still another apparatus for adjusting a page display manner, according to an exemplary embodiment.
  • FIG. 9 is a block diagram of still another apparatus for adjusting a page display manner, according to an exemplary embodiment.
  • FIG. 10 is a block diagram of an apparatus suitable for adjusting a manner of displaying a page, according to an exemplary embodiment.
  • FIG. 1 is a flow chart showing a method of adjusting a display manner of a page according to an exemplary embodiment. As shown in FIG. 1, the method is applicable to a system program of a device or other application, and the method includes the following steps S101-S104:
  • step S101 according to the user's demand for the page display mode, the first logical density corresponding to the user's demand for the page display mode is obtained, and the first logical density is defined by the developer in the system.
  • the first logical density is the logical density defined by the depth customization developer of the Android system in the system, rather than the logical density defined by the native Android system.
  • the native Android operating system there is a default definition of the logical density used for device display.
  • the native Android system defines several screen logical density values, such as 160 dpi (mdpi), 240 dpi (hdpi), 320 dpi (xhdpi), 480 dpi (xxhdpi), and 640 dpi (xxxhdpi).
  • the native Android operating system will default to using xxxhdpi as the display of the logical density control device, regardless of the physical size of the screen.
  • the above technology is improved, and the deep customization developer of the Android system redefines the logical density, and no longer uses the proportion of the screen as the basis for selecting the logical density, but according to the user's demand for the page display mode. , customized a variety of logical density.
  • the page layout options can have "small”, “default”, “medium”, “large”, “extra large” and other options when the user wants to adjust the page.
  • click on one of the options click on one of the options. Since each option corresponds to its own scaling, the page layout can be adjusted according to the scaling of the option.
  • this step S101 can be implemented as the following step S201:
  • step S201 the first logical density corresponding to the page layout size set by the user is selected according to the user's setting of the size of the page layout.
  • the above method may further include S105-S106:
  • step S105 at least two page layout options are set, each page layout option includes an identifier for indicating a degree of page layout size corresponding to the option; and a first logical density corresponding to each of the at least two page layout options is set and stored;
  • step S201 can be implemented as the following step S106:
  • step S106 at least two page layout options are displayed; a page layout option selected by the user among the at least two page layout options is determined; a first logical density corresponding to the page layout option selected by the user is set as the user The first logical density corresponding to the page layout size.
  • the physical size of the screen may be different.
  • the screen of the X1 mobile phone has a resolution of 480 dpi and a physical size of 5 inches;
  • the screen of the X2 mobile phone has a resolution of 480 dpi and a physical size of 5.5 inches.
  • the same logical density will be chosen for X1 and X2, so the page on the X2 of the 5.5-inch screen will produce a page enlargement.
  • the physical size of the elements that the user wants to display on different size screens is the same, so that the screen of the large-screen device can be effectively utilized, and the senses of the user are also better.
  • embodiments of the present disclosure set different logical densities for different models (or different sizes) of mobile phones by improving the logical density mechanism in the native system so that the physical dimensions of the elements are consistent when displaying pages on different size screens. of.
  • this step S101 can be implemented as the following step S401:
  • step S401 a first logical density corresponding to the model of the current terminal or the size of the display screen is selected according to the model of the current terminal or the size of the display screen.
  • step S102 a second logical density of the application to be displayed is obtained, and the second logical density is defined by a developer of the application to be displayed.
  • the second logical density may also be referred to as a resource density, which is set by the user when developing the application.
  • the second logical density for example, the second logical density can be 480 dpi.
  • step S103 the scaling of the elements in the application page is determined according to the first logical density and the second logical density.
  • step S103 can be implemented as the following step A1:
  • Step A1 calculating a scaling ratio m of an element in the application page according to the following formula (1);
  • m represents the scaling of the elements in the application page
  • X represents the first logical density
  • Z represents the second logical density
  • step S104 the elements in the page of the application are scaled and displayed according to the scaling.
  • the scaling calculated according to step S103 is 1.2, that is, the elements in the page are enlarged by 1.2 times.
  • the embodiment of the present disclosure provides at least two methods for selecting a logical density (such as step S201 and step S401). By changing the selection mechanism for the logical density in the native system, the embodiment of the present disclosure can achieve various effects. .
  • a corresponding logical density is set for each page layout size, and when the user wishes to change the page layout size, the page can be freely adjusted by replacing the first logical density.
  • the size of the layout is set for each page layout size, and when the user wishes to change the page layout size, the page can be freely adjusted by replacing the first logical density.
  • a first logical density may be set according to the model number or screen size of the terminal, and the default logical density of the native system is no longer used.
  • This has the advantage of making the logical density correspond to the model of the terminal or the size of the screen, instead of just corresponding to the screen resolution.
  • By selecting the logical density according to the terminal model or the size of the screen it is possible to obtain the corresponding size of the model or screen.
  • the best logical density Thereby realizing the physical size of the elements of the display page on different terminals, giving the user the best sense, and displaying more content on the big screen terminal, not just the same resolution, but the screen size The enlargement of the page is displayed on the smaller terminal.
  • the scaling of elements in the display page of the application is mainly for elements that are displayed by relying on logical density, rather than all display resources in the application, so as not to affect the display when zooming is achieved. A reasonable layout of the page.
  • the foregoing method provided by the embodiment of the present disclosure obtains a first logical density corresponding to a user's requirement for a page display mode and a second logical density of an application to be displayed, and determines a page according to the first logical density and the second logical density.
  • the scaling of the elements in the medium so that the elements in the application's page are enlarged or reduced according to the scaling, thereby realizing that the display manner of the page can be adjusted according to the user's needs, and satisfying the user's display manner for different pages.
  • FIG. 5 is a block diagram of an apparatus for adjusting a page display manner according to an exemplary embodiment. As shown in FIG. 5, the apparatus for adjusting a page display manner includes:
  • the first obtaining module 51 is configured to acquire a first logical density corresponding to a requirement of the user for the display mode of the page according to the requirement of the user for the display mode of the page, where the first logical density is defined by the developer in the system;
  • the second obtaining module 52 is configured to acquire a second logical density of the application to be displayed, where the second logical density is defined by a developer of the application to be displayed;
  • the determining module 53 is configured to determine a scaling ratio of an element in the application page according to the first logical density and the second logical density;
  • the scaling module 54 is configured to scale display the elements in the page of the application according to the scaling.
  • the determining module 53 may include:
  • a calculation submodule 531 configured to calculate a scaling ratio m of an element in the application page according to the following formula
  • m represents the scaling of the elements in the application page
  • X represents the first logical density
  • Z represents the second logical density
  • the first obtaining module 51 may include:
  • the first selection sub-module 511 is configured to select a first logical density corresponding to a page layout size set by the user according to a setting of a size of the page layout by the user.
  • the foregoing apparatus may further include:
  • the setting module 55 is configured to set at least two page layout options, each page layout option includes an identifier for indicating a degree of page layout size corresponding to the option; and set and store a first logic corresponding to each of the at least two page layout options density;
  • the first selection sub-module 511 is further configured to: display at least two page layout options; determine a page layout option selected by the user among the at least two page layout options; and a first logical density corresponding to the page layout option selected by the user The first logical density corresponding to the page layout size set by the user.
  • the first obtaining module 51 may include:
  • the second selection sub-module 512 is configured to select a first logical density corresponding to the model of the current terminal or the size of the display screen according to the model of the current terminal or the size of the display screen.
  • the foregoing apparatus determines a first logical density corresponding to a user's requirement for a page display manner and a second logical density of an application to be displayed, and determines a page according to the first logical density and the second logical density.
  • the scaling of the elements in the medium so that the elements in the page of the application are enlarged or reduced according to the scaling ratio, thereby realizing the adjustment of the display manner of the page according to the user's needs, and satisfying the user's demand for different page display modes.
  • FIG. 10 is a block diagram of an apparatus 600 for adjusting a page display manner, according to an exemplary embodiment, Applicable to terminal devices.
  • device 600 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • apparatus 600 can include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, And a communication component 616.
  • Processing component 602 typically controls the overall operation of device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • Processing component 602 can include one or more processors 620 to execute instructions to perform all or part of the steps described above.
  • processing component 602 can include one or more modules to facilitate interaction between component 602 and other components.
  • processing component 602 can include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.
  • Memory 604 is configured to store various types of data to support operation at device 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • Power component 606 provides power to various components of device 600.
  • Power component 606 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 600.
  • the multimedia component 608 includes a screen between the device 600 and the user that provides an output interface.
  • the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can sense not only the boundaries of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 608 includes a front camera and/or a rear camera. When the device 600 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 610 is configured to output and/or input an audio signal.
  • audio component 610 includes a microphone (MIC) that is configured to receive an external audio signal when device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 604 or transmitted via communication component 616.
  • audio component 610 also includes a speaker for outputting an audio signal.
  • the I/O interface 612 provides an interface between the processing component 602 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor assembly 614 includes one or more sensors for providing device 600 with a status assessment of various aspects.
  • sensor component 614 can detect an open/closed state of device 600, a relative positioning of components, such as a display and a keypad of device 600, and sensor component 614 can also detect a change in position of one component of device 600 or device 600, user The presence or absence of contact with device 600, device 600 orientation or acceleration/deceleration and temperature variation of device 600.
  • Sensor assembly 614 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 614 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 616 is configured to facilitate wired or wireless communication between device 600 and other devices.
  • the device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
  • communication component 616 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • communication component 616 also includes a near field communication (NFC) module to facilitate short range communication.
  • NFC near field communication
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • device 600 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • non-transitory computer readable storage medium comprising instructions, such as a memory 604 comprising instructions executable by processor 620 of apparatus 600 to perform the above method.
  • the non-transitory computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
  • a device for adjusting a page display manner comprising:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the elements in the page of the application are scaled and displayed according to the scaling.
  • the processor is further configured to: acquire a first logical density corresponding to a requirement of the user for the manner of displaying the page according to a requirement of the user for the manner of displaying the page, where the first logical density is defined by the developer in the system;
  • the elements in the page of the application are scaled and displayed according to the scaling.
  • the processor is further configured to: determine, according to the first logic density and the second logic density, a scaling of an element in the application page, which may include:
  • m represents a scaling of elements in the application page
  • X represents the first logical density
  • Z represents the second logical density
  • the processor is further configured to: acquire the first logical density corresponding to the requirement of the user to display the page according to the requirement of the user, and may include:
  • the first logical density corresponding to the page layout size set by the user is selected according to the user's setting of the size of the page layout.
  • the processor is further configured to: set at least two page layout options, each page layout option includes an identifier for indicating a degree of page layout size corresponding to the option; and set and store a first corresponding to each of the at least two page layout options Logical density
  • the page layout size corresponds to the first logical density.
  • the processor is further configured to: obtain the first logical density corresponding to the requirement of the user to display the page according to the user's requirement for the display mode of the page, and the method may include:
  • a first logical density corresponding to the model of the current terminal or the size of the display screen is selected according to the model of the current terminal or the size of the display screen.
  • a non-transitory computer readable storage medium when executed by a processor of a mobile terminal, enables a mobile terminal to perform a method of adjusting a page display manner, including:
  • the elements in the page of the application are scaled and displayed according to the scaling.
  • determining the scaling of the elements in the application page according to the first logic density and the second logic density may include:
  • m represents a scaling of elements in the application page
  • X represents the first logical density
  • Z represents the second logical density
  • the first logical density corresponding to the requirement of the user to display the page according to the user's requirement for the display mode of the page may include:
  • the first logical density corresponding to the page layout size set by the user is selected according to the user's setting of the size of the page layout.
  • the method may further include:
  • each page layout option includes an identifier for indicating a degree of page layout size corresponding to the option; and setting and storing a first logical density corresponding to each of the at least two page layout options;
  • the page layout size corresponds to the first logical density.
  • the first logical density corresponding to the requirement of the user to display the page according to the user's requirement for the display mode of the page may include:
  • a first logical density corresponding to the model of the current terminal or the size of the display screen is selected according to the model of the current terminal or the size of the display screen.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

调节页面显示方式的方法及装置,用以实现可根据用户需要调整终端设备的页面显示方式。所述方法包括:根据用户对页面显示方式的需求,获取与所述用户对页面显示方式的需求对应的第一逻辑密度,所述第一逻辑密度由开发者在系统中定义(S101);获取待显示的应用程序的第二逻辑密度,所述第二逻辑密度由所述待显示的应用程序的开发者定义(S102);根据所述第一逻辑密度和第二逻辑密度,确定所述应用程序页面中的元素的缩放比例(S103);根据所述缩放比例将所述应用程序的页面中的元素进行缩放显示(S104)。实现了可根据用户需要对页面显示方式进行调整,满足了用户对不同页面显示方式的需求。

Description

调节页面显示方式的方法及装置
本申请基于申请号为201510020768.X、申请日为2015年1月15日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本公开涉及互联网技术领域,尤其涉及调节页面显示方式的方法及装置。
背景技术
在原生的Android系统中,根据终端的显示屏幕的分辨率为各种终端定义有不同的逻辑密度。由于原生的Android系统只是根据分辨率选择逻辑密度,因此,不同物理屏幕尺寸的手机,比如5英寸和5.5英寸手机,其逻辑密度可能都是xxhdpi(480dpi),当一个有xxhdpi资源的应用程序分别装到这两款手机上时,视觉的直观表现是,xxhdpi的图片资源的边长在5.5英寸的手机上是5英寸手机上的1.1倍(5.5/5=1.1)比例的放大,而很多用户买大屏幕手机的目的,并不是希望其仅是小屏幕的放大版,而是希望获得更多的内容,比如在一张页面上能容纳更多的app图标。而目前的安卓系统的密度机制,导致了无法对第三方应用程序进行布局调整。
相关技术中,手机厂商为不同屏幕尺寸的手机使用不同的切图的方式,它可以将图片横向和纵向随意进行拉伸,而保留像素精细度,可满足Android平台多种分辨率适配的需求。但这种切图方式只对其系统应用程序等其预装的应用程序实现页面布局调节,对用户自己安装的第三方应用程序不起作用,并且对特定设备是不可以更改布局的。
发明内容
为克服相关技术中存在的问题,本公开实施例提供调节页面显示方式的方法及装置,用以实现根据用户需要调整终端设备的页面显示方式。
根据本公开实施例的第一方面,提供一种调节页面显示方式的方法,包括:
根据用户对页面显示方式的需求,获取与所述用户对页面显示方式的需求对应的第一逻辑密度,所述第一逻辑密度由开发者在系统中定义;
获取待显示的应用程序的第二逻辑密度,所述第二逻辑密度由所述待显示的应用程序的开发者定义;
根据所述第一逻辑密度和第二逻辑密度,确定所述应用程序页面中的元素的缩放比例;
根据所述缩放比例将所述应用程序的页面中的元素进行缩放显示。
在一个实施例中,所述根据所述第一逻辑密度和第二逻辑密度,确定所述应用程序页 面中元素的缩放比例,可包括:
根据下列公式计算出所述应用程序页面中元素的缩放比例m;
Figure PCTCN2015088582-appb-000001
其中,所述m表示所述应用程序页面中元素的缩放比例;所述X表示所述第一逻辑密度;所述Z表示所述第二逻辑密度。
在一个实施例中,根据用户对页面显示方式的需求,获取与所述用户对页面显示方式的需求对应的第一逻辑密度,可包括:
根据用户对页面布局的大小的设定,选择与所述用户设定的页面布局大小对应的第一逻辑密度。
在一个实施例中,所述方法还可包括:
设置至少两个页面布局选项,每个页面布局选项包括用于表明该选项对应的页面布局大小程度的标识;设置并存储至少两个页面布局选项各自对应的第一逻辑密度;
所述根据用户对页面布局的大小的设定,选择与所述用户设定的页面布局大小对应的第一逻辑密度,包括:
显示至少两个页面布局选项;确定所述至少两个页面布局选项中被用户选择的页面布局选项;将所述被用户选择的页面布局选项对应的第一逻辑密度,作为与所述用户设定的页面布局大小对应的第一逻辑密度。
在一个实施例中,所述根据用户对页面显示方式的需求,获取与所述用户对页面显示方式的需求对应的第一逻辑密度,可包括:
根据当前终端的型号或显示屏幕的尺寸,选择与所述当前终端的型号或显示屏幕的尺寸对应的第一逻辑密度。
根据本公开实施例的第二方面,提供一种调节页面显示方式的装置,包括:
第一获取模块,用于根据用户对页面显示方式的需求,获取与所述用户对页面显示方式的需求对应的第一逻辑密度,所述第一逻辑密度由开发者在系统中定义;
第二获取模块,用于获取待显示的应用程序的第二逻辑密度,所述第二逻辑密度由所述待显示的应用程序的开发者定义;
确定模块,用于根据所述第一逻辑密度和第二逻辑密度,确定所述应用程序页面中的元素的缩放比例;
缩放模块,用于根据所述缩放比例将所述应用程序的页面中的元素进行缩放显示。
在一个实施例中,所述确定模块,可包括:
计算子模块,用于根据下列公式计算出所述应用程序页面中元素的缩放比例m;
Figure PCTCN2015088582-appb-000002
其中,所述m表示所述应用程序页面中元素的缩放比例;所述X表示所述第一逻辑 密度;所述Z表示所述第二逻辑密度。
在一个实施例中,所述第一获取模块,可包括:
第一选择子模块,用于根据用户对页面布局的大小的设定,选择与所述用户设定的页面布局大小对应的第一逻辑密度。
在一个实施例中,所述装置还可包括:
设置模块,用于设置至少两个页面布局选项,每个页面布局选项包括用于表明该选项对应的页面布局大小程度的标识;设置并存储至少两个页面布局选项各自对应的第一逻辑密度;
第一选择子模块还用于:显示至少两个页面布局选项;确定所述至少两个页面布局选项中被用户选择的页面布局选项;将所述被用户选择的页面布局选项对应的第一逻辑密度,作为与所述用户设定的页面布局大小对应的第一逻辑密度。
在一个实施例中,所述第一获取模块,可包括:
第二选择子模块,用于根据当前终端的型号或显示屏幕的尺寸,选择与所述当前终端的型号或显示屏幕的尺寸对应的第一逻辑密度。
根据本公开实施例的第三方面,提供一种调节页面显示方式的装置,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
根据用户对页面显示方式的需求,获取与所述用户对页面显示方式的需求对应的第一逻辑密度,所述第一逻辑密度由开发者在系统中定义;
获取待显示的应用程序的第二逻辑密度,所述第二逻辑密度由所述待显示的应用程序的开发者定义;
根据所述第一逻辑密度和第二逻辑密度,确定所述应用程序页面中的元素的缩放比例;
根据所述缩放比例将所述应用程序的页面中的元素进行缩放显示。
本公开的实施例提供的技术方案可以包括以下有益效果:
本公开实施例提供的技术方案,通过获取与用户对页面显示方式的需求对应的第一逻辑密度、和待显示的应用程序的第二逻辑密度,并根据第一逻辑密度和第二逻辑密度确定页面中元素的缩放比例,从而根据该缩放比例对应用程序的页面中的元素进行放大或缩小,从而实现了可根据用户需要对页面的显示方式进行调整,满足了用户对不同页面显示方式的需求。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
图1是根据一示例性实施例示出的一种调节页面显示方式的方法的流程图。
图2是根据一示例性实施例示出的另一种调节页面显示方式的方法的流程图。
图3是根据一示例性实施例示出的再一种调节页面显示方式的方法的流程图。
图4是根据一示例性实施例示出的再一种调节页面显示方式的方法的流程图。
图5是根据一示例性实施例示出的一种调节页面显示方式的装置的框图。
图6是根据一示例性实施例示出的另一种调节页面显示方式的装置的框图。
图7是根据一示例性实施例示出的再一种调节页面显示方式的装置的框图。
图8是根据一示例性实施例示出的再一种调节页面显示方式的装置的框图。
图9是根据一示例性实施例示出的再一种调节页面显示方式的装置的框图。
图10是根据一示例性实施例示出的一种适用于调节页面显示方式的装置的框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
图1是根据一示例性实施例示出的一种调节页面显示方式的方法的流程图。如图1所示,该方法可应用于设备的系统程序或者其它应用程序,该方法包括以下步骤S101-S104:
在步骤S101中,根据用户对页面显示方式的需求,获取与用户对页面显示方式的需求对应的第一逻辑密度,第一逻辑密度由开发者在系统中定义。
在本实施例中,第一逻辑密度为安卓系统的深度定制开发者在系统中定义的逻辑密度,而非原生的Android系统定义的逻辑密度。
以安卓手机为例,在原生的安卓操作系统中,用于设备显示的逻辑密度存在默认定义。例如,原生的安卓系统定义了几种屏幕逻辑密度值,比如160dpi(mdpi),240dpi(hdpi),320dpi(xhdpi),480dpi(xxhdpi),640dpi(xxxhdpi)。
举例说明,在拥有分辨率为640的显示屏幕的移动终端中,原生的安卓操作系统会默认使用xxxhdpi作为逻辑密度控制设备的显示,而不会考虑屏幕的物理尺寸。
在本公开实施例中,改进了上述技术,由安卓系统的深度定制开发者重新定义了逻辑密度,不再以屏幕的分比例作为选择逻辑密度的依据,而是根据用户对于页面显示方式的需求,自定义了多种逻辑密度。
其中,对于用户对于页面显示方式的需求,至少包括两种情况:
(1)用户对于页面布局的大小的设定。
在目前情况下,有的用户希望页面显示的元素尽量大一些(例如老人),有的人希望 屏幕上显示的内容尽量多,就希望显示元素小一些。对于此,我们可以在操作系统中提供设置选项,提供不同的页面布局的大小让用户进行选择。
例如,可以在开机引导或“设置”中加入页面布局选项,页面布局选项可以有“小”、“默认”、“中”、“大”、“特大”等几个选项,当用户想调整页面布局时,点击其中的一个选项,由于每个选项对应各自的缩放比例,因此可根据该选项对应的缩放比例对页面布局进行调整。
基于此方式,如图2所示,本步骤S101可以实施为如下步骤S201:
在步骤S201中,根据用户对页面布局的大小的设定,选择与用户设定的页面布局大小对应的第一逻辑密度。
亦基于此方式,在一个实施例中,如图3所示,上述方法还可包括S105-S106:
在步骤S105中,设置至少两个页面布局选项,每个页面布局选项包括用于表明该选项对应的页面布局大小程度的标识;设置并存储至少两个页面布局选项各自对应的第一逻辑密度;
此时,步骤S201可实施为如下步骤S106:
在步骤S106中,显示至少两个页面布局选项;确定至少两个页面布局选项中被用户选择的页面布局选项;将被用户选择的页面布局选项对应的第一逻辑密度,作为与用户设定的页面布局大小对应的第一逻辑密度。
(2)基于用户对于在屏幕上显示的页面元素的物理尺寸的需求。
在相同分辨率的情况下,屏幕的物理尺寸有可能是不同的。
例如:
型号为X1的手机的屏幕,分辨率为480dpi,其物理尺寸为5寸;
型号为X2的手机的屏幕,分辨率为480dpi,其物理尺寸为5.5寸。
如果依据原生的安卓系统的定义,将会为X1和X2选择相同的逻辑密度,因此,在5.5寸屏幕的X2上的页面就会产生页面放大的情况。但往往在实际应用过程中,用户希望在不同尺寸屏幕上显示的元素的物理尺寸是相同的,这样可以对大屏幕的设备屏幕进行有效利用,对于用户的感官也较好。
因此,本公开实施例通过改进原生系统中的逻辑密度机制,为不同型号(或不同尺寸)的手机设定不同的逻辑密度,以使在不同尺寸屏幕上显示页面时,元素的物理尺寸是一致的。
基于此方式,如图4所示,本步骤S101可以实施为如下步骤S401:
在步骤S401中,根据当前终端的型号或显示屏幕的尺寸,选择与当前终端的型号或显示屏幕的尺寸对应的第一逻辑密度。
在步骤S102中,获取待显示的应用程序的第二逻辑密度,第二逻辑密度由待显示的应用程序的开发者定义。
在一个实施例中,第二逻辑密度也可称为资源密度,用户在开发应用程序时,会设置 第二逻辑密度,比如,第二逻辑密度可以为480dpi。
在步骤S103中,根据第一逻辑密度和第二逻辑密度,确定应用程序页面中的元素的缩放比例。
在一个实施例中,步骤S103可实施为如下步骤A1:
步骤A1,根据下列公式(1)计算出应用程序页面中元素的缩放比例m;
Figure PCTCN2015088582-appb-000003
其中,m表示应用程序页面中元素的缩放比例;X表示第一逻辑密度;Z表示第二逻辑密度。
以屏幕尺寸5.5英寸的设备为例,第一逻辑密度选择480dpi,第二逻辑密度为400dpi。则应用程序页面中元素的缩放比例m=480dpi/400dpi=1.2倍。
在步骤S104中,根据缩放比例将应用程序的页面中的元素进行缩放显示。
举例说明,根据步骤S103计算出的缩放比例为1.2,也就是将页面中的元素放大1.2倍。
由上可知,本公开实施例所提供了至少两种对于逻辑密度的选择方法(如步骤S201和步骤S401),通过改变原生系统里对于逻辑密度的选择机制,本公开实施例可以达到多种效果。
例如:
在如步骤S201所述的逻辑密度选择方法中,为每一种页面布局的大小设定一个对应的逻辑密度,在用户希望更改页面布局大小时,通过更换第一逻辑密度,可以自由的调整页面布局的大小。
在如步骤S401所述的逻辑密度选择方法中,可以根据终端的型号或屏幕尺寸设定一种第一逻辑密度,而不再使用原生系统默认的逻辑密度。这样的好处是,使逻辑密度与终端的型号或屏幕的尺寸对应,而不再是只是与屏幕分辨率对应,通过根据终端型号或屏幕的尺寸选择逻辑密度,可以获得与该型号或屏幕尺寸对应的最佳逻辑密度。从而实现在不同终端上的显示页面的元素的物理尺寸一致,给用户以最佳的感官,并且在大屏幕的终端上显示更多的内容,而不仅仅只是相对于相同分辨率、但是屏幕尺寸较小的终端上显示页面的放大而已。
在本公开的一个实施方式中,对于应用程序的显示页面中的元素的缩放,主要是针对依靠逻辑密度进行显示的元素,而非应用程序中的全部显示资源,以达到缩放时不影响对显示页面的合理布局。
本公开实施例提供的上述方法,通过获取与用户对页面显示方式的需求对应的第一逻辑密度和待显示的应用程序的第二逻辑密度,并根据第一逻辑密度和第二逻辑密度确定页面中元素的缩放比例,从而根据该缩放比例对应用程序的页面中的元素进行放大或缩小,从而实现了可根据用户需要对页面的显示方式进行调整,满足了用户对不同页面显示方式 的需求。
图5是根据一示例性实施例示出的一种调节页面显示方式的装置的框图,如图5所示,该调节页面显示方式的装置包括:
第一获取模块51,被配置根据用户对页面显示方式的需求,获取与用户对页面显示方式的需求对应的第一逻辑密度,第一逻辑密度由开发者在系统中定义;
第二获取模块52,被配置为获取待显示的应用程序的第二逻辑密度,第二逻辑密度由待显示的应用程序的开发者定义;
确定模块53,被配置为根据第一逻辑密度和第二逻辑密度,确定应用程序页面中的元素的缩放比例;
缩放模块54,被配置为根据缩放比例将应用程序的页面中的元素进行缩放显示。
在一个实施例中,如图6所示,确定模块53,可包括:
计算子模块531,被配置为根据下列公式计算出应用程序页面中元素的缩放比例m;
Figure PCTCN2015088582-appb-000004
其中,m表示应用程序页面中元素的缩放比例;X表示第一逻辑密度;Z表示第二逻辑密度。
在一个实施例中,如图7所示,第一获取模块51,可包括:
第一选择子模块511,被配置为根据用户对页面布局的大小的设定,选择与用户设定的页面布局大小对应的第一逻辑密度。
在一个实施例中,如图8所示,上述装置还可包括:
设置模块55,被配置为设置至少两个页面布局选项,每个页面布局选项包括用于表明该选项对应的页面布局大小程度的标识;设置并存储至少两个页面布局选项各自对应的第一逻辑密度;
第一选择子模块511还用于:显示至少两个页面布局选项;确定至少两个页面布局选项中被用户选择的页面布局选项;将被用户选择的页面布局选项对应的第一逻辑密度,作为与用户设定的页面布局大小对应的第一逻辑密度。
在一个实施例中,如图9所示,第一获取模块51,可包括:
第二选择子模块512,被配置为根据当前终端的型号或显示屏幕的尺寸,选择与当前终端的型号或显示屏幕的尺寸对应的第一逻辑密度。
本公开实施例提供的上述装置,通过获取与用户对页面显示方式的需求对应的第一逻辑密度和待显示的应用程序的第二逻辑密度,并根据第一逻辑密度和第二逻辑密度确定页面中元素的缩放比例,从而根据该缩放比例对应用程序的页面中的元素进行放大或缩小,从而实现了可根据用户需要对页面的显示方式进行调整,满足了用户对不同页面显示方式的需求。
图10是根据一示例性实施例示出的一种调节页面显示方式的装置600的框图,该装 置适用于终端设备。例如,装置600可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。
参照图10,装置600可以包括以下一个或多个组件:处理组件602,存储器604,电源组件606,多媒体组件608,音频组件610,输入/输出(I/O)的接口612,传感器组件614,以及通信组件616。
处理组件602通常控制装置600的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件602可以包括一个或多个处理器620来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件602可以包括一个或多个模块,便于处理组件602和其他组件之间的交互。例如,处理部件602可以包括多媒体模块,以方便多媒体组件608和处理组件602之间的交互。
存储器604被配置为存储各种类型的数据以支持在设备600的操作。这些数据的示例包括用于在装置600上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电力组件606为装置600的各种组件提供电力。电力组件606可以包括电源管理系统,一个或多个电源,及其他与为装置600生成、管理和分配电力相关联的组件。
多媒体组件608包括在装置600和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件608包括一个前置摄像头和/或后置摄像头。当设备600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件610被配置为输出和/或输入音频信号。例如,音频组件610包括一个麦克风(MIC),当装置600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器604或经由通信组件616发送。在一些实施例中,音频组件610还包括一个扬声器,用于输出音频信号。
I/O接口612为处理组件602和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件614包括一个或多个传感器,用于为装置600提供各个方面的状态评估。 例如,传感器组件614可以检测到设备600的打开/关闭状态,组件的相对定位,例如组件为装置600的显示器和小键盘,传感器组件614还可以检测装置600或装置600一个组件的位置改变,用户与装置600接触的存在或不存在,装置600方位或加速/减速和装置600的温度变化。传感器组件614可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件614还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件614还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件616被配置为便于装置600和其他设备之间有线或无线方式的通信。装置600可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件616经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信部件616还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置600可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器604,上述指令可由装置600的处理器620执行以完成上述方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
一种调节页面显示方式的装置,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
根据用户对页面显示方式的需求,获取与所述用户对页面显示方式的需求对应的第一逻辑密度,所述第一逻辑密度由开发者在系统中定义;
获取待显示的应用程序的第二逻辑密度,所述第二逻辑密度由所述待显示的应用程序的开发者定义;
根据所述第一逻辑密度和第二逻辑密度,确定所述应用程序页面中的元素的缩放比例;
根据所述缩放比例将所述应用程序的页面中的元素进行缩放显示。
该处理器还被配置为:根据用户对页面显示方式的需求,获取与所述用户对页面显示方式的需求对应的第一逻辑密度,所述第一逻辑密度由开发者在系统中定义;
获取待显示的应用程序的第二逻辑密度,所述第二逻辑密度由所述待显示的应用程序 的开发者定义;
根据所述第一逻辑密度和第二逻辑密度,确定所述应用程序页面中的元素的缩放比例;
根据所述缩放比例将所述应用程序的页面中的元素进行缩放显示。
该处理器还被配置为:所述根据所述第一逻辑密度和第二逻辑密度,确定所述应用程序页面中元素的缩放比例,可包括:
根据下列公式计算出所述应用程序页面中元素的缩放比例m;
Figure PCTCN2015088582-appb-000005
其中,所述m表示所述应用程序页面中元素的缩放比例;所述X表示所述第一逻辑密度;所述Z表示所述第二逻辑密度。
该处理器还被配置为:根据用户对页面显示方式的需求,获取与所述用户对页面显示方式的需求对应的第一逻辑密度,可包括:
根据用户对页面布局的大小的设定,选择与所述用户设定的页面布局大小对应的第一逻辑密度。
该处理器还被配置为:设置至少两个页面布局选项,每个页面布局选项包括用于表明该选项对应的页面布局大小程度的标识;设置并存储至少两个页面布局选项各自对应的第一逻辑密度;
所述根据用户对页面布局的大小的设定,选择与所述用户设定的页面布局大小对应的第一逻辑密度,包括:
显示至少两个页面布局选项;确定所述至少两个页面布局选项中被用户选择的页面布局选项;将所述被用户选择的页面布局选项对应的第一逻辑密度,作为与所述用户设定的页面布局大小对应的第一逻辑密度。
该处理器还被配置为:所述根据用户对页面显示方式的需求,获取与所述用户对页面显示方式的需求对应的第一逻辑密度,可包括:
根据当前终端的型号或显示屏幕的尺寸,选择与所述当前终端的型号或显示屏幕的尺寸对应的第一逻辑密度。
一种非临时性计算机可读存储介质,当存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种调节页面显示方式的方法,包括:
根据用户对页面显示方式的需求,获取与所述用户对页面显示方式的需求对应的第一逻辑密度,所述第一逻辑密度由开发者在系统中定义;
获取待显示的应用程序的第二逻辑密度,所述第二逻辑密度由所述待显示的应用程序的开发者定义;
根据所述第一逻辑密度和第二逻辑密度,确定所述应用程序页面中的元素的缩放比例;
根据所述缩放比例将所述应用程序的页面中的元素进行缩放显示。
在一个实施例中,所述根据所述第一逻辑密度和第二逻辑密度,确定所述应用程序页面中元素的缩放比例,可包括:
根据下列公式计算出所述应用程序页面中元素的缩放比例m;
Figure PCTCN2015088582-appb-000006
其中,所述m表示所述应用程序页面中元素的缩放比例;所述X表示所述第一逻辑密度;所述Z表示所述第二逻辑密度。
在一个实施例中,根据用户对页面显示方式的需求,获取与所述用户对页面显示方式的需求对应的第一逻辑密度,可包括:
根据用户对页面布局的大小的设定,选择与所述用户设定的页面布局大小对应的第一逻辑密度。
在一个实施例中,所述方法还可包括:
设置至少两个页面布局选项,每个页面布局选项包括用于表明该选项对应的页面布局大小程度的标识;设置并存储至少两个页面布局选项各自对应的第一逻辑密度;
所述根据用户对页面布局的大小的设定,选择与所述用户设定的页面布局大小对应的第一逻辑密度,包括:
显示至少两个页面布局选项;确定所述至少两个页面布局选项中被用户选择的页面布局选项;将所述被用户选择的页面布局选项对应的第一逻辑密度,作为与所述用户设定的页面布局大小对应的第一逻辑密度。
在一个实施例中,所述根据用户对页面显示方式的需求,获取与所述用户对页面显示方式的需求对应的第一逻辑密度,可包括:
根据当前终端的型号或显示屏幕的尺寸,选择与所述当前终端的型号或显示屏幕的尺寸对应的第一逻辑密度。
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (11)

  1. 一种调节页面显示方式的方法,其特征在于,包括:
    根据用户对页面显示方式的需求,获取与所述用户对页面显示方式的需求对应的第一逻辑密度,所述第一逻辑密度由开发者在系统中定义;
    获取待显示的应用程序的第二逻辑密度,所述第二逻辑密度由所述待显示的应用程序的开发者定义;
    根据所述第一逻辑密度和第二逻辑密度,确定所述应用程序页面中的元素的缩放比例;
    根据所述缩放比例将所述应用程序的页面中的元素进行缩放显示。
  2. 如权利要求1所述的方法,其特征在于,所述根据所述第一逻辑密度和第二逻辑密度,确定所述应用程序页面中元素的缩放比例,包括:
    根据下列公式计算出所述应用程序页面中元素的缩放比例m;
    Figure PCTCN2015088582-appb-100001
    其中,所述m表示所述应用程序页面中元素的缩放比例;所述X表示所述第一逻辑密度;所述Z表示所述第二逻辑密度。
  3. 如权利要求1所述的方法,其特征在于,根据用户对页面显示方式的需求,获取与所述用户对页面显示方式的需求对应的第一逻辑密度,包括:
    根据用户对页面布局的大小的设定,选择与所述用户设定的页面布局大小对应的第一逻辑密度。
  4. 如权利要求3所述的方法,其特征在于,所述方法还包括:
    设置至少两个页面布局选项,每个页面布局选项包括用于表明该选项对应的页面布局大小程度的标识;设置并存储至少两个页面布局选项各自对应的第一逻辑密度;
    所述根据用户对页面布局的大小的设定,选择与所述用户设定的页面布局大小对应的第一逻辑密度,包括:
    显示至少两个页面布局选项;确定所述至少两个页面布局选项中被用户选择的页面布局选项;将所述被用户选择的页面布局选项对应的第一逻辑密度,作为与所述用户设定的页面布局大小对应的第一逻辑密度。
  5. 如权利要求1所述的方法,其特征在于,所述根据用户对页面显示方式的需求,获取与所述用户对页面显示方式的需求对应的第一逻辑密度,包括:
    根据当前终端的型号或显示屏幕的尺寸,选择与所述当前终端的型号或显示屏幕的尺寸对应的第一逻辑密度。
  6. 一种调节页面显示方式的装置,其特征在于,包括:
    第一获取模块,用于根据用户对页面显示方式的需求,获取与所述用户对页面显示方式的需求对应的第一逻辑密度,所述第一逻辑密度由开发者在系统中定义;
    第二获取模块,用于获取待显示的应用程序的第二逻辑密度,所述第二逻辑密度由所述待显示的应用程序的开发者定义;
    确定模块,用于根据所述第一逻辑密度和第二逻辑密度,确定所述应用程序页面中的元素的缩放比例;
    缩放模块,用于根据所述缩放比例将所述应用程序的页面中的元素进行缩放显示。
  7. 如权利要求6所述的装置,其特征在于,所述确定模块,包括:
    计算子模块,用于根据下列公式计算出所述应用程序页面中元素的缩放比例m;
    Figure PCTCN2015088582-appb-100002
    其中,所述m表示所述应用程序页面中元素的缩放比例;所述X表示所述第一逻辑密度;所述Z表示所述第二逻辑密度。
  8. 如权利要求6所述的装置,其特征在于,所述第一获取模块,包括:
    第一选择子模块,用于根据用户对页面布局的大小的设定,选择与所述用户设定的页面布局大小对应的第一逻辑密度。
  9. 如权利要求8所述的装置,其特征在于,所述装置还包括:
    设置模块,用于设置至少两个页面布局选项,每个页面布局选项包括用于表明该选项对应的页面布局大小程度的标识;设置并存储至少两个页面布局选项各自对应的第一逻辑密度;
    第一选择子模块还用于:显示至少两个页面布局选项;确定所述至少两个页面布局选项中被用户选择的页面布局选项;将所述被用户选择的页面布局选项对应的第一逻辑密度,作为与所述用户设定的页面布局大小对应的第一逻辑密度。
  10. 如权利要求6所述的装置,其特征在于,所述第一获取模块,包括:
    第二选择子模块,用于根据当前终端的型号或显示屏幕的尺寸,选择与所述当前终端的型号或显示屏幕的尺寸对应的第一逻辑密度。
  11. 一种调节页面显示方式的装置,其特征在于,包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为:
    根据用户对页面显示方式的需求,获取与所述用户对页面显示方式的需求对应的第一逻辑密度,所述第一逻辑密度由开发者在系统中定义;
    获取待显示的应用程序的第二逻辑密度,所述第二逻辑密度由所述待显示的应用程序的开发者定义;
    根据所述第一逻辑密度和第二逻辑密度,确定所述应用程序页面中的元素的缩放比例;
    根据所述缩放比例将所述应用程序的页面中的元素进行缩放显示。
PCT/CN2015/088582 2015-01-15 2015-08-31 调节页面显示方式的方法及装置 Ceased WO2016112696A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
KR1020157031180A KR101779483B1 (ko) 2015-01-15 2015-08-31 화면 표시 방식을 조정하는 방법, 장치, 프로그램 및 기록매체
BR112015030053A BR112015030053A2 (pt) 2015-01-15 2015-08-31 método e dispositivo para ajustar exibição de página
MX2015015871A MX354970B (es) 2015-01-15 2015-08-31 Metodo y dispositivo para ajustar la visualizacion de pagina.
RU2015152475A RU2637475C2 (ru) 2015-01-15 2015-08-31 Способ и устройство для регулирования отображения страницы
JP2016568993A JP2017510914A (ja) 2015-01-15 2015-08-31 画面表示方式を調整する方法、装置、プログラムおよび記録媒体

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510020768.X 2015-01-15
CN201510020768.XA CN104598131B (zh) 2015-01-15 2015-01-15 调节页面显示方式的方法及装置

Publications (1)

Publication Number Publication Date
WO2016112696A1 true WO2016112696A1 (zh) 2016-07-21

Family

ID=53123961

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/088582 Ceased WO2016112696A1 (zh) 2015-01-15 2015-08-31 调节页面显示方式的方法及装置

Country Status (9)

Country Link
US (1) US20160210726A1 (zh)
EP (1) EP3046068B1 (zh)
JP (1) JP2017510914A (zh)
KR (1) KR101779483B1 (zh)
CN (1) CN104598131B (zh)
BR (1) BR112015030053A2 (zh)
MX (1) MX354970B (zh)
RU (1) RU2637475C2 (zh)
WO (1) WO2016112696A1 (zh)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598131B (zh) * 2015-01-15 2018-07-24 小米科技有限责任公司 调节页面显示方式的方法及装置
CN107533568B (zh) * 2015-09-15 2020-12-18 谷歌有限责任公司 确定应用缩放等级的系统和方法
CN105892960A (zh) * 2015-10-27 2016-08-24 乐视移动智能信息技术(北京)有限公司 移动终端屏幕显示的缩放方法及装置
CN106201709A (zh) * 2016-06-28 2016-12-07 北京小米移动软件有限公司 资源显示方法及装置
CN108205441A (zh) * 2016-12-20 2018-06-26 北大方正集团有限公司 列表样式的调整方法、系统及终端
CN106843854A (zh) * 2016-12-28 2017-06-13 北京五八信息技术有限公司 页面指示器的生成方法和装置
CN108734656A (zh) * 2017-04-18 2018-11-02 腾讯科技(深圳)有限公司 缩放处理方法及装置
CN107256142B (zh) * 2017-04-21 2020-12-29 腾讯科技(深圳)有限公司 一种页面显示的方法及终端
CN111880869B (zh) * 2020-06-17 2024-11-19 西安万像电子科技有限公司 画面调整方法、装置和系统
CN114115619B (zh) * 2020-08-31 2024-07-05 华为技术有限公司 一种应用程序界面显示的方法及电子设备
CN113204346A (zh) * 2021-07-05 2021-08-03 城云科技(中国)有限公司 页面适配方法、装置、计算机设备及存储介质
CN113886744B (zh) * 2021-12-08 2022-05-06 浙江口碑网络技术有限公司 内容渲染方法、装置、电子设备及存储介质
CN114297547B (zh) * 2021-12-30 2025-04-08 中国工商银行股份有限公司 页面元素调整方法、装置、设备、存储介质和程序产品

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090089660A1 (en) * 2007-10-01 2009-04-02 Atkins C Brian Arranging graphic objects on a page with relative position based control
CN103699329A (zh) * 2013-12-31 2014-04-02 优视科技有限公司 页面缩放方法、装置及终端设备
CN104050185A (zh) * 2013-03-13 2014-09-17 百度在线网络技术(北京)有限公司 一种页面内容缩放显示处理方法及装置
CN104063148A (zh) * 2014-06-11 2014-09-24 科大讯飞股份有限公司 移动终端上Web应用程序的界面动态适配方法及系统
CN104598131A (zh) * 2015-01-15 2015-05-06 小米科技有限责任公司 调节页面显示方式的方法及装置

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8819569B2 (en) * 2005-02-18 2014-08-26 Zumobi, Inc Single-handed approach for navigation of application tiles using panning and zooming
RU2348975C1 (ru) * 2007-10-18 2009-03-10 Корпорация "САМСУНГ ЭЛЕКТРОНИКС Ко., Лтд." Способ отображения страниц при предварительном просмотре
CN101226454A (zh) * 2008-01-18 2008-07-23 魏新成 在w2vga手机触摸屏上进行常用手机功能操作
CN101694770B (zh) * 2009-10-19 2011-06-15 华为终端有限公司 控制屏幕显示的方法、装置及手持设备
CN101882055A (zh) * 2010-06-21 2010-11-10 中兴通讯股份有限公司 一种终端上缩放显示页面的方法及装置
KR101975906B1 (ko) * 2012-01-09 2019-05-08 삼성전자주식회사 영상 표시 장치에서 응용 프로그램의 레이아웃을 스케일링하기 위한 장치 및 방법
CN102662616B (zh) * 2012-03-28 2015-12-16 北京邮电大学 用于移动终端的屏幕图形自适应方法及系统
CN104350737B (zh) * 2012-05-30 2017-09-19 富士胶片株式会社 放射线图像摄影装置和放射线检测器
US10102848B2 (en) * 2014-02-28 2018-10-16 Google Llc Hotwords presentation framework
CN104182270A (zh) * 2014-08-25 2014-12-03 北京云巢动脉科技有限公司 虚拟机界面适应不同分辨率移动终端屏幕的显示方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090089660A1 (en) * 2007-10-01 2009-04-02 Atkins C Brian Arranging graphic objects on a page with relative position based control
CN104050185A (zh) * 2013-03-13 2014-09-17 百度在线网络技术(北京)有限公司 一种页面内容缩放显示处理方法及装置
CN103699329A (zh) * 2013-12-31 2014-04-02 优视科技有限公司 页面缩放方法、装置及终端设备
CN104063148A (zh) * 2014-06-11 2014-09-24 科大讯飞股份有限公司 移动终端上Web应用程序的界面动态适配方法及系统
CN104598131A (zh) * 2015-01-15 2015-05-06 小米科技有限责任公司 调节页面显示方式的方法及装置

Also Published As

Publication number Publication date
KR20160098964A (ko) 2016-08-19
EP3046068A1 (en) 2016-07-20
KR101779483B1 (ko) 2017-09-18
CN104598131B (zh) 2018-07-24
MX2015015871A (es) 2016-10-06
EP3046068B1 (en) 2020-09-02
RU2015152475A (ru) 2017-06-14
BR112015030053A2 (pt) 2017-07-25
JP2017510914A (ja) 2017-04-13
CN104598131A (zh) 2015-05-06
RU2637475C2 (ru) 2017-12-04
US20160210726A1 (en) 2016-07-21
MX354970B (es) 2018-03-27

Similar Documents

Publication Publication Date Title
WO2016112696A1 (zh) 调节页面显示方式的方法及装置
US11010020B2 (en) Method, apparatus and storage medium for displaying shortcut operation panel
CN105955607B (zh) 内容分享方法和装置
JP6130072B2 (ja) 撮影パラメータの調節方法、装置、プログラム、及び記録媒体
CN105159640B (zh) 显示界面旋转方法、装置和移动终端
CN106527867B (zh) 移动悬浮层界面的方法及装置
CN107193606B (zh) 应用分发方法及装置
CN108804179B (zh) 显示通知栏消息的方法、装置、终端及存储介质
CN104238890B (zh) 文字显示方法及装置
WO2017113666A1 (zh) 应用界面切换方法及装置
CN106407365A (zh) 图片共享方法及装置
US20150116368A1 (en) Method and device for adjusting characters of application
CN111381746A (zh) 参数调节方法、装置及存储介质
CN106201310A (zh) 通知消息的显示方法、装置及终端
CN106598429A (zh) 移动终端的窗口调整方法及装置
CN112463084B (zh) 分屏显示方法、装置、终端设备及计算机可读存储介质
CN104063424B (zh) 网页图片的展现方法和展现装置
CN105808096B (zh) 滑块显示方法及装置
CN107179837B (zh) 输入方法及装置
CN105808102A (zh) 添加边框的方法及装置
US11016660B2 (en) Method and apparatus for responding to gesture operation and storage medium
CN107908346A (zh) 用于控制屏幕显示的方法及装置
CN106775247A (zh) 应用图标移动的方法及智能终端
CN105930034A (zh) 显示对话框的方法和装置
CN107920015A (zh) 发布图片的方法和发布图片的装置

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2016568993

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20157031180

Country of ref document: KR

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: MX/A/2015/015871

Country of ref document: MX

ENP Entry into the national phase

Ref document number: 2015152475

Country of ref document: RU

Kind code of ref document: A

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

Ref document number: 15877609

Country of ref document: EP

Kind code of ref document: A1

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112015030053

Country of ref document: BR

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 112015030053

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20151130

122 Ep: pct application non-entry in european phase

Ref document number: 15877609

Country of ref document: EP

Kind code of ref document: A1