WO2017120894A1 - 一种显示的方法及终端 - Google Patents

一种显示的方法及终端 Download PDF

Info

Publication number
WO2017120894A1
WO2017120894A1 PCT/CN2016/071053 CN2016071053W WO2017120894A1 WO 2017120894 A1 WO2017120894 A1 WO 2017120894A1 CN 2016071053 W CN2016071053 W CN 2016071053W WO 2017120894 A1 WO2017120894 A1 WO 2017120894A1
Authority
WO
WIPO (PCT)
Prior art keywords
display
application
horizontal
page
vertical screen
Prior art date
Application number
PCT/CN2016/071053
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 CN202110980008.9A priority Critical patent/CN113867661A/zh
Priority to KR1020187019682A priority patent/KR102197517B1/ko
Priority to US16/070,019 priority patent/US10872585B2/en
Priority to EP16884456.1A priority patent/EP3379397B1/en
Priority to CN201680061763.4A priority patent/CN108351794B/zh
Priority to CN202110981374.6A priority patent/CN113867662A/zh
Priority to JP2018536783A priority patent/JP7043407B2/ja
Priority to PCT/CN2016/071053 priority patent/WO2017120894A1/zh
Publication of WO2017120894A1 publication Critical patent/WO2017120894A1/zh

Links

Images

