CN112379955A - Display method and device of android application in horizontal screen display - Google Patents
Display method and device of android application in horizontal screen display Download PDFInfo
- Publication number
- CN112379955A CN112379955A CN202011283641.4A CN202011283641A CN112379955A CN 112379955 A CN112379955 A CN 112379955A CN 202011283641 A CN202011283641 A CN 202011283641A CN 112379955 A CN112379955 A CN 112379955A
- Authority
- CN
- China
- Prior art keywords
- android application
- android
- container window
- interface
- displayed
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a display method and a display device for Android application in a horizontal screen display.
Description
Technical Field
The invention belongs to the technical field of development of running mobile applications on a desktop operating system, and particularly relates to a display method and device of an android application in a horizontal screen display.
Background
An Android compatible environment (hereinafter abbreviated as an Android compatible environment) of a desktop operating system such as Linux or Windows is a technology for running an Android application (App) on the Linux or Windows operating system, and has important significance for enriching the application ecology of the operating system. For example, an Android compatible environment running on a Linux system generally comprises a Host end and a Guest end, the Host end runs on the Linux system and mainly comprises an Android container and a user interaction window, the Android container is used for isolating part of kernel resources from the Linux system to support the Guest end to run, the Guest end mainly comprises a specially customized Android application frame, an Android run-time library and the like, and Android applications run on the Guest end. When a user uses an Android application in a Linux operating system, the Android application window is realized in the following mode: and the window of the Linux system sends the handle to an Android system running in an Android container, and an Android application user interface is obtained by rendering the Android system, wherein the xDreidUI is one implementation of the Android application user interface.
When a user uses Android applications in an Android compatible environment, the appearance of the display screen of the adopted PC display is generally a horizontal rectangle, namely a horizontal screen, however, most of the Android applications generally adopt a vertical screen for displaying in order to match the size of the display screen of the mobile phone, therefore, when the user needs to display the interface of the Android applications on the PC display, namely, when the vertical rectangle is displayed in the horizontal screen display, the situation that the PC display screen cannot be fully utilized (namely, a large amount of blanks are left on two sides of the PC display screen) generally occurs, and the width of the vertical screen application is narrow, so that characters, pictures and the like displayed are relatively small, and inconvenience is brought to the user operation.
Disclosure of Invention
In view of the above, the invention provides a display method and device for Android applications in a horizontal screen display, which can reasonably display an interface of a vertical-screen Android application by fully utilizing a horizontal-screen PC display.
The invention provides a display method of an android application in a horizontal screen display, which specifically comprises the following steps:
the method comprises the steps that an Android system running in an Android compatible environment sends interface data of started Android applications to an Android application display buffer area running on a desktop operating system, and an Android application container window running on the desktop operating system reads data needing to be displayed from the Android application display buffer area and displays the Android applications in a rolling mode on a horizontal screen display;
the height of the output interface of the Android application container window is not larger than the height of the horizontal screen display, and the width of the output interface of the Android application container window is not smaller than the width of the interface of the Android application.
Further, the Android application container window reads data to be displayed from the Android application display buffer area, and the method comprises the following steps: when the current interface of the Android application is displayed in the Android application container window for the first time, the Android application container window reads data to be displayed from the initial position of the Android application display buffer area according to the size of an output interface.
Further, the Android application container window reads data to be displayed from the Android application display buffer area, and the method comprises the following steps: when a user drags a scroll bar in the Android application container window, the Android application container window calculates to obtain the distance between the top end of the Android application container window and the top end of an interface of an Android application stored in an Android application display buffer area, the distance is recorded as an offset, the range of data to be displayed is calculated according to the offset, and then the data to be displayed is read from the Android application display buffer area according to the obtained range.
Further, the Android application container window acquires a user click event to obtain a click coordinate of a click position of the user click event; the Android application container window converts the click coordinates into application interface coordinates of a current interface of the Android application, and the Android application container window sends the application interface coordinates to the Android system.
Further, the mode that the Android application container window sends the application interface coordinates to the Android system is as follows: and the Android application container window sends an RPC message to the Android system.
The invention provides a display device of an android application in a horizontal screen display, which comprises: the system comprises an Android compatible environment unit, an Android application display buffer area unit and an Android application container window unit;
the Android compatible environment unit is used for providing an operating environment of the Android system in a desktop operating system;
the Android application display buffer unit runs in a desktop operating system and is used for receiving the interface data of the Android application sent by the Android system and storing the interface data in the desktop operating system;
the Android application container window unit runs in a desktop operating system and is used for reading data to be displayed from the Android application display buffer area unit and displaying the data to be displayed in the desktop operating system, so that the Android application is displayed in a rolling manner in the horizontal screen display; the height of the interface generated by the Android application container window unit is not more than that of the horizontal screen display, and the width of the interface is not less than that of the Android application.
When the current interface of the Android application is displayed in the Android application container window unit for the first time, the Android application container window unit reads data to be displayed from the initial position of the Android application display buffer area according to the size of an output interface.
Further, when the Android application container window unit displays the current interface of the Android application for the first time, the Android application container window reads data to be displayed from the starting position of the Android application display buffer area according to the size of an output interface.
Further, when the Android application container window unit drags a scroll bar in the Android application container window, the Android application container window unit calculates to obtain a distance between the top end of an output interface of the Android application container window and the top end of an interface of an Android application stored in an Android application display buffer area, the distance is recorded as an offset, a range of data to be displayed is calculated according to the offset, and then data to be displayed is read from the Android application display buffer area according to the obtained range.
Further, when the Android application container window unit obtains a user click event, the Android application container window unit converts the obtained click coordinate of the click position of the user click event into an application interface coordinate of the current interface of the Android application, and the Android application container window unit sends the application interface coordinate to the Android system.
Has the advantages that:
according to the method and the device, the display window of the Android application is enlarged by adopting the container window with the scroll bar, so that the information such as characters and pictures in the display window of the Android application can be enlarged and displayed, the identification degree of the content in the user operation is improved, and the usability of the Android compatible environment is enhanced.
Drawings
Fig. 1 is a flowchart of a display method of an android application in a horizontal screen display provided in the present invention.
Fig. 2 is a structural diagram of a display device of an android application in a horizontal screen display provided in the present invention.
Detailed Description
The invention is described in detail below by way of example with reference to the accompanying drawings.
In the invention, for convenience of expression, the width of a vertical-screen Android application display interface is assumed to be w, the height of the vertical-screen Android application display interface is assumed to be h, and the height of a display interface of a PC display is assumed to be h1Width of w1And satisfies the condition w < w1And h > h1。
The flow of the display method of the android application in the horizontal screen display is shown in fig. 1, and the display method comprises the following steps:
step 1, when a user starts an Android application in an Android compatible environment, establishing an Android application display buffer area (namely, a display buffer area) by adopting an API of a desktop operating system (Linux or Windows), wherein the Android application display buffer area is named as 'Wnd', Wnd is used for containing content data of a display interface required by the Android application, namely, the size of the display interface used for containing the Android application in Wnd is wide w and high h;
meanwhile, an API of a desktop operating system (Linux or Windows) is adopted to create an Android application container window with a scroll bar, and the Android application container window is used for displaying a display interface of an Android application1。
Generally, the height of an output interface of the Android application container window is not larger than that of the horizontal screen display, and the width of the output interface of the Android application container window is not smaller than that of an interface of the Android application.
And 2, the Android system sends the content required to be displayed by the Android application to the Android application display buffer Wnd.
Specifically, the handle of the Android application display buffer Wnd is transferred to the Android system, and the Android system controls the display interface of the Android application to be sent to the Android application display buffer Wnd.
And 3, reading data from the Wnd buffer by the Android application container window Wndcontainer, and displaying the data in the Wndcontainer.
Specifically, in the process of reading and displaying data from the Wnd buffer by the Android application container window WndContainer, aiming at the following situations, the following processing modes are respectively adopted in the invention:
for the first time, namely when the current interface of the Android application is displayed in the desktop operating system for the first time, the WndContainer has the width w and the height h according to the display content1The screen of the size reads the corresponding data to be displayed from the start position of the Wnd buffer and displays the read data to be displayed in WndContainer. For example, WndContainer reads the coordinates from Wnd buffer ranging from (0,0) to (w, h)1) The data content of (2).
And scrolling, namely when a user drags a scroll bar in the Wndcontainer, the Wndcontainer calculates the distance between the top end of a Wndcontainer output window and the top end of a page stored in the buffer area according to the up-and-down moving range of the scroll bar according to the monitored event of the scroll bar, records the distance as an offset, recalculates the range of data to be displayed according to the offset, reads data from the Wnd buffer area according to the calculated range, and displays the read data to be displayed in the Wndcontainer. For example, WndContainer reads the coordinates from Wnd buffer ranging from (0, offset) to (w, h)1+ offset).
A user clicks a screen, that is, when the user clicks an Android application interface displayed in a desktop operating system by using a touch or a mouse, the WndContainer obtains a click coordinate of a current touch or mouse click position according to a monitored current touch or mouse click event, for example: the click coordinate is (x, y), the click coordinate may be an absolute coordinate of a display or an absolute coordinate of an interface displayed by WndContainer, and then, the coordinate of the whole Android application interface corresponding to the click coordinate is obtained through corresponding conversion according to the click coordinate, so that a corresponding coordinate in the Wnd buffer area is obtained, the coordinate in the Wnd buffer area may be named as a response coordinate, and the WndContainer sends the response coordinate to the Android system.
For example, when the click coordinate is the absolute coordinate of the interface displayed by WndContainer, the converted response coordinate is (x, y + offset).
WndContainer can send the response coordinate to the Android system by sending RPC message, and the Android system generates a new page according to the response coordinate to respond to the operation of the user.
Based on the display method of the android application in the horizontal screen display provided by the invention, the invention provides a display device of the android application in the horizontal screen display, the structure of which is shown in fig. 2, and the display device specifically comprises: the Android application display system comprises an Android compatible environment unit, an Android application display buffer area unit and an Android application container window unit.
The Android compatible environment unit is used for providing an operation environment of the Android system in the desktop operating system, and the Android system operates in the Android compatible environment.
The Android application display buffer unit runs in the desktop operating system and is used for storing the data of the Android application interface in the desktop operating system, and the Android system sends the data of the Android application interface to the Android application display buffer unit for storage.
The Android application container window unit runs in the desktop operating system and is used for realizing the rolling display of an Android application interface in the desktop operating system, the Android application container window unit determines the window size of a container window in the desktop operating system according to the size of a display screen of a PC display and the size of the Android application interface, corresponding data are read from the Android application display buffer area unit according to the determined window size for display, and when the Android application is displayed in the Android application container window unit for the first time, the Android application container window unit reads the data from the initial position of the Android application display buffer area unit; and a scroll bar in the Android application container window unit is used for controlling the display range of the Android application window.
The Android application container window unit needs to respond to two types of events, namely a scroll bar event, namely when a user drags a scroll bar in a Wndcontainer, the Wndcontainer calculates the distance between the top end of a Wndcontainer output window and the top end of a page stored in a buffer area according to the monitored scroll bar event, the distance is recorded as an offset, the range of data to be displayed is recalculated according to the offset, data is read from the Wnd buffer area according to the calculated range, and the read data to be displayed is displayed in the Wndcontainer; secondly, a screen click event is a screen click event, namely when a user clicks an Android application interface displayed in a desktop operating system by using a touch or a mouse, WndContainer obtains a click coordinate of a current touch or mouse click position according to the monitored current touch or mouse click event, the click coordinate can be an absolute coordinate of a display or an absolute coordinate of an interface displayed by WndContainer, then, coordinates of the whole Android application interface corresponding to the click coordinate are obtained through corresponding conversion according to the click coordinate, so that corresponding coordinates in an Wnd buffer area are obtained, the coordinates in the Wnd buffer area can be named as response coordinates, the Android container sends the response coordinates to an Android system, and the Android system generates a new page according to the response coordinates to respond to the operation of the user.
In summary, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (9)
1. A display method of an android application in a horizontal screen display is characterized by specifically comprising the following steps:
the method comprises the steps that an Android system running in an Android compatible environment sends interface data of started Android applications to an Android application display buffer area running on a desktop operating system, and an Android application container window running on the desktop operating system reads data needing to be displayed from the Android application display buffer area and displays the Android applications in a rolling mode on a horizontal screen display;
the height of the output interface of the Android application container window is not larger than the height of the horizontal screen display, and the width of the output interface of the Android application container window is not smaller than the width of the interface of the Android application.
2. The method according to claim 1, wherein the Android application container window reads data to be displayed from an Android application display buffer area, and the method comprises the following steps: when the current interface of the Android application is displayed in the Android application container window for the first time, the Android application container window reads data to be displayed from the initial position of the Android application display buffer area according to the size of an output interface.
3. The method according to claim 1, wherein the Android application container window reads data to be displayed from an Android application display buffer area, and the method comprises the following steps: when a user drags a scroll bar in the Android application container window, the Android application container window calculates to obtain the distance between the top end of the Android application container window and the top end of an interface of an Android application stored in an Android application display buffer area, the distance is recorded as an offset, the range of data to be displayed is calculated according to the offset, and then the data to be displayed is read from the Android application display buffer area according to the obtained range.
4. The method according to claim 1, wherein the Android application container window obtains a user click event, and obtains click coordinates of a click position of the user click event; the Android application container window converts the click coordinates into application interface coordinates of a current interface of the Android application, and the Android application container window sends the application interface coordinates to the Android system.
5. The method according to claim 4, wherein the Android application container window sends the application interface coordinates to the Android system in a manner that: and the Android application container window sends an RPC message to the Android system.
6. A display device for an android application in a cross-screen display, comprising: the system comprises an Android compatible environment unit, an Android application display buffer area unit and an Android application container window unit;
the Android compatible environment unit is used for providing an operating environment of the Android system in a desktop operating system;
the Android application display buffer unit runs in a desktop operating system and is used for receiving the interface data of the Android application sent by the Android system and storing the interface data in the desktop operating system;
the Android application container window unit runs in a desktop operating system and is used for reading data to be displayed from the Android application display buffer area unit and displaying the data to be displayed in the desktop operating system, so that the Android application is displayed in a rolling manner in the horizontal screen display; the height of the interface generated by the Android application container window unit is not more than that of the horizontal screen display, and the width of the interface is not less than that of the Android application.
When the current interface of the Android application is displayed in the Android application container window unit for the first time, the Android application container window unit reads data to be displayed from the initial position of the Android application display buffer area according to the size of an output interface.
7. The display device according to claim 6, wherein when the Android application container window unit displays the current interface of the Android application for the first time, the Android application container window reads data to be displayed from a starting position of the Android application display buffer according to the size of an output interface.
8. The display device according to claim 6, wherein when the Android application container window unit drags a scroll bar in the Android application container window, the Android application container window unit calculates a distance between a top end of an output interface of the Android application container window and a top end of an interface of an Android application stored in an Android application display buffer, the distance is recorded as an offset, a range of data to be displayed is calculated according to the offset, and then data to be displayed is read from the Android application display buffer according to the obtained range.
9. The display device according to claim 6, wherein when the Android application container window unit obtains a user click event, the Android application container window unit converts the obtained click coordinate of the click position of the user click event into an application interface coordinate of a current interface of the Android application, and the Android application container window unit sends the application interface coordinate to the Android system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011283641.4A CN112379955A (en) | 2020-11-17 | 2020-11-17 | Display method and device of android application in horizontal screen display |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011283641.4A CN112379955A (en) | 2020-11-17 | 2020-11-17 | Display method and device of android application in horizontal screen display |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112379955A true CN112379955A (en) | 2021-02-19 |
Family
ID=74585634
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011283641.4A Pending CN112379955A (en) | 2020-11-17 | 2020-11-17 | Display method and device of android application in horizontal screen display |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112379955A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113254154A (en) * | 2021-05-21 | 2021-08-13 | 技德技术研究所(武汉)有限公司 | Application starting method and device for compatibly running Android system on Linux |
CN113641437A (en) * | 2021-08-16 | 2021-11-12 | 深圳技德智能科技研究院有限公司 | Linux-compatible Android application interface rotation method and device |
CN114579209A (en) * | 2022-05-06 | 2022-06-03 | 北京麟卓信息科技有限公司 | Method for setting screen display mode during application starting in android compatible environment |
CN114840290A (en) * | 2022-04-12 | 2022-08-02 | 北京麟卓信息科技有限公司 | Method for adapting vertical screen android application to PC display |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130198608A1 (en) * | 2008-12-16 | 2013-08-01 | Brad Krassner | Content Rendering Control System and Method |
CN103339600A (en) * | 2010-10-01 | 2013-10-02 | Flex Electronics ID Co.,Ltd. | Instant remote rendering |
CN107608588A (en) * | 2017-10-20 | 2018-01-19 | 京东方科技集团股份有限公司 | Display layer, display methods, display system and operating system |
CN108345438A (en) * | 2018-02-06 | 2018-07-31 | 深圳市恒晨电器有限公司 | Cell phone platform is applied to the physics transverse screen display method of vehicular platform |
CN109949201A (en) * | 2019-01-29 | 2019-06-28 | 福建多多云科技有限公司 | A kind of image rendering accelerated method of linux container |
CN110308956A (en) * | 2018-03-20 | 2019-10-08 | 青岛海信移动通信技术股份有限公司 | A kind of application interface display methods, device and mobile terminal |
CN111625163A (en) * | 2020-06-29 | 2020-09-04 | 海信电子科技(深圳)有限公司 | Display device and application program interface display method |
-
2020
- 2020-11-17 CN CN202011283641.4A patent/CN112379955A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130198608A1 (en) * | 2008-12-16 | 2013-08-01 | Brad Krassner | Content Rendering Control System and Method |
CN103339600A (en) * | 2010-10-01 | 2013-10-02 | Flex Electronics ID Co.,Ltd. | Instant remote rendering |
CN107608588A (en) * | 2017-10-20 | 2018-01-19 | 京东方科技集团股份有限公司 | Display layer, display methods, display system and operating system |
CN108345438A (en) * | 2018-02-06 | 2018-07-31 | 深圳市恒晨电器有限公司 | Cell phone platform is applied to the physics transverse screen display method of vehicular platform |
CN110308956A (en) * | 2018-03-20 | 2019-10-08 | 青岛海信移动通信技术股份有限公司 | A kind of application interface display methods, device and mobile terminal |
CN109949201A (en) * | 2019-01-29 | 2019-06-28 | 福建多多云科技有限公司 | A kind of image rendering accelerated method of linux container |
CN111625163A (en) * | 2020-06-29 | 2020-09-04 | 海信电子科技(深圳)有限公司 | Display device and application program interface display method |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113254154A (en) * | 2021-05-21 | 2021-08-13 | 技德技术研究所(武汉)有限公司 | Application starting method and device for compatibly running Android system on Linux |
CN113254154B (en) * | 2021-05-21 | 2024-03-29 | 技德技术研究所(武汉)有限公司 | Application starting method and device for compatibly running Android system on Linux |
CN113641437A (en) * | 2021-08-16 | 2021-11-12 | 深圳技德智能科技研究院有限公司 | Linux-compatible Android application interface rotation method and device |
CN113641437B (en) * | 2021-08-16 | 2023-06-16 | 深圳技德智能科技研究院有限公司 | Android-compatible application interface rotation method and device for Linux |
CN114840290A (en) * | 2022-04-12 | 2022-08-02 | 北京麟卓信息科技有限公司 | Method for adapting vertical screen android application to PC display |
CN114840290B (en) * | 2022-04-12 | 2022-09-23 | 北京麟卓信息科技有限公司 | Method for adapting vertical screen android application to PC display |
CN114579209A (en) * | 2022-05-06 | 2022-06-03 | 北京麟卓信息科技有限公司 | Method for setting screen display mode during application starting in android compatible environment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112463273B (en) | Display method and device for android application in PC (personal computer) display | |
CN112379955A (en) | Display method and device of android application in horizontal screen display | |
US10984169B2 (en) | Systems, methods, and computer-readable media for providing a dynamic loupe for displayed information | |
KR102519727B1 (en) | A display driving method and a display driving circuit and an electronic device supporting the same | |
JP4605675B2 (en) | Display system, display method, program, and recording medium | |
EP2508986B1 (en) | Backing store memory management for rendering scrollable webpage subregions | |
CA2781298C (en) | Improved block zoom on a mobile electronic device | |
US20170220220A1 (en) | Advertisement generation apparatus and terminal device | |
US20120096344A1 (en) | Rendering or resizing of text and images for display on mobile / small screen devices | |
US9485290B1 (en) | Method and system for controlling local display and remote virtual desktop from a mobile device | |
US20030184552A1 (en) | Apparatus and method for graphics display system for markup languages | |
EP0327781A2 (en) | Method to automatically vary displayed object size with variations in window size | |
CN108205403B (en) | Terminal display method and device, terminal and computer readable storage medium | |
CN114840290B (en) | Method for adapting vertical screen android application to PC display | |
AU2013217637B2 (en) | Overscan support | |
JP2008523488A (en) | System and method for viewing digital visual content on a device | |
JP6255495B2 (en) | Method and apparatus for displaying browser resource, and computer readable storage medium | |
CN114995929B (en) | Popup window display method and device | |
US10432681B1 (en) | Method and system for controlling local display and remote virtual desktop from a mobile device | |
EP3680765A1 (en) | Navigation bar control method and device | |
JP6221214B2 (en) | System, terminal device, and image processing method | |
CN114969747A (en) | Screen capture limiting method for android application on desktop system | |
CN113779321B (en) | Electronic whiteboard file storage method and device, electronic whiteboard and storage medium | |
CN114490140B (en) | Low-delay input method for android application on Linux platform | |
CN116301474A (en) | Card opening method of application program and related equipment thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210219 |