Classifications

    • 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/38Control 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 with means for controlling the display position
    • 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
    • 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; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1626Constructional details or arrangements for portable computers with a single-body enclosure integrating a flat display, e.g. Personal Digital Assistants [PDAs]
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • 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/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
    • 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/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
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2200/00Indexing scheme relating to G06F1/04 - G06F1/32
    • G06F2200/16Indexing scheme relating to G06F1/16 - G06F1/18
    • G06F2200/161Indexing scheme relating to constructional details of the monitor
    • G06F2200/1614Image rotation following screen orientation, e.g. switching from landscape to portrait mode
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04803Split screen, i.e. subdividing the display area or the window area into separate subareas
    • 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/0492Change of orientation of the displayed image, e.g. upside-down, mirrored
    • 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 invention relates to the field of communications technologies, and in particular, to a display method and terminal.
  • the display direction of the terminal usually has two display directions of horizontal screen and vertical screen, as shown in FIG. 1 , when the horizontal width of the terminal display is less than the vertical height, the vertical screen direction is When the horizontal width of the terminal display is greater than the vertical height, it is the horizontal screen direction. If the app supports horizontal and vertical rotation, the app will change the display orientation as the terminal rotates. If the application has a special horizontal screen or vertical screen layout, pictures and other resources, horizontal screen resources will be loaded first when the horizontal screen is used, and vertical screen resources will be loaded first when the vertical screen is used.
  • the application is limited to vertical screen display
  • the direction of the application display is still a vertical screen, and the display direction is not changed with the rotation of the terminal.
  • the display can only be horizontal.
  • the screen when the terminal is rotated into a vertical screen display, the direction of the application display is still a horizontal screen, and the display direction is not changed with the rotation of the terminal.
  • a technical problem to be solved by embodiments of the present invention is to provide a display method and terminal. To solve the problem that the terminal display effect and the user experience are poor due to the application not supporting the horizontal and vertical screen switching.
  • an embodiment of the present invention provides a display method, including:
  • the horizontal and vertical screen direction configuration information sets the page to support only one-way display, modifying the horizontal and vertical screen direction configuration information and the page display size of the application;
  • the application after the page display size is modified is displayed on the interface after the horizontal and vertical screen switching.
  • the modification is performed.
  • the horizontal and vertical screen direction configuration information and the page display size of the application are performed, and the horizontal and vertical screen switching is performed according to the horizontal and vertical screen switching instructions; and the application after the page display size is modified is displayed on the interface after the horizontal and vertical screen switching, thereby realizing
  • the horizontal and vertical screen switching display of the application that does not support the horizontal and vertical screen switching, especially when the user uses the terminal of the larger screen, can realize the horizontal screen display according to the user's needs, providing the user with a wider horizontal viewing field;
  • the vertical screen display can be realized according to the user's needs, which provides the user with the convenience of one-hand operation; thereby improving the display effect and user experience of the terminal, and expanding the applicability and practicability of the terminal.
  • the method further includes:
  • the interface after the horizontal and vertical screen switching includes a first display area and a second display area, and the method further includes:
  • a preset function button or a preset application is displayed in the second display area.
  • Displaying a preset function button or a preset application in the second display area after the horizontal and vertical screen switching can fully utilize the screen hardware resources of the terminal, and provide more functions for the switched display page, thereby further facilitating the use of the user, The applicability and practicability of the terminal are further improved.
  • the method further includes:
  • the horizontal and vertical direction configuration information modified when the application is switched between the horizontal and vertical screens and the modified page display size are recorded to be called when the horizontal and vertical screen switching is performed again.
  • the terminal can directly call when the terminal performs horizontal and vertical screen switching again, which can avoid inefficient processing that needs to be modified once every time, and improves the response speed of the horizontal and vertical screen switching. .
  • the modification when the application is switched from the vertical screen display to the horizontal screen display, the modification is performed.
  • the page display size of the application includes:
  • the display width of the page displayed by the horizontal screen of the application is less than or equal to the page display width when the vertical screen of the application is displayed.
  • the application when the application is switched from the vertical screen display to the horizontal screen display , the application is displayed in the center or right side of the terminal display.
  • the page displayed on the horizontal screen is displayed on the center or the right side of the terminal display screen, which conforms to the user's visual habits and the user's operating habits, and can be conveniently viewed and used by the user.
  • the page displayed on the screen Since the common hand of most users is the right hand, the page displayed on the horizontal screen is displayed on the center or the right side of the terminal display screen, which conforms to the user's visual habits and the user's operating habits, and can be conveniently viewed and used by the user.
  • the page displayed on the screen is displayed on the center or the right side of the terminal display screen, which conforms to the user's visual habits and the user's operating habits, and can be conveniently viewed and used by the user.
  • the page displayed on the screen Since the common hand of most users is the right hand, the page displayed on the horizontal screen is displayed on the center or the right side of the terminal display screen, which conforms to the user's visual habits and the user's operating habits, and can be conveniently viewed and used by the user.
  • the displaying a preset function button or a preset application in the second display area include:
  • An application or function button adapted to all applications is displayed in the second display area.
  • an embodiment of the present invention provides a terminal, including:
  • a receiving unit configured to receive a horizontal and vertical screen switching instruction
  • a reading unit configured to read display attributes of the currently displayed application, and obtain, according to the display attributes, configuration information of the horizontal and vertical screen directions displayed by the application on the page;
  • Modifying the unit if the horizontal and vertical screen direction configuration information sets the page to support only one-way display, modifying the horizontal and vertical screen direction configuration information and the page display size of the application;
  • a switching unit configured to perform horizontal and vertical screen switching according to the horizontal and vertical screen switching instructions
  • the display unit is configured to display the application after the page display size is modified on the interface after the horizontal and vertical screen switching.
  • the interface includes a first display area and a second display area, and the display unit is further configured to:
  • a preset function button or a preset application is displayed in the second display area.
  • the terminal further includes:
  • a recording unit configured to record the horizontal and vertical screen direction configuration information modified when the application is switched between the horizontal and vertical screens, and the modified page display size, so that the display unit is called when the horizontal and vertical screen switching is performed again.
  • the modification unit when the application is switched from the vertical screen display to the horizontal screen display, the modification unit is specifically used for:
  • the page display width of the application horizontal screen display is the page display width when the application is displayed in the vertical screen, and the page display height of the application horizontal screen display is less than or equal to the page display width when the application vertical screen is displayed.
  • the display unit when the application is switched from the vertical screen display to the horizontal screen display, The display unit is further configured to display the application at the center or the right side of the terminal display screen.
  • the display unit is specifically configured to:
  • An application or function button adapted to all applications is displayed in the second display area.
  • an embodiment of the present invention provides a terminal, including:
  • the processor is used to call the program code stored in the memory, and performs the following operations:
  • horizontal and vertical screen direction configuration information sets the page to support only one-way display, modify the horizontal Vertical screen orientation configuration information and page display size of the application;
  • the display is instructed to display the application after the page display size is modified on the interface after the horizontal and vertical screen switching.
  • the interface after the horizontal and vertical screen switching includes a first display area and a second display area, where the processor is further configured to:
  • the display screen is instructed to display a preset function button or a preset application in the second display area.
  • the processor is further configured to:
  • the horizontal and vertical direction configuration information modified when the application is switched in the horizontal and vertical screens and the modified page display size are recorded by the memory to be called when the horizontal and vertical screen switching is performed again.
  • the processor when the application is switched from the vertical screen display to the horizontal screen display, the processor is specifically used to:
  • the page display width of the application horizontal screen display is the page display width when the application is displayed in the vertical screen, and the page display height of the application horizontal screen display is less than or equal to the page display width when the application vertical screen is displayed.
  • the processor when the application is switched from the vertical screen display to the horizontal screen display
  • the processor is specifically configured to:
  • the processor is specifically configured to:
  • the display screen is instructed to display an application or function button adapted to all applications in the second display area.
  • an embodiment of the present invention provides a computer storage medium, where the computer storage medium
  • the quality includes a set of program code for performing the method as described in any one of the first aspects of the embodiments of the present invention.
  • 1 is a schematic diagram of a horizontal screen display and a vertical screen display of a terminal
  • FIG. 2 is a schematic flowchart of a display method according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram showing changes in page size when the vertical screen display is switched to the horizontal screen display using the method described in FIG. 2;
  • FIG. 4 is a schematic diagram showing changes in page size when the horizontal screen display is switched to the vertical screen display using the method described in FIG. 2;
  • Figure 5 is a schematic diagram of an interface for display using the method of Figure 2;
  • Figure 6 is a schematic diagram of another interface for display using the method of Figure 2;
  • Figure 7 is a schematic diagram of still another interface for display using the method of Figure 2;
  • Figure 8 is a schematic diagram of still another interface for display using the method of Figure 2;
  • FIG. 9 is a schematic flowchart diagram of another display method according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of still another terminal according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart diagram of a display method according to an embodiment of the present invention.
  • the terminal may include, but is not limited to, a mobile phone, a tablet computer, and a palm that support screen rotation.
  • a mobile Internet device MID
  • laptop wearable device. The method includes:
  • S101 Receive an application startup instruction, and start a corresponding application according to the application startup instruction.
  • the steps S102 and S103 may have a strict sequence or may not be strictly defined.
  • the page here refers to the page generated by the currently displayed application.
  • the one-way display here means that the page generated by the application only supports horizontal screen display or only vertical screen display. Since the application sets the page to support only one-way display, it may only be configured with display materials such as pictures, icons, buttons, etc. in a single horizontal or vertical direction. When switching to another direction, the original limited single can be extracted. The material in the direction is modified to match the display requirements in the other direction.
  • the page display size of the modified application herein may include, but is not limited to, a modification to the overall size of the page, the size of the page display icon, the size of the page display button, etc., of course, it is also possible to modify only the overall size of the page and the specific icon or button size thereof. No changes can be made by reducing the number of buttons or icons displayed and sliding them with the page.
  • the interface before the horizontal and vertical screen switching can be understood as a desktop launcher, for example, the system standby interface of the mobile phone in the vertical screen state.
  • Applications such as WeChat, present the WeChat running interface on the screen of the mobile phone. At this time, the running interface of WeChat covers the entire screen, and the user cannot see the system standby interface.
  • the interface before and after the horizontal and vertical screen switching can also be understood as a desktop launcher.
  • the difference between the desktop launcher and the desktop launcher before the horizontal and vertical screen switching is that the display directions are inconsistent, and the display contents may be consistent or inconsistent.
  • the running interface of WeChat may not cover the entire screen, but only occupy a part of the screen. At this time, some desktop launchers may be seen.
  • step S101 in one possible implementation, the application is to obtain user input.
  • the startup instructions are then run.
  • the application is already running in the background, obtaining an instruction input by the user, and running the application according to the instruction in the current interface of the terminal, that is, adjusting the application from the background to the foreground.
  • the application in this embodiment may be a third-party application.
  • a third-party application For example, software developed for a certain device, such as a mobile phone, a wristband, and the like.
  • manufacturers have developed software or preset applications at the factory.
  • the software developed or preset by the manufacturer will be adaptively adjusted with the switching of the terminal horizontal and vertical screens.
  • third-party applications such as those published in APPLE STORE, or applications published in the Android market.
  • the developer of the third-party application When the developer of the third-party application publishes the APK of the application, it may set its horizontal and vertical screen display, for example, only when the mobile phone is in the horizontal screen state, and does not switch the display direction as the mobile phone switches to the vertical screen state.
  • the method described in the embodiments of the present invention can be applied to bring a higher visual experience to the user.
  • the solution of the embodiment of the present invention is applicable to all applications whose display directions are fixed regardless of whether the application is a third-party application. That is, if an application determines that the display information is displayed only in the horizontal screen direction or the vertical screen direction, the display direction of the application can be adjusted according to the horizontal and vertical screen switching of the mobile phone by adjusting the configuration information in the implementation.
  • step S102 after the system of the terminal is started, if the user receives an instruction to start an application and starts the corresponding application, the display attribute of the application may be read, and the application pair is obtained according to the display attribute.
  • the display attributes here include, but are not limited to, the horizontal and vertical orientation information of the page display, that is, the display direction of the page, and the page display size (usually filling the entire terminal display). If the horizontal and vertical screen direction configuration information of the application indicates that both the vertical screen display and the horizontal screen display are supported, and the screen automatic rotation function of the terminal is also turned on, the terminal can automatically switch the horizontal and vertical screen display of the application according to the sensing signal of the gravity sensor.
  • the application's horizontal and vertical screen orientation information indicates that it supports horizontal and vertical screen switching, it may set the page to only support vertical screen display or horizontal screen display; of course, it is also possible that the application does not have horizontal screen mode or vertical screen mode, and the page can only be used.
  • the horizontal and vertical screen switching can be performed using the method described in this embodiment.
  • the received horizontal and vertical screen switching command may be generated by the gravity sensor sensing the rotation of the terminal, or may be generated when the user manually sets the display direction.
  • step S104 since the terminal has acquired the horizontal and vertical screen direction configuration information displayed by the application on the page, the specific acquisition manner may be obtained by acquiring the page configuration file of the application or calling the direction code corresponding to the page, and then determining whether the application limits the page only. Support for vertical screen display or only horizontal screen display. If the application restricts the page to only support the vertical screen display or only the horizontal screen display, the restriction can be forcibly released, and the restriction is released by modifying the direction state value in the page configuration file or the direction code corresponding to the page.
  • the horizontal and vertical screen configuration information may be:
  • “landscape” means a horizontal screen display, and its corresponding state value is 0;
  • “portrait” means a vertical screen display with a corresponding status value of 1.
  • the display direction defined by the default is determined, and the defined display direction is modified by modifying the corresponding configuration information
  • the limitation can only support the horizontal display or only
  • the application that supports the vertical screen display is modified to select the direction by the system, that is, the state value is changed to -1, and the page display direction can be freely changed according to the rotation of the terminal, and the vertical screen display or the horizontal screen display can be performed. If the application itself does not restrict the page to only support single-directional display, the application can adaptively perform vertical screen display or horizontal screen display according to the selection of the terminal.
  • the terminal can configure the page display size of the application horizontal screen display according to the vertical screen display size.
  • FIG. 3 is a schematic diagram of page size change when the vertical screen display is switched to the horizontal screen display by using the method illustrated in FIG. 2 .
  • the page display width of the horizontal screen displayed by the application may be configured as the page display width when the application is displayed in the vertical screen, and the page display height displayed by the application horizontal screen is less than or equal to the page display width when the application is displayed in the vertical screen. .
  • the terminal can first read the height and width of the page when the vertical screen is displayed, and then calculate the size of the horizontal screen display according to the above principle.
  • the resolution of the relatively common high-definition display page is 1920*1080.
  • its display height is 1920 pixels, showing The width occupies 1080 pixels.
  • its display width still occupies 1080 pixels, and its display height can only occupy 1080 pixels or less than 1080 pixels.
  • a display height that occupies 1080 pixels.
  • the page display width displayed by the vertical screen of the application may be configured to be less than or equal to the page display height when the application is displayed in the horizontal screen, and the page display height displayed by the vertical screen of the application is configured to be the page display when the current application is displayed in the horizontal screen. width.
  • step S106 when the application is switched from the portrait display to the landscape display, the application may be displayed on the center or the right side of the terminal display. Since the common hand of most users is the right hand, the page displayed on the horizontal screen is displayed on the center or the right side of the terminal display screen, which conforms to the user's visual habits and the user's operating habits, and can be conveniently viewed and used by the user. The page displayed on the screen. When the application is switched from the horizontal screen display to the vertical screen display, the application can be displayed at the center or the bottom of the terminal display screen. Conducive to the user's one-handed operation.
  • step S106 when the display is performed by using the above size or position, it may be displayed on the display when the vertical screen display is switched to the horizontal screen display or when the horizontal screen display is switched to the vertical screen display. Leave a blank space, if you do not do any processing, it wastes the screen hardware resources, and the display effect is also poor. Therefore, the interface after the horizontal and vertical screen switching can be divided into a first display area and a second display area, and the application is displayed in the first display area; and the preset function is displayed in the second display area, that is, a blank space. Button or preset app.
  • an application or function button associated with the application may be displayed in the second display area; for example, for some instant communication applications, the user may need to communicate with other users to send some pictures or videos. Therefore, the camera application can be associated with the application and displayed in the second display area, and the user can conveniently click on the display page of the instant communication application. The icon of the machine application launches the camera app to shoot and directly send the captured photo or video. For another example, for some learning applications, such as a document reading application, the user may need to consult some materials at any time. In this case, the search engine search bar can be placed in the second display area, and the user can conveniently display the display page of the application.
  • the direction control button and the motion control button may be set in the second display area for the user to use, especially when the application is displayed in the center of the display screen, the direction control button is displayed on the left display of the left side of the display screen. In the area, the action control button is displayed in the first display area of the blank space on the right side.
  • some associated sharing buttons may also be displayed in the second display area for sharing the information currently viewed by the user, or some save button may be set for the user to save the currently viewed information.
  • an application or function button adapted to all applications is displayed in the second display area.
  • Such adapted applications or function buttons may include, but are not limited to, a clock, a weather plugin, a search bar, a virtual keyboard, and the like.
  • the displayed content may be preset by the terminal manufacturer or provided as an option for the user to select, or may be customized by the user, which is not limited by the embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an interface displayed by using the method illustrated in FIG. 2 ;
  • FIG. 6 is another schematic diagram of an interface displayed by using the method illustrated in FIG. 2 ;
  • 7 is another schematic diagram of an interface for displaying using the method described in FIG. 2;
  • FIG. 8 is another schematic diagram of an interface for displaying using the method described in FIG. 2;
  • FIG. 5 and 6 are schematic diagrams of the interface displayed on the horizontal screen.
  • the application display page is located in the first display area on the right side of the display, and the second display area on the left side of the display screen can display preset function buttons and/or preset applications.
  • the application display page is located in the first display area in the center of the display screen, and the preset application can be displayed in the second display area on the left side, and the preset function button is displayed in the second display area on the other side of the right side.
  • 7 and 8 are schematic diagrams of the interface displayed on the vertical screen. As shown in FIG.
  • the application display page is located in the first display area at the bottom of the display screen, and the second display area at the top of the display screen can display preset function buttons and/or preset applications.
  • the application display page is located in the first display area in the center of the display screen, and the preset application can be displayed in the second display area at the top end, and the preset function button is displayed in the second display area at the other end of the bottom.
  • the selection and display position of the preset function button or the preset application can be customized by the user.
  • the embodiment of the invention is not limited at all.
  • the horizontal and vertical screen switching display of the application that does not support the horizontal and vertical screen switching is realized, especially when the user uses the terminal of the larger screen, the horizontal screen display can be realized according to the user's demand, and the user is provided with a wider horizontal viewing area;
  • the vertical screen display can be realized according to the user's needs, which provides the user with the convenience of one-hand operation; thereby improving the display effect and user experience of the terminal, expanding the applicability and practicability of the terminal;
  • the switched second display area displays
  • FIG. 9 is a schematic flowchart diagram of another display method according to an embodiment of the present invention.
  • the steps of S901-S906 are the same as steps S201-S206 shown in FIG. 2, and are the same as step S206.
  • the method further includes:
  • step S807. Record the horizontal and vertical screen direction configuration information modified when the application is switched between the horizontal and vertical screens, and the modified page display size to be called when the horizontal and vertical screen switching is performed again.
  • step S907 after the terminal acquires the horizontal and vertical screen direction configuration information displayed by the application for the page and determines that the application setting page supports only the one-direction display, the application and its modified horizontal and vertical screen direction configuration information and the page may be The display size is recorded and saved, so that when the application needs to be switched between horizontal and vertical screens next time, the historical data can be directly called to perform horizontal and vertical screen switching, thereby improving the switching efficiency of the application display page switching with the horizontal and vertical screens.
  • FIG. 10 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal includes:
  • the receiving unit 100 is configured to receive a horizontal and vertical screen switching instruction
  • the reading unit 200 is configured to read the display attribute of the application, and obtain the horizontal and vertical screen direction configuration information displayed by the application on the page according to the display attribute;
  • the modifying unit 300 if the horizontal and vertical screen direction configuration information sets the page to support only one-way display, modifying the horizontal and vertical screen direction configuration information and the page display size of the application;
  • the switching unit 400 is configured to perform horizontal and vertical screen switching according to the horizontal and vertical screen switching instructions
  • the display unit 500 is configured to display the application after the page display size is modified on the interface after the horizontal and vertical screen switching.
  • the interface after the horizontal and vertical screen switching includes a first display area and a second display area
  • the display unit 500 is further configured to:
  • a preset function button or a preset application is displayed in the second display area.
  • the modifying unit 300 is specifically configured to:
  • the page display width of the application horizontal screen display is the page display width when the application is displayed in the vertical screen, and the page display height of the application horizontal screen display is less than or equal to the page display width when the application vertical screen is displayed.
  • the display unit 500 is further configured to display the application in the center or the right side of the terminal display screen.
  • the display unit 500 is further configured to:
  • An application or function button adapted to all applications is displayed in the second display area.
  • FIG. 11 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
  • the terminal further includes:
  • the recording unit 600 is configured to record the horizontal and vertical screen direction configuration information modified when the application is switched in the horizontal and vertical screens and the modified page display size to be called by the display unit 600 when the horizontal and vertical screen switching is performed again.
  • the foregoing receiving unit 100, the reading unit 200, the modifying unit 300, the switching unit 400, the display unit 500, and the recording unit 600 may exist independently or may be integrated, and the receiving unit 100 and the reading in the above terminal embodiment
  • the taking unit 200, the modifying unit 300, the switching unit 400, the display unit 500 or the recording unit 600 may be separately set in hardware form independently of the processor of the terminal, and may be in the form of a microprocessor;
  • the processor embedded in the terminal may also be stored in the memory of the terminal in software, so that the processor of the terminal invokes the above receiving unit 100, the reading unit 200, the modifying unit 300, the switching unit 400, the display unit 500, and
  • the recording unit 600 corresponds to the operation, and the display unit 500 may be the display screen of the terminal, and the receiving unit 100 may be the terminal interface circuit.
  • the modifying unit 300 may be a processor of the terminal, and the receiving unit 100, the reading unit 200, the switching unit 400, the display unit 500, and The function of the recording unit 600 may be embedded in the processor, or may be set separately from the processor, or may be stored in the memory in the form of software, and the function is called by the processor.
  • the above processor may be a central processing unit (CPU), a microprocessor, a single chip microcomputer, or the like.
  • the display unit 500 can be used as a display screen of the terminal, connected to the processor of the terminal through the interface circuit, and displayed according to the instruction of the processor.
  • the terminal includes:
  • the processor 1101, the memory 1102, the gravity sensor 1103, the display screen 1104, the interface circuit 1105, and the bus 1106, and the processor 1101, the memory 1102, the gravity sensor 1103, the display screen 1104, and the interface circuit 1105 are connected through the bus 1106. And completing the communication with each other, wherein the memory 1102 is configured to store a set of program codes, and the processor 1101 is configured to invoke the program code stored in the memory, and perform the following operations:
  • the horizontal and vertical screen direction configuration information sets the page to support only one-way display, modifying the horizontal and vertical screen direction configuration information and the page display size of the application;
  • the display screen 1104 is instructed to display the application after the page display size is modified on the interface after the horizontal and vertical screen switching.
  • the interface after the horizontal and vertical screen switching includes a first display area and a second display area
  • the processor 1101 is further configured to:
  • the display screen 1104 is instructed to display a preset function button or a preset application in the second display area.
  • processor 1101 is further configured to:
  • the horizontal and vertical direction configuration information modified when the application is switched in the horizontal and vertical screens and the modified page display size are recorded by the memory 1102 to be called when the horizontal and vertical screen switching is performed again.
  • the processor 1101 when the application is switched from a vertical screen display to a horizontal screen display, the processor 1101 is specifically configured to:
  • the page display width of the application horizontal screen display is the page display width when the application is displayed in the vertical screen, and the page display height of the application horizontal screen display is less than or equal to the page display width when the application vertical screen is displayed.
  • the processor 1101 when the application is switched from a vertical screen display to a horizontal screen display, the processor 1101 is specifically configured to:
  • the display screen 1104 is instructed to display the application in the center or right side of the terminal display 1104.
  • the processor 1101 is specifically configured to:
  • the display screen 1104 is instructed to display an application or function button that is adapted to all applications in the second display area.
  • the processor 1101 herein may be a processor or a collective name of multiple processing elements.
  • the processor may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.
  • CPU Central Processing Unit
  • ASIC Application Specific Integrated Circuit
  • DSP digital signal processor
  • FPGA Field Programmable Gate Array
  • the memory 1102 can be a storage device, or a collective name of a plurality of storage elements, and can be used to store executable program code or parameters, data, and the like required for operation of the access network device.
  • the memory 1103 may include random access memory (RAM), and may also include non-volatile memory such as a magnetic disk memory, a flash memory, or the like.
  • the bus 1106 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • EISA Extended Industry Standard Architecture
  • the bus 11054 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 5, but it does not mean that there is only one bus or one type of bus.
  • the present invention has the following advantages:
  • the modification is performed.
  • the horizontal and vertical screen direction configuration information and the page display size of the application are performed, and the horizontal and vertical screen switching is performed according to the horizontal and vertical screen switching instructions; and the application after the page display size is modified is displayed on the interface after the horizontal and vertical screen switching, thereby realizing
  • the horizontal and vertical screen switching display of the application that does not support the horizontal and vertical screen switching, especially when the user uses the terminal of the larger screen, can realize the horizontal screen display according to the user's needs, providing the user with a wider horizontal viewing field;
  • the vertical screen display can be realized according to the user's needs, providing the user with the convenience of one-hand operation; thereby improving the display effect and user experience of the terminal, expanding the applicability and practicability of the terminal; and after switching between the horizontal and vertical screens
  • the second display area displays a preset
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. Including the steps of the above method embodiments; and the foregoing storage
  • the medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Abstract

一种显示的方法及终端,所述方法包括:接收横竖屏切换指令(S202,S902);读取当前显示的应用的显示属性,根据所述显示属性获取所述应用对页面显示的横竖屏方向配置信息(S203,S903);若所述横竖屏方向配置信息设定了页面仅支持单方向显示,则修改所述横竖屏方向配置信息以及所述应用的页面显示尺寸(S204,S904);根据所述横竖屏切换指令进行横竖屏切换(S205,S905);在横竖屏切换后的界面上显示修改了页面显示尺寸后的所述应用(S206,S906)。上述方法可提升终端显示效果和用户体验。

Description

一种显示的方法及终端 技术领域
本发明涉及通信技术领域,尤其涉及一种显示的方法及终端。
背景技术
随着终端如手机、平板等的智能化发展,可为人们的生活、工作、学习及娱乐提供非常大的帮助。由于终端显示屏的高度和宽度一般不同,因此终端的显示方向通常有会横屏和竖屏两种显示方向,如图1所示,当终端显示的横向宽度小于竖直高度时为竖屏方向,当终端显示的横向宽度大于竖直高度时为横屏方向。如果应用支持横竖屏旋转,则当终端旋转时应用也会相应改变显示方向。如果应用有专门的横屏或竖屏布局、图片等资源,则在横屏时会优先加载横屏资源,竖屏时会优先加载竖屏资源。如果应用限制了只能竖屏显示,则当终端旋转成横屏显示时,应用显示的方向依旧为竖屏,不会随终端的旋转而改变显示方向,同样地,如果应用限制了只能横屏显示,则当终端旋转成竖屏显示时,应用显示的方向依旧为横屏,不会随终端的旋转而改变显示方向。
由于终端厂商及终端配置的多样化,目前很多第三方应用并未提供应用的横竖屏可切换显示的版本,也没有任何一个手机或平板的厂商为终端提供强制的横竖屏切换模式。导致用户无法根据自己的需求灵活地进行横竖屏切换以方便地使用这些应用,影响了终端的显示效果和用户体验。
发明内容
本发明实施例所要解决的技术问题在于,提供一种显示的方法及终端。以解决由于应用不支持横竖屏切换导致终端显示效果和用户体验较差的问题。
第一方面,本发明实施例提供了一种显示的方法,包括:
接收横竖屏切换指令;
读取当前显示的应用的显示属性,根据所述显示属性获取所述应用对页面显示的横竖屏方向配置信息;
若所述横竖屏方向配置信息设定了页面仅支持单方向显示,则修改所述横竖屏方向配置信息以及所述应用的页面显示尺寸;
根据所述横竖屏切换指令进行横竖屏切换;
在横竖屏切换后的界面上显示修改了页面显示尺寸后的所述应用。
通过读取应用的显示属性并获取其对页面显示的横竖屏方向配置信息,当接收到横竖屏切换指令时,若所述横竖屏方向配置信息设定了页面仅支持单方向显示,则修改所述横竖屏方向配置信息以及所述应用的页面显示尺寸,并根据所述横竖屏切换指令进行横竖屏切换;在横竖屏切换后的界面上显示修改了页面显示尺寸后的所述应用,从而实现了不支持横竖屏切换的应用的横竖屏切换显示,尤其在用户使用较大屏幕的终端时,可根据用户的需求实现横屏显示,为用户提供更广阔的横向视域;在用户不方便双手操作时,可根据用户的需求实现竖屏显示,为用户提供单手操作的便利;从而提高了终端的显示效果和用户体验,扩展了终端的适用性和实用性。
结合第一方面,在第一方面第一种可能的实现方式中,还包括:
所述横竖屏切换后的界面包括第一显示区域和第二显示区域,所述方法还包括:
在所述第一显示区域显示所述应用;
在所述第二显示区域显示预设功能按钮或预设应用。
在横竖屏切换后的第二显示区域显示预设功能按钮或预设应用,可以充分利用终端的屏幕硬件资源,为切换后的显示页面提供更多的功能,进一步方便了用户的使用,也就进一步提高了终端的适用性和实用性。
结合第一方面或结合第一方面第一种可能的实现方式,在第一方面第二种可能的实现方式中,所述方法还包括:
记录所述应用横竖屏切换时修改的横竖屏方向配置信息以及修改的页面显示尺寸以便再次进行横竖屏切换时调用。
通过记录修改后的横竖屏方向配置信息以及修改的页面显示尺寸,在终端再次进行横竖屏切换时可直接调用,可以避免每次都需要修改一次的低效处理,提高了横竖屏切换的响应速度。
结合第一方面,或结合第一方面第一或第二种可能的实现方式,在第一方面第三种可能的实现方式中,当所述应用由竖屏显示切换为横屏显示时,修改所述应用的页面显示尺寸,包括:
配置所述应用横屏显示的页面显示宽度为所述应用竖屏显示时的页面显 示宽度,配置所述应用横屏显示的页面显示高度小于或等于所述应用竖屏显示时的页面显示宽度。
通过这样的尺寸配置,可以确保页面显示的精度不发生变化,不会发生页面变粗糙变模糊导致用户体验变差的问题。
结合第一方面,或结合第一方面第一至第三种任一可能的实现方式,在第一方面第四种可能的实现方式中,当所述应用由竖屏显示切换为横屏显示时,将所述应用显示在终端显示屏的中央或右侧。
由于大多数用户的常用手为右手,因此将横屏显示的页面显示在终端显示屏的中央或右侧,既符合用户的视觉习惯,也符合用户的操作习惯,可方便用户地查看和使用横屏显示的页面。
结合第一方面第一至第四种任一可能的实现方式,在第一方面第五四种可能的实现方式中,所述在所述第二显示区域显示预设功能按钮或预设应用,包括:
在所述第二显示区域显示与所述应用相关联的应用或功能按钮;或者
在所述第二显示区域显示与所有应用适配的应用或功能按钮。
在横竖屏切换后的第二显示区域中显示与应用相关联的应用或功能按钮,可以完善应用的功能,利于用户更加方便的使用当前应用;在横竖屏切换后的第二显示区域中显示与所有应用适配应用或功能按钮,可避免浪费屏幕硬件资源,丰富屏幕显示的页面功能。
第二方面,本发明实施例提供了一种终端,包括:
接收单元,用于接收横竖屏切换指令;
读取单元,用于读取当前显示的应用的显示属性,根据所述显示属性获取所述应用对页面显示的横竖屏方向配置信息;
修改单元,若所述横竖屏方向配置信息设定了页面仅支持单方向显示,则修改所述横竖屏方向配置信息以及所述应用的页面显示尺寸;
切换单元,用于根据所述横竖屏切换指令进行横竖屏切换;
显示单元,用于在横竖屏切换后的界面上显示修改了页面显示尺寸后的所述应用。
结合第二方面,在第二方面第一种可能的实现方式中,所述横竖屏切换后 的界面包括第一显示区域和第二显示区域,所述显示单元还用于:
在所述第一显示区域显示所述应用;
在所述第二显示区域显示预设功能按钮或预设应用。
结合第二方面或结合第二方面第一种可能的实现方式,在第二方面第二种可能的实现方式中,所述终端还包括:
记录单元,用于记录所述应用横竖屏切换时修改的横竖屏方向配置信息以及修改的页面显示尺寸以便再次进行横竖屏切换时所述显示单元调用。
结合第二方面,或结合第二方面第一或第二种可能的实现方式,在第二方面第三种可能的实现方式中,当所述应用由竖屏显示切换为横屏显示时,所述修改单元具体用于:
配置所述应用横屏显示的页面显示宽度为所述应用竖屏显示时的页面显示宽度,配置所述应用横屏显示的页面显示高度小于或等于所述应用竖屏显示时的页面显示宽度。
结合第二方面,或结合二方面第一至第三种任一可能的实现方式,在第二方面第四种可能的实现方式中,当所述应用由竖屏显示切换为横屏显示时,所述显示单元还用于将所述应用显示在终端显示屏的中央或右侧。
结合二方面第一至第四种任一可能的实现方式,在第二方面第五种可能的实现方式中,所述显示单元具体用于:
在所述第二显示区域显示与所述应用相关联的应用或功能按钮;或者
在所述第二显示区域显示与所有应用适配的应用或功能按钮。
第三方面,本发明实施例提供了一种终端,包括:
处理器、存储器、重力感应器、显示屏、接口电路和总线,所述处理器、存储器、重力感应器、显示屏和接口电路通过所述总线连接并完成相互间的通信,其中,所述存储器用于存储一组程序代码,所述处理器用于调用所述存储器中存储的程序代码,执行以下操作:
通过所述重力感应器或接口电路接收横竖屏切换指令;
读取当前显示的应用的显示属性,根据所述显示属性获取所述应用对页面显示的横竖屏方向配置信息;
若所述横竖屏方向配置信息设定了页面仅支持单方向显示,则修改所述横 竖屏方向配置信息以及所述应用的页面显示尺寸;
根据所述横竖屏切换指令进行横竖屏切换;
指示所述显示屏在横竖屏切换后的界面上显示修改了页面显示尺寸后的所述应用。
结合第三方面,在第三方面第一种可能的实现方式中,所述横竖屏切换后的界面包括第一显示区域和第二显示区域,所述处理器还用于:
指示所述显示屏在所述第一显示区域显示所述应用;
指示所述显示屏在所述第二显示区域显示预设功能按钮或预设应用。
结合第三方面或结合第三方面第一种可能的实现方式,在第三方面第二种可能的实现方式中,所述处理器还用于:
通过所述存储器记录所述应用横竖屏切换时修改的横竖屏方向配置信息以及修改的页面显示尺寸以便再次进行横竖屏切换时调用。
结合第三方面,或结合第三方面第一或第二种可能的实现方式,在第三方面第三种可能的实现方式中,当所述应用由竖屏显示切换为横屏显示时,所述处理器具体用于:
配置所述应用横屏显示的页面显示宽度为所述应用竖屏显示时的页面显示宽度,配置所述应用横屏显示的页面显示高度小于或等于所述应用竖屏显示时的页面显示宽度。
结合第三方面,或结合第三方面第一至第三种任一可能的实现方式,在第三方面第四种可能的实现方式中,当所述应用由竖屏显示切换为横屏显示时,所述处理器具体用于:
指示所述显示屏将所述应用显示在终端显示屏的中央或右侧。
结合三方面第一至第四种任一可能的实现方式,在第三方面第五种可能的实现方式中,所述处理器具体用于:
指示所述显示屏在所述第二显示区域显示与所述应用相关联的应用或功能按钮;或者
指示所述显示屏在所述第二显示区域显示与所有应用适配的应用或功能按钮。
第四方面,本发明实施例提供了一种计算机存储介质,所述计算机存储介 质包括一组程序代码,用于执行如本发明实施例第一方面任一实现方式所述的方法。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为终端横屏显示和竖屏显示的示意图;
图2为本发明实施例提供的一种显示的方法的流程示意图;
图3为使用图2所述方法将竖屏显示切换至横屏显示时的页面尺寸变化示意图;
图4为使用图2所述方法将横屏显示切换至竖屏显示时的页面尺寸变化示意图;
图5为使用图2所述方法进行显示的一种界面示意图;
图6为使用图2所述方法进行显示的另一种界面示意图;
图7为使用图2所述方法进行显示的又一种界面示意图;
图8为使用图2所述方法进行显示的又一种界面示意图;
图9为本发明实施例提供的另一种显示的方法的流程示意图;
图10为本发明实施例提供的一种终端的组成示意图;
图11为本发明实施例提供的另一种终端的组成示意图;
图12为本发明实施例提供的又一种终端的组成示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
请参考图2,为本发明实施例提供的一种显示的方法的流程示意图。在本实施例中,所述的终端可以包括但不限于支持屏幕旋转的手机、平板电脑、掌 上电脑、移动互联网设备(Mobile Internet Device,MID)、笔记本电脑或穿戴式设备。所述方法包括:
S101,接收应用启动指令,根据所述应用启动指令启动相应的应用。
S102,接收横竖屏切换指令。
S103,读取当前显示的应用的显示属性,根据所述显示属性获取所述应用对页面显示的横竖屏方向配置信息。
其中,步骤S102和S103可以有严格的先后顺序,也可以没有严格的顺序限定。
S104,若所述横竖屏方向配置信息设定了页面仅支持单方向显示,则修改所述横竖屏方向配置信息以及所述应用的页面显示尺寸。
此处的页面指的是当前显示的应用所生成的页面。此处的单方向显示指的是该应用所生成的页面仅支持横屏显示或仅支持竖屏显示。由于应用设定了页面仅支持单方向显示,因此其可能仅配置了横或竖单个方向上的显示素材如图片、图标、按钮等,当切换到另一个方向上时,可以提取原来限定的单个方向上的素材进行修改使之符合另一个方向上的显示要求。此处的修改应用的页面显示尺寸可以包括但不限于对页面整体尺寸、页面显示图标尺寸、页面显示按钮尺寸等的修改,当然,也可以仅修改页面整体尺寸而对其中具体的图标或按钮尺寸不作修改,通过减少按钮或图标的显示数量并配合页面滑动来查看即可。
S105,根据所述横竖屏切换指令进行横竖屏切换。
S106,在横竖屏切换后的界面上显示修改了页面显示尺寸后的所述应用。
需要说明的是,对于横竖屏切换前的界面和横竖屏切换后的界面,横竖屏切换前的界面可理解为桌面launcher,例如手机在竖屏状态下的系统待机界面,此时若运行某一应用,如微信,则在手机的屏幕上呈现微信的运行界面,此时微信的运行界面铺满整个屏幕,用户无法看到系统待机界面。横竖屏切换后前的界面也可理解为桌面launcher,该桌面launcher与横竖屏切换前的桌面launcher的区别在于显示方向不一致,显示内容可以一致也可以不一致。在横竖屏切换后,微信的运行界面可能不会铺满整个屏幕,而是只占据屏幕的一部分,此时可能会看到部分桌面launcher。
具体地,在步骤S101中,在一种可能的实现中,该应用是获取用户输入 的启动指令,进而运行的。
在另一种可能的实现中,该应用已经在后台运行,获取用户输入的指令,根据该指令在终端的当前界面下运行该应用,即,将应用从后台调整至前台运行。
在又一种可能的实现中,本实施例中的应用可以为第三方应用。例如,针对某种设备开发的软件,如手机、手环等设备。一般而言,生产商都开发有软件或在出厂时预置应用,此时生产商开发或预置的软件会自适应的随终端横竖屏的切换而调整。对于有众多的编程爱好者或者组织专门针对某类设备开发出来的应用软件,是为第三方应用,如在APPLE STORE中发布的应用,或在安卓市场中发布的应用。该第三方应用的开发者在发布应用的APK时,可能会设定其横竖屏显示,例如只显示为手机在横屏状态下的情形,不随着手机切换为竖屏状态而切换显示方向等。对于这类第三方应用,可适用本发明实施例所述的方法,给用户带来更高的视觉体验。
进一步地,本发明实施例的方案适用于所有显示方向固定的应用,而不论该应用是否为第三方应用。即,如果一个应用,其配置信息确定了其仅按照横屏方向显示或竖屏方向显示,则通过本实施中调整其配置信息,可实现该应用的显示方向随手机的横竖屏切换而调整。
在步骤S102中,当终端的系统启动之后,若接收到用户开启某个应用的指令并启动相应的应用之后,就可以读取所述应用的显示属性,根据所述显示属性获取所述应用对页面显示的横竖屏方向配置信息。此处的显示属性包括但不限于页面显示的横竖屏方向配置信息即页面的显示方向,页面显示尺寸(通常为填充整个终端显示屏)。若应用的横竖屏方向配置信息表征其既支持竖屏显示也支持横屏显示,且终端的屏幕自动旋转功能也开启,则终端可以根据重力感应器的感应信号自动切换应用的横竖屏显示。若应用的横竖屏方向配置信息表征其支持横竖屏切换但是其可能设定了页面仅支持竖屏显示或横屏显示;当然,也可能应用并没有横屏模式或竖屏模式,其页面仅能支持单向显示,则可以使用本实施例所述的方法进行横竖屏切换。
在步骤S103中,接收到的横竖屏切换指令可以是由重力感应器感应到终端旋转而生成,也可以是由用户手动设置显示方向时生成。
在步骤S104中,由于终端已经获取了应用对页面显示的横竖屏方向配置信息,具体的获取方式可以通过应用的页面配置文件获取或者调用页面对应的方向代码获取,然后判断应用是否限制了页面仅支持竖屏显示或仅支持横屏显示。若应用限制了页面仅支持竖屏显示或仅支持横屏显示,则可以强制解除限制,通过修改页面配置文件或页面对应的方向代码中的方向状态值来进行限制解除。
例如,在安卓系统的页面配置文件中,其横竖屏配置信息可能为:
ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED,//-1;或
ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE,//0;或
ActivityInfo.SCREEN_ORIENTATION_PORTRAIT,//1;
其中,"unspecified"表示方向为默认值,由系统来选择方向,其对应的状态值为-1;
"landscape"表示横屏显示,其对应的状态值为0;
"portrait"表示竖屏显示,其对应的状态值为1。
因此,当终端获取到应用的横竖屏方向配置信息时,便可以确定其默认限定的显示方向,并通过修改对应的配置信息来修改限定的显示方向,如可以将限定仅支持横屏显示或仅支持竖屏显示的应用修改为由系统来选择方向,即状态值修改为-1,便可以根据终端的旋转自由变换页面显示方向,既可以进行竖屏显示,也可以进行横屏显示。而若应用本身并没有限制页面仅支持单方向显示,则应用可以根据终端的选择而自适应的进行竖屏显示或横屏显示。
当修改了横竖屏方向配置信息之后,还需要修改应用的页面显示尺寸以确保显示效果。例如当终端由竖屏旋转至横屏时,终端可以根据其竖屏显示尺寸来配置所述应用横屏显示的页面显示尺寸。可选地,请参照图3,为使用图2所述方法将竖屏显示切换至横屏显示时的页面尺寸变化示意图。可以配置所述应用横屏显示的页面显示宽度为所述应用竖屏显示时的页面显示宽度,配置所述应用横屏显示的页面显示高度小于或等于所述应用竖屏显示时的页面显示宽度。终端可以先读取竖屏显示时页面的高度和宽度,然后依照上述的原则计算横屏显示的尺寸,例如,以分辨率来说,对于比较常见的高清显示页面,其分辨率为1920*1080,因此在竖屏显示时,其显示高度占用1920像素,显示 宽度占用1080像素,当切换到横屏时,其显示宽度仍然占用1080像素,而其显示高度只能占用1080像素或低于1080像素,可选地,为了充满显示屏横屏时的屏幕,一般采用占用1080像素的显示高度。这样,可以确保页面显示的精度不发生变化,不会发生页面变粗糙变模糊导致用户体验变差的问题。而由于横屏显示之后导致竖直方向显示的内容变少,用户可上下滑动屏幕进行查看,对于可能固设于页面上的导航栏或通知栏等,仍然可以在横屏显示时固设在页面的顶部或底部。当然,若为了确保竖屏显示时的内容在切换到横屏显示之后完全不变,也可以采用比例缩小的方式将原来在竖屏显示的内容完全显示在横屏中。类似地,对于横屏显示切换到竖屏显示时,请参照图4,为使用图2所述方法将横屏显示切换至竖屏显示时的页面尺寸变化示意图。可以配置所述应用竖屏显示的页面显示宽度小于或等于所述应用横屏显示时的页面显示高度,配置所述应用竖屏显示的页面显示高度为所述当前应用横屏显示时的页面显示宽度。
在步骤S106中,可选地,当所述应用由竖屏显示切换为横屏显示时,可以将所述应用显示在终端显示屏的中央或右侧。由于大多数用户的常用手为右手,因此将横屏显示的页面显示在终端显示屏的中央或右侧,既符合用户的视觉习惯,也符合用户的操作习惯,可方便用户地查看和使用横屏显示的页面。而当所述应用由横屏显示切换为竖屏显示时,可以将所述应用显示在终端显示屏的中央或底部。利于用户的单手操作。
在步骤S106中,作为一种可能的实现方式,当采用以上的尺寸或位置进行显示时,由竖屏显示切换到横屏显示或者由横屏显示切换到竖屏显示时均可能会在显示屏上留下空白,若不作任何处理,既浪费了屏幕硬件资源,显示效果也较差。因此,可以将所述横竖屏切换后的界面分成第一显示区域和第二显示区域,并在所述第一显示区域显示所述应用;在所述第二显示区域即空白处显示预设功能按钮或预设应用。
可选地,可以在所述第二显示区域显示与所述应用相关联的应用或功能按钮;例如,对于一些即时通信类应用,用户可能需要与其他用户进行信息交流,发送一些图片或视频,因此可以将相机应用与该类应用进行关联,将其显示在第二显示区域,用户可以非常方便的在即时通信类应用的显示页面旁边点击相 机应用的图标来启动相机应用进行拍摄并直接发送拍摄的相片或视频。又例如,对于一些学习类应用,如文档阅读应用,用户可能需要随时查阅一些资料,这时候可以将搜索引擎的搜索栏置于第二显示区域,用户可以非常方便的在该类应用的显示页面旁边在搜索栏输入关键词进行搜索并查看搜索结果;又例如,对于一些游戏类应用,用户需要控制虚拟对象的方向及动作,若显示在原来的显示页面中,将占用第一显示区域的空间,此时,则可以将方向控制按钮和动作控制按钮设置在第二显示区域供用户使用,尤其可以当应用显示在显示屏中央时,将方向控制按钮显示在显示屏左侧空白的第一显示区域,将动作控制按钮显示在右侧空白的第一显示区域。当然,还可以在第二显示区域中显示一些相关联的分享按钮用于分享用户当前查看的信息,或者设置一些保存按钮供用户保存当前查看的信息。
或者,在所述第二显示区域显示与所有应用适配的应用或功能按钮。此类适配的应用或功能按钮可以包括但不限于:时钟、天气插件、搜索栏、虚拟键盘等。显示的内容可以由终端厂商预先设定或提供可选项供用户选择,或者也可以由用户自定义,本发明实施例不作任何限定。
显示的界面示意图可参考图5至图8,其中,图5为使用图2所述方法进行显示的一种界面示意图;图6为使用图2所述方法进行显示的另一种界面示意图;图7为使用图2所述方法进行显示的又一种界面示意图;图8为使用图2所述方法进行显示的又一种界面示意图;
其中,图5和图6为横屏显示的界面示意图。如图5所示,应用显示页面位于显示屏右侧的第一显示区域中,而在显示屏左侧的第二显示区域,可显示预设功能按钮和/或预设应用。而如图6所示,应用显示页面位于显示屏中央的第一显示区域,可以在左边一侧的第二显示区域显示预设应用,在右边另一侧的第二显示区域显示预设功能按钮。图7和图8为竖屏显示的界面示意图。如图7所示,应用显示页面位于显示屏底部的第一显示区域中,而在显示屏顶部的第二显示区域,可显示预设功能按钮和/或预设应用。而如图8所示,应用显示页面位于显示屏中央的第一显示区域,可以在顶部一端的第二显示区域显示预设应用,在底部另一端的第二显示区域显示预设功能按钮。在图5-图8所示的界面中,预设功能按钮或预设应用的选择和显示位置可以由用户自定义, 本发明实施例不作任何限定。
通过读取当前显示的应用的显示属性并获取其对页面显示的横竖屏方向配置信息,当接收到横竖屏切换指令时,若所述横竖屏方向配置信息设定了页面仅支持单方向显示,则修改所述横竖屏方向配置信息以及所述应用的页面显示尺寸,并根据所述横竖屏切换指令进行横竖屏切换;在横竖屏切换后的界面上显示修改了页面显示尺寸后的所述应用,从而实现了不支持横竖屏切换的应用的横竖屏切换显示,尤其在用户使用较大屏幕的终端时,可根据用户的需求实现横屏显示,为用户提供更广阔的横向视域;在用户不方便双手操作时,可根据用户的需求实现竖屏显示,为用户提供单手操作的便利;从而提高了终端的显示效果和用户体验,扩展了终端的适用性和实用性;且在横竖屏切换后的第二显示区域显示预设功能按钮或预设应用,可以充分利用终端的屏幕硬件资源,为切换后的显示页面提供更多的功能,进一步方便了用户的使用,也就进一步提高了终端的适用性和实用性。
请参考图9,为本发明实施例提供的另一种显示的方法的流程示意图,在本实施例中,S901-S906的步骤与图2所示的步骤S201-S206相同,在与步骤S206相同的步骤S906之后,所述方法还包括:
S807,记录所述应用横竖屏切换时修改的横竖屏方向配置信息以及修改的页面显示尺寸以便再次进行横竖屏切换时调用。在步骤S907中,当终端获取到应用对页面显示的横竖屏方向配置信息并确定应用设定了页面仅支持单方向显示之后,便可以对该应用以及其修改后的横竖屏方向配置信息以及页面显示尺寸进行记录和保存,这样,当下次再需要对该应用进行横竖屏切换时,便可以直接调用历史数据进行横竖屏切换,提高了应用显示页面随横竖屏切换的切换效率。
在本实施例中,通过加入记录应用修改后的横竖屏方向配置信息以及页面显示尺寸,并在终端进行横竖屏切换时直接调用记录的历史数据,可以避免每次都需要修改一次的低效处理,提高了横竖屏切换的响应速度。
请参考图10,为本发明实施例提供的一种终端的组成示意图,在本实施 例中,所述终端包括:
接收单元100,用于接收横竖屏切换指令;
读取单元200,用于读取所述应用的显示属性,根据所述显示属性获取所述应用对页面显示的横竖屏方向配置信息;
修改单元300,若所述横竖屏方向配置信息设定了页面仅支持单方向显示,则修改所述横竖屏方向配置信息以及所述应用的页面显示尺寸;
切换单元400,用于根据所述横竖屏切换指令进行横竖屏切换;
显示单元500,用于在横竖屏切换后的界面上显示修改了页面显示尺寸后的所述应用。
可选地,所述横竖屏切换后的界面包括第一显示区域和第二显示区域,所述显示单元500还用于:
在所述第一显示区域显示所述应用;
在所述第二显示区域显示预设功能按钮或预设应用。
可选地,当所述应用由竖屏显示切换为横屏显示时,所述修改单元300具体用于:
配置所述应用横屏显示的页面显示宽度为所述应用竖屏显示时的页面显示宽度,配置所述应用横屏显示的页面显示高度小于或等于所述应用竖屏显示时的页面显示宽度。
可选地,当所述应用由竖屏显示切换为横屏显示时,所述显示单元500还用于将所述应用显示在终端显示屏的中央或右侧。
可选地,所述显示单元500还具体用于:
在所述第二显示区域显示与所述应用相关联的应用或功能按钮;或者
在所述第二显示区域显示与所有应用适配的应用或功能按钮。
请参考图11,为本发明实施例提供的另一种终端的组成示意图,在本发明实施例中,与图10所示实施例相比,所述终端还包括:
记录单元600,用于记录所述应用横竖屏切换时修改的横竖屏方向配置信息以及修改的页面显示尺寸以便再次进行横竖屏切换时所述显示单元600调用。
需要说明的是,以上接收单元100、读取单元200、修改单元300、切换单元400、显示单元500及记录单元600可以独立存在,也可以集成设置,且以上终端实施例中接收单元100、读取单元200、修改单元300、切换单元400、显示单元500或记录单元600可以以硬件的形式独立于终端的处理器单独设置,且设置形式可以是微处理器的形式;也可以以硬件形式内嵌于终端的处理器中,还可以以软件形式存储于终端的存储器中,以便于终端的处理器调用执行以上接收单元100、读取单元200、修改单元300、切换单元400、显示单元500及记录单元600对应的操作,而显示单元500可以是终端的显示屏,接收单元100可以是终端接口电路。
例如,在本发明终端的第二实施例(图11所示的实施例)中,修改单元300可以为终端的处理器,而接收单元100、读取单元200、切换单元400、显示单元500及记录单元600的功能可以内嵌于该处理器中,也可以独立于处理器单独设置,也可以以软件的形式存储于存储器中,由处理器调用实现其功能。以上处理器可以为中央处理单元(CPU)、微处理器、单片机等。而显示单元500可以作为终端的显示屏,通过接口电路与终端的处理器连接,根据处理器的指示进行显示。
请参照图12,为本发明实施例提供的又一种终端的组成示意图,在本发明实施例中,所述终端包括:
处理器1101、存储器1102、重力感应器1103、显示屏1104、接口电路1105和总线1106,所述处理器1101、存储器1102、重力感应器1103、显示屏1104和接口电路1105通过所述总线1106连接并完成相互间的通信,其中,所述存储器1102用于存储一组程序代码,所述处理器1101用于调用所述存储器中存储的程序代码,执行以下操作:
通过所述重力感应器1103或接口电路1105接收横竖屏切换指令;
读取当前显示的应用的显示属性,根据所述显示属性获取所述应用对页面显示的横竖屏方向配置信息;
若所述横竖屏方向配置信息设定了页面仅支持单方向显示,则修改所述横竖屏方向配置信息以及所述应用的页面显示尺寸;
根据所述横竖屏切换指令进行横竖屏切换;
指示所述显示屏1104在横竖屏切换后的界面上显示修改了页面显示尺寸后的所述应用。
可选地,所述横竖屏切换后的界面包括第一显示区域和第二显示区域,所述处理器1101还用于:
指示所述显示屏1104在所述第一显示区域显示所述应用;
指示所述显示屏1104在所述第二显示区域显示预设功能按钮或预设应用。
可选地,所述处理器1101还用于:
通过所述存储器1102记录所述应用横竖屏切换时修改的横竖屏方向配置信息以及修改的页面显示尺寸以便再次进行横竖屏切换时调用。
可选地,当所述应用由竖屏显示切换为横屏显示时,所述处理器1101具体用于:
配置所述应用横屏显示的页面显示宽度为所述应用竖屏显示时的页面显示宽度,配置所述应用横屏显示的页面显示高度小于或等于所述应用竖屏显示时的页面显示宽度。
可选地,所述应用由竖屏显示切换为横屏显示时,所述处理器1101具体用于:
指示所述显示屏1104将所述应用显示在终端显示屏1104的中央或右侧。
可选地,所述处理器1101具体用于:
指示所述显示屏1104在所述第二显示区域显示与所述应用相关联的应用或功能按钮;或者
指示所述显示屏1104在所述第二显示区域显示与所有应用适配的应用或功能按钮。
需要说明的是,这里的处理器1101可以是一个处理器,也可以是多个处理元件的统称。例如,该处理器可以是中央处理器(Central Processing Unit,CPU),也可以是特定集成电路(Application Specific Integrated Circuit,ASIC),或者是被配置成实施本发明实施例的一个或多个集成电路,例如:一个或多个微处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array,FPGA)。
存储器1102可以是一个存储装置,也可以是多个存储元件的统称,且用于存储可执行程序代码或接入网设备运行所需要参数、数据等。且存储器1103可以包括随机存储器(RAM),也可以包括非易失性存储器(non-volatile memory),例如磁盘存储器,闪存(Flash)等。
总线1106可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。该总线11054可以分为地址总线、数据总线、控制总线等。为便于表示,图5中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
通过上述实施例的描述,本发明具有以下优点:
通过读取应用的显示属性并获取其对页面显示的横竖屏方向配置信息,当接收到横竖屏切换指令时,若所述横竖屏方向配置信息设定了页面仅支持单方向显示,则修改所述横竖屏方向配置信息以及所述应用的页面显示尺寸,并根据所述横竖屏切换指令进行横竖屏切换;在横竖屏切换后的界面上显示修改了页面显示尺寸后的所述应用,从而实现了不支持横竖屏切换的应用的横竖屏切换显示,尤其在用户使用较大屏幕的终端时,可根据用户的需求实现横屏显示,为用户提供更广阔的横向视域;在用户不方便双手操作时,可根据用户的需求实现竖屏显示,为用户提供单手操作的便利;从而提高了终端的显示效果和用户体验,扩展了终端的适用性和实用性;且在横竖屏切换后的第二显示区域显示预设功能按钮或预设应用,可以充分利用终端的屏幕硬件资源,为切换后的显示页面提供更多的功能,进一步方便了用户的使用,也就进一步提高了终端的适用性和实用性。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储 介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
以上对本发明实施例所提供的一种显示的方法及终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (18)

  1. 一种显示的方法,其特征在于,包括:
    接收横竖屏切换指令;
    读取当前显示的应用的显示属性,根据所述显示属性获取所述应用对页面显示的横竖屏方向配置信息;
    若所述横竖屏方向配置信息设定了页面仅支持单方向显示,则修改所述横竖屏方向配置信息以及所述应用的页面显示尺寸;
    根据所述横竖屏切换指令进行横竖屏切换;
    在横竖屏切换后的界面上显示修改了页面显示尺寸后的所述应用。
  2. 根据权利要求1所述的方法,其特征在于,所述横竖屏切换后的界面包括第一显示区域和第二显示区域,所述方法还包括:
    在所述第一显示区域显示所述应用;
    在所述第二显示区域显示预设功能按钮或预设应用。
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:
    记录所述应用横竖屏切换时修改的横竖屏方向配置信息以及修改的页面显示尺寸以便再次进行横竖屏切换时调用。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,当所述应用由竖屏显示切换为横屏显示时,修改所述应用的页面显示尺寸,包括:
    配置所述应用横屏显示的页面显示宽度为所述应用竖屏显示时的页面显示宽度,配置所述应用横屏显示的页面显示高度小于或等于所述应用竖屏显示时的页面显示宽度。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,当所述应用由竖屏显示切换为横屏显示时,将所述应用显示在终端显示屏的中央或右侧。
  6. 根据权利要求2-5任一项所述的方法,其特征在于,所述在所述第二显示区域显示预设功能按钮或预设应用,包括:
    在所述第二显示区域显示与所述应用相关联的应用或功能按钮;或者
    在所述第二显示区域显示与所有应用适配的应用或功能按钮。
  7. 一种终端,其特征在于,包括:
    接收单元,用于接收横竖屏切换指令;
    读取单元,用于读取当前显示的应用的显示属性,根据所述显示属性获取所述应用对页面显示的横竖屏方向配置信息;
    修改单元,若所述横竖屏方向配置信息设定了页面仅支持单方向显示,则修改所述横竖屏方向配置信息以及所述应用的页面显示尺寸;
    切换单元,用于根据所述横竖屏切换指令进行横竖屏切换;
    显示单元,用于在横竖屏切换后的界面上显示修改了页面显示尺寸后的所述应用。
  8. 根据权利要求7所述的终端,其特征在于,所述横竖屏切换后的界面包括第一显示区域和第二显示区域,所述显示单元还用于:
    在所述第一显示区域显示所述应用;
    在所述第二显示区域显示预设功能按钮或预设应用。
  9. 根据权利要求7或8所述的终端,其特征在于,所述终端还包括:
    记录单元,用于记录所述应用横竖屏切换时修改的横竖屏方向配置信息以及修改的页面显示尺寸以便再次进行横竖屏切换时所述显示单元调用。
  10. 根据权利要求7-9任一项所述的终端,其特征在于,当所述应用由竖屏显示切换为横屏显示时,所述修改单元具体用于:
    配置所述应用横屏显示的页面显示宽度为所述应用竖屏显示时的页面显示宽度,配置所述应用横屏显示的页面显示高度小于或等于所述应用竖屏显示时的页面显示宽度。
  11. 根据权利要求7-10任一项所述的终端,其特征在于,当所述应用由竖屏显示切换为横屏显示时,所述显示单元还用于将所述应用显示在终端显示屏的中央或右侧。
  12. 根据权利要求8-11任一项所述的终端,其特征在于,所述显示单元具体用于:
    在所述第二显示区域显示与所述应用相关联的应用或功能按钮;或者
    在所述第二显示区域显示与所有应用适配的应用或功能按钮。
  13. 一种终端,其特征在于,包括:
    处理器、存储器、重力感应器、显示屏、接口电路和总线,所述处理器、存储器、重力感应器、显示屏和接口电路通过所述总线连接并完成相互间的通信,其中,所述存储器用于存储一组程序代码,所述处理器用于调用所述存储器中存储的程序代码,执行以下操作:
    通过所述重力感应器或接口电路接收横竖屏切换指令;
    读取当前显示的应用的显示属性,根据所述显示属性获取所述应用对页面显示的横竖屏方向配置信息;
    若所述横竖屏方向配置信息设定了页面仅支持单方向显示,则修改所述横竖屏方向配置信息以及所述应用的页面显示尺寸;
    根据所述横竖屏切换指令进行横竖屏切换;
    指示所述显示屏在横竖屏切换后的界面上显示修改了页面显示尺寸后的所述应用。
  14. 根据权利要求13所述的终端,其特征在于,所述横竖屏切换后的界面包括第一显示区域和第二显示区域,所述处理器还用于:
    指示所述显示屏在所述第一显示区域显示所述应用;
    指示所述显示屏在所述第二显示区域显示预设功能按钮或预设应用。
  15. 根据权利要求13或14所述的终端,其特征在于,所述处理器还用于:
    通过所述存储器记录所述应用横竖屏切换时修改的横竖屏方向配置信息以及修改的页面显示尺寸以便再次进行横竖屏切换时调用。
  16. 根据权利要求13-15任一项所述的终端,其特征在于,当所述应用由竖屏显示切换为横屏显示时,所述处理器具体用于:
    配置所述应用横屏显示的页面显示宽度为所述应用竖屏显示时的页面显示宽度,配置所述应用横屏显示的页面显示高度小于或等于所述应用竖屏显示时的页面显示宽度。
  17. 根据权利要求13-16任一项所述的终端,其特征在于,当所述应用由竖屏显示切换为横屏显示时,所述处理器具体用于:
    指示所述显示屏将所述应用显示在终端显示屏的中央或右侧。
  18. 根据权利要求14-17任一项所述的终端,其特征在于,所述处理器具体用于:
    指示所述显示屏在所述第二显示区域显示与所述应用相关联的应用或功能按钮;或者
    指示所述显示屏在所述第二显示区域显示与所有应用适配的应用或功能按钮。
PCT/CN2016/071053 2016-01-15 2016-01-15 一种显示的方法及终端 WO2017120894A1 (zh)

Priority Applications (8)

Application Number Priority Date Filing Date Title
CN202110980008.9A CN113867661A (zh) 2016-01-15 2016-01-15 一种显示的方法及终端
KR1020187019682A KR102197517B1 (ko) 2016-01-15 2016-01-15 표시 방법 및 단말기
US16/070,019 US10872585B2 (en) 2016-01-15 2016-01-15 Display method and terminal
EP16884456.1A EP3379397B1 (en) 2016-01-15 2016-01-15 Display method and terminal
CN201680061763.4A CN108351794B (zh) 2016-01-15 2016-01-15 一种显示的方法及终端
CN202110981374.6A CN113867662A (zh) 2016-01-15 2016-01-15 一种显示的方法及终端
JP2018536783A JP7043407B2 (ja) 2016-01-15 2016-01-15 表示方法および端末
PCT/CN2016/071053 WO2017120894A1 (zh) 2016-01-15 2016-01-15 一种显示的方法及终端

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/071053 WO2017120894A1 (zh) 2016-01-15 2016-01-15 一种显示的方法及终端

Publications (1)

Publication Number Publication Date
WO2017120894A1 true WO2017120894A1 (zh) 2017-07-20

Family

ID=59310649

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/071053 WO2017120894A1 (zh) 2016-01-15 2016-01-15 一种显示的方法及终端

Country Status (6)

Country Link
US (1) US10872585B2 (zh)
EP (1) EP3379397B1 (zh)
JP (1) JP7043407B2 (zh)
KR (1) KR102197517B1 (zh)
CN (3) CN113867661A (zh)
WO (1) WO2017120894A1 (zh)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110244996A (zh) * 2019-05-14 2019-09-17 苏宁智能终端有限公司 一种横屏显示终端适配竖屏应用程序的方法、装置及终端
JP2020170221A (ja) * 2019-04-01 2020-10-15 カシオ計算機株式会社 プログラムを変換するためのプログラム、情報処理装置、及び、情報処理方法
CN112596883A (zh) * 2020-12-25 2021-04-02 深圳市欢太科技有限公司 一种应用切换方法、装置、存储介质及电子设备
CN113542823A (zh) * 2020-04-16 2021-10-22 海信视像科技股份有限公司 一种显示设备及应用页面的展示方法
CN113542824A (zh) * 2020-04-16 2021-10-22 海信视像科技股份有限公司 一种显示设备及应用界面的显示方法
CN114816602A (zh) * 2021-01-27 2022-07-29 华为技术有限公司 应用显示方法、装置、芯片系统、介质及程序产品

Families Citing this family (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018058312A1 (zh) * 2016-09-27 2018-04-05 深圳市大疆创新科技有限公司 控制方法、控制装置及电子装置
CN106610771A (zh) * 2016-12-12 2017-05-03 广州神马移动信息科技有限公司 一种语音识别界面的生成和自适应旋转的方法和装置
USD888755S1 (en) 2018-05-07 2020-06-30 Google Llc Display screen or portion thereof with transitional graphical user interface
USD877182S1 (en) * 2018-05-07 2020-03-03 Google Llc Display screen or portion thereof with transitional graphical user interface
USD877181S1 (en) * 2018-05-07 2020-03-03 Google Llc Display screen or portion thereof with graphical user interface
USD877183S1 (en) * 2018-05-07 2020-03-03 Google Llc Display screen or portion thereof with transitional graphical user interface
USD877161S1 (en) * 2018-05-07 2020-03-03 Google Llc Display screen or portion thereof with transitional graphical user interface
US20190387165A1 (en) * 2018-06-07 2019-12-19 Eys3D Microelectronics, Co. Image device for generating depth images and related electronic device
CN111758263A (zh) * 2018-06-29 2020-10-09 华为技术有限公司 一种柔性屏幕的显示方法及终端
US11095848B1 (en) * 2019-04-19 2021-08-17 Screenshare Technology Ltd. Method for creating vertically oriented video
CN110275657A (zh) * 2019-05-21 2019-09-24 杭州国文科技有限公司 页面显示方法和终端设备
CN112114912A (zh) * 2019-06-19 2020-12-22 华为技术有限公司 一种用户界面布局方法及电子设备
CN112416190B (zh) * 2019-08-23 2022-05-06 珠海金山办公软件有限公司 一种显示文档的方法及装置
JP7338330B2 (ja) * 2019-08-30 2023-09-05 株式会社リコー 表示装置、表示方法、プログラム
CN112600961A (zh) * 2019-09-19 2021-04-02 华为技术有限公司 一种音量调节方法及电子设备
CN110795198A (zh) * 2019-11-12 2020-02-14 北京一起教育信息咨询有限责任公司 一种屏幕显示方法、装置、存储介质及电子设备
CN111221455B (zh) * 2020-01-06 2022-03-04 北京字节跳动网络技术有限公司 素材展示方法、装置、终端及存储介质
CN117768695A (zh) * 2020-01-10 2024-03-26 聚好看科技股份有限公司 一种显示设备
US11422673B2 (en) * 2020-06-12 2022-08-23 Samsung Electronics Co., Ltd. Electronic apparatus and control method thereof
CN112261226B (zh) * 2020-10-21 2022-09-16 北京字跳网络技术有限公司 横屏交互方法、装置、电子设备和存储介质
CN112416491B (zh) * 2020-11-12 2022-11-22 联想(北京)有限公司 一种显示状态的调整方法、装置、设备及存储介质
KR20220078184A (ko) * 2020-12-03 2022-06-10 삼성전자주식회사 플렉서블 디스플레이의 확장에 따라 적어도 하나의 객체를 이동하여 디스플레이 하는 전자 장치 및 그 제어 방법
CN112948037B (zh) * 2021-02-08 2023-09-26 深圳市慧为智能科技股份有限公司 应用显示方向控制方法、系统、设备及可读存储介质
CN113220399B (zh) * 2021-05-17 2023-08-15 百度在线网络技术(北京)有限公司 一种界面显示方法、装置、智能屏设备及存储介质
CN113377320A (zh) * 2021-07-01 2021-09-10 读书郎教育科技有限公司 一种自适应横屏视界的方法
CN113965645B (zh) * 2021-09-17 2023-05-30 浪潮通用软件有限公司 一种基于移动终端的横竖屏切换方法、设备及介质
WO2023239409A1 (en) * 2022-06-06 2023-12-14 Google Llc Intelligent user interface rotation

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101834938A (zh) * 2010-03-25 2010-09-15 中兴通讯股份有限公司 一种实现移动终端横竖屏切换的装置及方法
CN103853347A (zh) * 2012-11-28 2014-06-11 上海亿动信息技术有限公司 基于移动终端重力感应横屏显示的信息发布方法
JP2014149860A (ja) * 2014-04-14 2014-08-21 Nihon Kokoku Media Kyokyu Kk 携帯型多機能端末の情報表示方法及びそれを用いた情報表示システム、並びに携帯型多機能端末
CN104035662A (zh) * 2014-05-15 2014-09-10 小米科技有限责任公司 一种界面显示方法、装置及终端
CN104898920A (zh) * 2015-04-29 2015-09-09 深圳市万普拉斯科技有限公司 旋转移动终端屏幕画面的方法和装置

Family Cites Families (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8041093B2 (en) * 2005-04-22 2011-10-18 General Electric Company System and method for definition of DICOM header values
US8938524B2 (en) * 2011-01-27 2015-01-20 Wyse Technology L.L.C. Comparing and provisioning configurations for a client having a windows-based embedded image
WO2012044713A1 (en) * 2010-10-01 2012-04-05 Imerj LLC Drag/flick gestures in user interface
US9043714B1 (en) * 2011-01-07 2015-05-26 Google Inc. Adaptive user interface for widescreen devices
US8872855B2 (en) * 2011-07-21 2014-10-28 Flipboard, Inc. Adjusting orientation of content regions in a page layout
KR101397685B1 (ko) * 2012-02-29 2014-05-26 주식회사 팬택 사용자 단말 및 사용자 단말의 화면 표시방법
JP5972629B2 (ja) 2012-03-27 2016-08-17 京セラ株式会社 装置、方法、及びプログラム
CN102710835B (zh) 2012-05-18 2014-11-05 张群 一种手机握持情况的检测方法及系统
CN102999253B (zh) * 2012-11-13 2016-06-15 北京奇艺世纪科技有限公司 一种应用程序的窗口显示方法、系统与移动终端
US20140282055A1 (en) * 2013-03-15 2014-09-18 Agilent Technologies, Inc. Layout System for Devices with Variable Display Screen Sizes and Orientations
CN103389863B (zh) * 2013-07-29 2016-12-28 小米科技有限责任公司 一种显示控制方法和装置
CN104345872A (zh) 2013-08-06 2015-02-11 鸿富锦精密工业(武汉)有限公司 移动设备智能横屏方法及系统
US20150172238A1 (en) * 2013-12-18 2015-06-18 Lutebox Ltd. Sharing content on devices with reduced user actions
JP2015141293A (ja) 2014-01-28 2015-08-03 ソニー株式会社 表示制御装置、表示制御方法、プログラム、及び表示デバイス
CN103955324A (zh) 2014-03-28 2014-07-30 广州华多网络科技有限公司 界面显示方法和装置
CN104978115B (zh) 2014-04-02 2019-09-20 腾讯科技(深圳)有限公司 内容显示方法及装置
CN103995646A (zh) * 2014-05-27 2014-08-20 东莞常禾电子有限公司 横屏显示控制方法及系统
JP6124841B2 (ja) 2014-05-27 2017-05-10 京セラ株式会社 携帯機器、ならびに、携帯機器の制御方法および制御プログラム
US9651997B2 (en) * 2014-07-30 2017-05-16 Intel Corporation Methods, systems and apparatus to manage a spatially dynamic display
CN104348978A (zh) 2014-11-12 2015-02-11 天津三星通信技术研究有限公司 移动终端的通话处理方法和装置
CN104991723A (zh) 2015-07-08 2015-10-21 上海斐讯数据通信技术有限公司 一种横竖屏切换系统及方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101834938A (zh) * 2010-03-25 2010-09-15 中兴通讯股份有限公司 一种实现移动终端横竖屏切换的装置及方法
CN103853347A (zh) * 2012-11-28 2014-06-11 上海亿动信息技术有限公司 基于移动终端重力感应横屏显示的信息发布方法
JP2014149860A (ja) * 2014-04-14 2014-08-21 Nihon Kokoku Media Kyokyu Kk 携帯型多機能端末の情報表示方法及びそれを用いた情報表示システム、並びに携帯型多機能端末
CN104035662A (zh) * 2014-05-15 2014-09-10 小米科技有限责任公司 一种界面显示方法、装置及终端
CN104898920A (zh) * 2015-04-29 2015-09-09 深圳市万普拉斯科技有限公司 旋转移动终端屏幕画面的方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3379397A4 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020170221A (ja) * 2019-04-01 2020-10-15 カシオ計算機株式会社 プログラムを変換するためのプログラム、情報処理装置、及び、情報処理方法
JP7306026B2 (ja) 2019-04-01 2023-07-11 カシオ計算機株式会社 プログラムを変換するためのプログラム、情報処理装置、及び、情報処理方法
CN110244996A (zh) * 2019-05-14 2019-09-17 苏宁智能终端有限公司 一种横屏显示终端适配竖屏应用程序的方法、装置及终端
CN113542823A (zh) * 2020-04-16 2021-10-22 海信视像科技股份有限公司 一种显示设备及应用页面的展示方法
CN113542824A (zh) * 2020-04-16 2021-10-22 海信视像科技股份有限公司 一种显示设备及应用界面的显示方法
CN113542823B (zh) * 2020-04-16 2024-02-27 海信视像科技股份有限公司 一种显示设备及应用页面的展示方法
CN112596883A (zh) * 2020-12-25 2021-04-02 深圳市欢太科技有限公司 一种应用切换方法、装置、存储介质及电子设备
CN112596883B (zh) * 2020-12-25 2023-10-24 深圳市欢太科技有限公司 一种应用切换方法、装置、存储介质及电子设备
CN114816602A (zh) * 2021-01-27 2022-07-29 华为技术有限公司 应用显示方法、装置、芯片系统、介质及程序产品

Also Published As

Publication number Publication date
CN108351794B (zh) 2021-08-27
JP7043407B2 (ja) 2022-03-29
US10872585B2 (en) 2020-12-22
CN108351794A (zh) 2018-07-31
US20190019476A1 (en) 2019-01-17
CN113867662A (zh) 2021-12-31
KR102197517B1 (ko) 2021-01-04
JP2019511029A (ja) 2019-04-18
EP3379397A1 (en) 2018-09-26
EP3379397A4 (en) 2018-12-19
CN113867661A (zh) 2021-12-31
KR20180094016A (ko) 2018-08-22
EP3379397B1 (en) 2021-03-10

Similar Documents

Publication Publication Date Title
WO2017120894A1 (zh) 一种显示的方法及终端
EP3119064B1 (en) A lock screen method and mobile terminal
US10171720B2 (en) Camera control application
CN107870716B (zh) 调用后台应用程序的方法和装置
WO2019233306A1 (zh) 图标显示方法、装置及终端
CN109101157B (zh) 侧边栏图标设置方法、装置、终端及存储介质
KR101851612B1 (ko) 텍스트 입력 방법, 장치, 프로그램 및 기록매체
KR20200097320A (ko) 사용자 인터페이스의 디스플레이 방법, 장치, 디바이스 및 기억 매체
CN107566579B (zh) 拍摄方法、装置、终端及存储介质
CN107563174B (zh) 一种指纹识别的方法和装置
KR20170093658A (ko) 복수의 디스플레이들을 포함하는 전자 장치 및 그 동작 방법
JP2016526244A (ja) アプリケーションプログラムの処理方法、装置、プログラム及び記憶媒体
CN107728810B (zh) 终端控制方法、装置、终端及存储介质
CN107871121B (zh) 一种指纹识别的方法和装置
CN106610821B (zh) 一种在终端上显示图片的方法和终端
WO2018072621A1 (zh) 一种信息展示方法及装置
CN104539844A (zh) 一种终端
CN107688430B (zh) 更换壁纸的方法、装置、终端及存储介质
US20210019106A1 (en) Desktop Sharing Method and Mobile Terminal
CN104580891A (zh) 一种终端拍摄的方法
CN105868420A (zh) 一种网络资源加载方式配置方法及装置
CN114327164A (zh) 用于终端的负二屏界面显示方法、装置、终端及介质
CA3014799A1 (en) Automatic content categorizing system and method
WO2019148312A1 (zh) 一种应用程序的加载方法及装置
JP6163894B2 (ja) 画像再生装置、画像表示方法、プログラム及び画像表示システム

Legal Events

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

Ref document number: 16884456

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2016884456

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2016884456

Country of ref document: EP

Effective date: 20180621

ENP Entry into the national phase

Ref document number: 20187019682

Country of ref document: KR

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 1020187019682

Country of ref document: KR

ENP Entry into the national phase

Ref document number: 2018536783

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE