CN113312124B - Soft keyboard pop-up calling method and device - Google Patents
Soft keyboard pop-up calling method and device Download PDFInfo
- Publication number
- CN113312124B CN113312124B CN202110343799.4A CN202110343799A CN113312124B CN 113312124 B CN113312124 B CN 113312124B CN 202110343799 A CN202110343799 A CN 202110343799A CN 113312124 B CN113312124 B CN 113312124B
- Authority
- CN
- China
- Prior art keywords
- soft keyboard
- height value
- current
- value
- visible area
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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/04886—Interaction 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computing Systems (AREA)
- Human Computer Interaction (AREA)
- Mathematical Physics (AREA)
- Quality & Reliability (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention provides a soft keyboard pop-up calling method and device, wherein the method comprises the following steps: in the embodiment of the invention, after receiving an input edit box return instruction, a historical visible area height value of the visible height of a screen view is obtained; acquiring a height value of a current visual area corresponding to the visual area of the current user interface; determining the current state of the soft keyboard based on the historical visible area height value and the current visible area height value; under the condition that the current state of the soft keyboard is a hidden state, controlling to adjust the hidden state to be a display state; and under the condition that the current state of the soft keyboard is the display state, controlling the soft keyboard to execute popup so as to call the default first popup of the soft keyboard, realizing the monitoring of whether the soft keyboard popups, improving the stability and the reliability of the video networking terminal and improving the operation fluency of the user interface of the video networking terminal.
Description
Technical Field
The invention relates to the technical field of video networking, in particular to a soft keyboard popup calling method and device.
Background
Along with the development of the video networking, the video networking terminal is widely applied, wherein the video networking terminal can load a web browser to display a user interface, and can realize multi-person conference and video telephone dialing.
The video network terminal is used for displaying a video telephone set, wherein the input window can be used for meeting and dialing video telephone sets of multiple persons, in order to ensure higher experience of a user, the video network terminal does not display a popup soft keyboard when the input window is popped up for the first time, and the video network terminal is switched to an input editing window and pops up the soft keyboard simultaneously after the user clicks on the input window for determination.
However, if the pop-up input window is clicked again after the soft keyboard is returned and exited, the internet-of-view terminal cannot know whether the soft keyboard pops up, so that the pop-up soft keyboard is not necessarily displayed when the user enters for the first time under the condition that the user needs to edit the input window, the stability and reliability of the internet-of-view terminal are reduced, the operation smoothness of the user interface of the internet-of-view terminal is reduced, and the user experience is also reduced.
Disclosure of Invention
In view of the foregoing, embodiments of the present invention are presented to provide a soft keyboard pop-up invocation method and apparatus that overcomes or at least partially solves the foregoing problems.
In order to solve the above problems, an embodiment of the present invention provides a soft keyboard pop-up calling method, including:
after receiving an input edit box return instruction, acquiring a historical visible area height value of the visible height of the screen view;
acquiring a height value of a current visual area corresponding to the visual area of the current user interface; the current visible area height value is the area height of the current user interface except for a soft keyboard;
Determining the current state of the soft keyboard based on the historical visible area height value and the current visible area height value;
Under the condition that the current state of the soft keyboard is a hidden state, controlling to adjust the hidden state to be a display state;
And under the condition that the current state of the soft keyboard is the display state, controlling the soft keyboard to execute popup.
Optionally, the determining the current state of the soft keyboard based on the historical visible area height value and the current visible area height value includes:
subtracting the historical visible area height value from the current visible area height value to determine a second height difference value;
Determining that the soft keyboard is in the hidden state under the condition that the second height difference value is greater than or equal to a preset height difference threshold value;
The preset height difference threshold value is a fixed height value of the soft keyboard.
Optionally, the determining the current state of the soft keyboard based on the historical visible area height value and the current visible area height value includes:
Subtracting the current visible area height value from the historical visible area height value to determine a first height difference value;
Determining that the soft keyboard is in the display state under the condition that the first height difference value is greater than or equal to a preset height difference threshold value;
The preset height difference threshold value is a fixed height value of the soft keyboard.
Optionally, after receiving the input edit box return instruction, acquiring a historical visible area height value of the visible height of the screen view includes:
Monitoring a monitoring view based on a root view after receiving the input edit box return instruction;
And acquiring the historical visible area height value of the visible height of the screen view in the monitoring view.
In order to solve the above problems, an embodiment of the present invention provides a soft keyboard pop-up calling device, including:
the first acquisition module is used for acquiring a historical visible area height value of the visible height of the screen view after receiving an input edit box return instruction;
The second acquisition module is used for acquiring the height value of the current visual area corresponding to the visual area of the current user interface; the current visible area height value is the area height of the current user interface except for a soft keyboard;
the determining module is used for determining the current state of the soft keyboard based on the historical visible area height value and the current visible area height value;
the first control module is used for controlling the hidden state to be adjusted to be a display state under the condition that the current state of the soft keyboard is the hidden state;
and the second control module is used for controlling the soft keyboard to execute popup under the condition that the current state of the soft keyboard is the display state.
Optionally, the determining module includes:
a first determining sub-module for subtracting the historical visible area height value from the current visible area height value to determine a second height difference;
The second determining submodule is used for determining that the soft keyboard is in the hidden state under the condition that the second height difference value is larger than or equal to a preset height difference threshold value;
The preset height difference threshold value is a fixed height value of the soft keyboard.
Optionally, the determining module includes:
a third determining sub-module for subtracting the current visible area height value from the historical visible area height value to determine a first height difference;
A fourth determining submodule, configured to determine that the soft keyboard is in the display state when the first height difference value is greater than or equal to a preset height difference threshold value;
The preset height difference threshold value is a fixed height value of the soft keyboard.
Optionally, the first obtaining module includes:
The detection sub-module is used for monitoring a monitoring view based on the root view after receiving the input edit box return instruction;
And the acquisition sub-module is used for acquiring the historical visible area height value of the visible height of the screen view in the monitoring view.
In order to solve the above problems, an embodiment of the present invention provides an electronic device, including:
One or more processors;
And one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform the soft keyboard pop-up invocation method described above.
To solve the above-described problems, an embodiment of the present invention provides a computer-readable storage medium storing a computer program for causing a processor to execute the above-described soft keyboard pop-up calling method.
The embodiment of the invention has the following advantages:
In the embodiment of the invention, after receiving an input edit box return instruction, acquiring a historical visible area height value of the visible height of a screen view; acquiring a height value of a current visual area corresponding to the visual area of the current user interface; determining the current state of the soft keyboard based on the historical visible area height value and the current visible area height value; under the condition that the current state of the soft keyboard is a hidden state, controlling to adjust the hidden state to be a display state; under the condition that the current state of the soft keyboard is the display state, the soft keyboard is controlled to execute popup, so that the first calling mode from the process of calling the software to popup can be realized, the monitoring on whether the soft keyboard popup is realized, the soft keyboard can be popped up every time a user enters the soft keyboard can be realized, the stability and the reliability of the video networking terminal are improved, the operation smoothness of the video networking terminal user interface is improved, and further, the user experience is improved.
Drawings
FIG. 1 shows a flowchart of a soft keyboard pop-up calling method according to a first embodiment of the present invention;
fig. 2 shows a connection schematic diagram of an internet-of-view terminal according to an embodiment of the present application;
FIG. 3 illustrates a user interface diagram provided by an embodiment of the present application;
Fig. 4 shows a flowchart of a soft keyboard pop-up calling method according to a second embodiment of the present invention;
fig. 5 is a block diagram illustrating a soft keyboard pop-up calling device according to a fourth embodiment of the present invention;
FIG. 6 shows a networking schematic of the visual networking of the present invention;
FIG. 7 is a schematic diagram of the hardware architecture of a node server according to the present invention;
Fig. 8 shows a schematic hardware architecture of an access switch according to the present invention;
Fig. 9 shows a schematic hardware structure of an ethernet corotation gateway according to the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
Referring to fig. 1, a flowchart illustrating steps of a soft keyboard pop-up calling method according to an embodiment of the present invention may specifically include the following steps:
step 501, after receiving an input edit box return instruction, acquiring a historical visible area height value of a visible height of a screen view.
The historical visible area height value is the last visible height value corresponding to the user interface.
In the application, the video networking terminal can comprise a hypertext markup language User interface (User-interface) module, namely an H5 UI interface module and an android service module (android service module), and the H5 UI interface module and the android service module are in interactive connection and can mutually transmit information.
Fig. 2 shows a schematic diagram of a video networking terminal provided by the embodiment of the present application, as shown in fig. 2, an H5 UI interface module 01 and an android service module 02 may interactively transmit information, where the H5 UI interface module includes a multi-person conference interface 011, a video phone interface 012, a viewing live broadcast interface 013 and other services 014, and the android service module 02 includes a multi-person conference service module class 021, but a phone service module class 022, a viewing service module class 023 and other service module classes 024.
Specifically, the H5 UI interface module may create a User-interface (User-interface) of a plurality of video services, and the corresponding android service module also creates a corresponding service module class, where when each service corresponding to one UI interface is entered, the H5 UI interface module may send a message of the currently entered service module by using a function module (function); and the android service module creates a recording module, and all service modules which the H5 UI interface module enters are recorded in the recording module.
The android service module can monitor the root view of the interface of the whole UI layer, and monitors the monitoring view based on the root view after receiving the return instruction from the selected input editing frame; marking the historical visible area height value of the screen view visible height in the listening view.
And after receiving the trigger return instruction received by the hypertext user interface, marking and acquiring a temporary variable of the visible height of the screen view, namely acquiring the height value of the historical visible area after the generated input edit box return instruction.
After receiving the input edit box return instruction, step 502 is performed after obtaining the historical visible area height value of the visible height of the screen view.
Step 502, obtaining a current visual area height value corresponding to a current visual area of a user interface.
Wherein the current visual area height value refers to the area height of the current user interface other than the soft keyboard.
In the application, the height value of the current visual area corresponding to the current visual area of the user interface of the hypertext language user interface module can be obtained.
Fig. 3 shows a schematic diagram of a user interface provided by an embodiment of the present application, as shown in fig. 3, the user interface 03 may include An Zhuogen views 031, a web page input window 032, and a soft keyboard 033 in a soft keyboard pop-up situation, where in the soft keyboard pop-up situation, the current visual area height value is X, and in the soft keyboard hidden or exit state, the current visual area height value is Y.
In the application, the android service module can acquire the height value of the visible area corresponding to the visible area of the current user interface of the hypertext user interface module, and save all the height values of the current visible area by adopting a rectangular structure (Rect).
After the current visual area height value corresponding to the current visual area of the user interface is obtained, step 503 is performed.
Step 503, determining the current state of the soft keyboard based on the historical visible area height value and the current visible area height value.
Alternatively, in the case where the historic visible area height value is 0, that is, in the case where the temporary variable is 0, the current visible area height value may be assigned to the historic visible area height value.
In the case where the temporary variable and the current visual area height value are equal, that is, in the case where the history visual area height value and the current visual area height value are equal, it is indicated that the soft keyboard has not been changed.
In the application, subtracting the current visual area height value from the historical visual area height value to determine the first height difference value; and under the condition that the first height difference value is larger than a preset height difference value, determining that the soft keyboard is in a display state, and assigning the current visible area height value to the historical visible area height value.
The preset height difference threshold value is a fixed height value of the soft keyboard.
After determining the current state of the soft keyboard based on the historical view area height value and the current view area height value, step 504 is performed.
Step 504: and under the condition that the current state of the soft keyboard is a hidden state, controlling to adjust the hidden state to be a display state.
In the application, subtracting the historical visible area height value from the current visible area height value to determine the second height difference; and if the second height difference value is larger than the preset height difference value, determining that the soft keyboard is in a hidden state, and assigning the current visible area height value to the historical visible area height value, namely controlling to adjust the hidden state to be a display state.
After control adjusts the hidden state to the display state, step 505 is performed.
Step 505: and under the condition that the current state of the soft keyboard is the display state, controlling the soft keyboard to execute popup.
In the application, a display message corresponding to the display state of the soft keyboard or a hidden message corresponding to the hidden state can be generated, and the display message or the hidden message is sent to the hypertext markup language user interface module, so that the hypertext markup language user interface module can restore the input edit box to the default state of the edit box when the soft keyboard is detected to be updated from the hidden state to the display state or when the soft keyboard is detected to be in the display state, and the default first pop-up of the soft keyboard is called.
H5 When the UI interface module monitors that the soft keyboard is updated from the hidden state to the display state, or detects that the soft keyboard is in the display state, the input edit box can be restored to the default state of the edit box, namely, the first calling mode when the software is popped up again can be realized, the monitoring of whether the soft keyboard pops up or not can be realized, the situation that whether the soft keyboard pops up or not can not be known by the visual networking terminal when the user clicks the pop-up input window again after the user returns to exit the soft keyboard is avoided, namely, the visual networking terminal can realize the monitoring of whether the soft keyboard pops up or not, namely, the situation that the soft keyboard pops up when the user does not confirm to edit the input window for the first time is avoided, namely, the soft keyboard can pop up when the user enters into each time, the stability and the reliability of the visual networking terminal are improved, the operation smoothness of the visual networking terminal user interface is improved, and the user experience is further improved.
In the embodiment of the invention, after receiving an input edit box return instruction, acquiring a historical visible area height value of the visible height of a screen view; acquiring a height value of a current visual area corresponding to the visual area of the current user interface; determining the current state of the soft keyboard based on the historical visible area height value and the current visible area height value; under the condition that the current state of the soft keyboard is a hidden state, controlling to adjust the hidden state to be a display state; under the condition that the current state of the soft keyboard is the display state, the soft keyboard is controlled to execute popup, so that the first calling mode from the process of calling the software to popup can be realized, the monitoring on whether the soft keyboard popup is realized, the soft keyboard can be popped up every time a user enters the soft keyboard can be realized, the stability and the reliability of the video networking terminal are improved, the operation smoothness of the video networking terminal user interface is improved, and further, the user experience is improved.
Referring to fig. 4, a step flow chart of a soft keyboard pop-up calling method provided by a second embodiment of the present invention is shown, and the method may be applied to an android service module, where the android service module and the hypertext markup language user interface module are connected in a communication manner, and the android service module and the hypertext markup language user interface are both located in an internet-of-view terminal, and specifically may include the following steps:
And step 601, monitoring a monitoring view based on the root view after receiving the input edit box return instruction.
In the application, the video networking terminal can comprise a hypertext markup language (H5) layer and an android system (android) layer, and the H5 UI interface module and the android service module are in interactive connection and can mutually transmit information.
Fig. 2 shows a schematic view of a scenario of a hypertext markup language user interface module and an android service module provided by the embodiment of the present application, as shown in fig. 2, an H5 UI interface module 01 and an android service module 02 may interactively transmit information, where the H5 UI interface module includes a multi-person conference interface 011, a video phone interface 012, a viewing live broadcast interface 013 and other services 014, and the android service module 02 includes a multi-person conference service module class 021, but a phone service module class 022, a viewing service module class 023 and other service module classes 024.
Specifically, the H5 UI interface module may create a User-interface (User-interface) of a plurality of video services, and the corresponding android service module also creates a corresponding service module class, where when each service corresponding to one UI interface is entered, the H5 UI interface module may send a message of the currently entered service module by using the functional module (funcation); and the android service module creates a recording module, and all service modules which the H5 UI interface module enters are recorded in the recording module.
For example, for a multi-person conference interface, the corresponding android service module also creates a corresponding multi-person conference attendant module class, such as creating MultMeetMoudle process service logic classes; for the video phone interface, the corresponding business module of the corresponding android business module may be VideoCallMoudle.
H5 When the UI interface module enters a service corresponding to one UI interface, the function module (funcation) may be used to send a message of the currently entering service module, and specifically, the funcation calling method includes: extension.setMessageListener (function (Json), parameter Json format parsing followed by the acquisition of the corresponding instruction String "CMD_PRESET_MODULE_ENTER).
Creating a recording module by the android service module, and recording all the service modules entered by the H5 UI interface module in the recording module, namely, creating an entity class object for containing all the service module classes by the android service module to record the object of the currently entered service module; the entity class object for loading all service module classes is CurrentModule < T >, wherein the generic T can be any video networking service module class, and concretely can be:
currentModule=new CurrentModule()
currentModule.setCurrentModule(this)。
In the application, the android service module can monitor the root view of the interface of the whole UI layer, and monitor the monitoring view based on the root view after receiving the instruction for returning from the selected input editing box.
After receiving the return instruction from the selected input edit box, monitoring the listening view based on the root view, step 602 is performed.
Step 602: and acquiring the historical visible area height value of the visible height of the screen view in the monitoring view.
The android service module can monitor the root view of the interface of the whole UI layer, and monitors the monitoring view based on the root view after receiving the return instruction from the selected input editing frame; marking the historical visible area height value of the screen view visible height in the listening view.
The android service module can monitor the root view of the whole interface mainly because of the webpage H5 loaded by the android service module, so that the monitoring software keyboard popup condition is processed by the android service module; and here monitoring de-marks a temporary variable containing the visible height of the screen view during listening.
Specifically, monitoring for a temporary variable that includes the visual height of the screen view to be tagged during listening includes: v/getWindow (). GetDecorView ()
getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener()
And the method function of changing the visual state is adopted to continuously acquire the display size of the current root view on the screen
onGlobalLayout()
}
Returning to the display height of the temporary variable record root view: rootViewHeight =0
if(rootViewHeight-visibleHeight>100){
rootViewVisibleHeight=visibleHeight;
return;
}
100 Is a minimum value of the pop-up height of the soft keyboard, that is, a preset height difference value in the present application, which is not limited in particular, and the value may be calibrated and adjusted according to the actual application scenario.
After the historical visible area height value of the screen view visible height is obtained in the listening view, step 603 is performed.
Step 603, obtaining a current visual area height value corresponding to the current visual area of the user interface.
In the application, the height value of the current visual area corresponding to the current visual area of the user interface of the hypertext language user interface module can be obtained.
The current visual area height value refers to the area height of the UI interface other than the soft keyboard.
Fig. 3 shows a schematic diagram of a user interface provided by an embodiment of the present application, as shown in fig. 3, the user interface 03 may include An Zhuogen views 031, a web page input window 032, and a soft keyboard 033 in a soft keyboard pop-up condition, where the height value of the visible area is X in the soft keyboard pop-up condition, and the height value of the visible area is Y in the soft keyboard hidden or exit condition.
In the application, the android service module can acquire the height value of the visible area corresponding to the visible area of the current user interface of the hypertext user interface module, and save all the height values of the current visible area by adopting a rectangular structure (Rect).
For example, monitoring and de-marking a temporary variable containing the visible height of the screen view in the monitoring process is compared with the object used for acquiring the visible area of the current window, and meanwhile, the range of the visible area is saved by using the Rect.
And acquiring a height value of a visible area corresponding to a current user interface visible area of the hypertext user interface module, and storing the height value of the current visible area by adopting a rectangular structure. Thereafter, step 604 is performed.
Step 604, determining the current state of the soft keyboard based on the historical visible area height value and the current visible area height value.
Alternatively, in the case where the historic visible area height value is 0, that is, in the case where the temporary variable is 0, the current visible area height value may be assigned to the historic visible area height value.
In the case where the temporary variable and the current visual area height value are equal, that is, in the case where the history visual area height value and the current visual area height value are equal, it is indicated that the soft keyboard has not been changed.
In the application, subtracting the current visual area height value from the historical visual area height value to determine the first height difference value; and under the condition that the first height difference value is larger than a preset height difference value, determining that the soft keyboard is in a display state, and assigning the current visible area height value to the historical visible area height value.
The preset height difference threshold value is a fixed height value of the soft keyboard.
Specifically, it may include: witch (currentModule. GetClass (). GETSIMPLENAME ())) {
case"ExtIndexModule":
Log.i("zhp______","setCurrentModule:ExtIndexModule");
((ExtIndexModule)currentModule).postMessage(jsonBean);
break;
case"ExtMultiMeetModule":
Log.i("zhp______","setCurrentModule:_____ExtMultiMeetModule:");
((ExtMultiMeetModule)currentModule).postMessage(jsonBean);
break;
case"ExtRTVModule":
Log.i("zhp______","setCurrentModule:_____ExtRTVModule:");
((ExtRTVModule)currentModule).postMessage(jsonBean);
break;
case"ExtSettingModule":
Log.i("zhp______","setCurrentModule:______ExtSettingModule:");
((ExtSettingModule)currentModule).postMessage(jsonBean);
break;
case"ExtVideoCallModule":
Log.i("zhp______","setCurrentModule:______ExtVideoCallModule:");
((ExtVideoCallModule)currentModule).postMessage(jsonBean);
break;
case"ExtVodModule":
Log.i("zhp______","setCurrentModule:______ExtVodModule:");
((ExtVodModule)currentModule).postMessage(jsonBean);
break;
case"ExtReleaseModule":
Log.i("zhp______","setCurrentModule:ExtReleaseModule:");
((ExtReleaseModule)currentModule).postMessage(jsonBean);
break;
}
After determining the current state of the soft keyboard based on the historical view area height value and the current view area height value, step 605 is performed.
Step 605, when the current state of the soft keyboard is a hidden state, controlling to adjust the hidden state to a display state.
In the application, subtracting the historical visible area height value from the current visible area height value to determine the second height difference; and if the second height difference value is larger than the preset height difference value, determining that the soft keyboard is in a hidden state, and assigning the current visible area height value to the historical visible area height value, namely controlling to adjust the hidden state to be a display state.
In the case where the current state of the soft keyboard is the hidden state, control adjusts the hidden state to the display state, and then step 606 is performed.
And step 606, controlling the soft keyboard to execute popup under the condition that the current state of the soft keyboard is the display state.
In the application, a display message corresponding to the display state of the soft keyboard or a hidden message corresponding to the hidden state can be generated, and the display message or the hidden message is sent to the hypertext markup language user interface module, so that the hypertext markup language user interface module can restore the input edit box to the default state of the edit box when the soft keyboard is detected to be updated from the hidden state to the display state or when the soft keyboard is detected to be in the display state, and the default first pop-up of the soft keyboard is called.
H5 When the UI interface module monitors that the soft keyboard is updated from the hidden state to the display state, or detects that the soft keyboard is in the display state, the input edit box can be restored to the default state of the edit box, namely, the first calling mode when the software is popped up again can be realized, the monitoring of whether the soft keyboard pops up or not can be realized, the situation that whether the soft keyboard pops up or not can not be known by the visual networking terminal when the user clicks the pop-up input window again after the user returns to exit the soft keyboard is avoided, namely, the visual networking terminal can realize the monitoring of whether the soft keyboard pops up or not, namely, the situation that the soft keyboard pops up when the user does not confirm to edit the input window for the first time is avoided, namely, the soft keyboard can pop up when the user enters into each time, the stability and the reliability of the visual networking terminal are improved, the operation smoothness of the visual networking terminal user interface is improved, and the user experience is further improved.
In the embodiment of the invention, after receiving an input edit box return instruction, acquiring a historical visible area height value of the visible height of a screen view; acquiring a height value of a current visual area corresponding to the visual area of the current user interface; determining the current state of the soft keyboard based on the historical visible area height value and the current visible area height value; under the condition that the current state of the soft keyboard is a hidden state, controlling to adjust the hidden state to be a display state; under the condition that the current state of the soft keyboard is the display state, the soft keyboard is controlled to execute popup, so that the first calling mode from the process of calling the software to popup can be realized, the monitoring on whether the soft keyboard popup is realized, the soft keyboard can be popped up every time a user enters the soft keyboard can be realized, the stability and the reliability of the video networking terminal are improved, the operation smoothness of the video networking terminal user interface is improved, and further, the user experience is improved.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 5, a block diagram of a soft keyboard pop-up calling device according to a fourth embodiment of the present invention is shown, where a soft keyboard pop-up calling device 700 specifically includes:
The first obtaining module 701 is configured to obtain a historical visible area height value of a visible height of a screen view after receiving an input edit box return instruction;
a second obtaining module 702, configured to obtain a current visual area height value corresponding to a current visual area of the user interface; the current visible area height value is the area height of the current user interface except for a soft keyboard;
A determining module 703, configured to determine a current state of the soft keyboard based on the historical visible area height value and the current visible area height value;
A first control module 704, configured to control, when the current state of the soft keyboard is a hidden state, to adjust the hidden state to a display state;
And the second control module 705 is configured to control the soft keyboard to execute pop-up when the current state of the soft keyboard is the display state.
Optionally, the determining module includes:
a first determining sub-module for subtracting the historical visible area height value from the current visible area height value to determine a second height difference;
The second determining submodule is used for determining that the soft keyboard is in the hidden state under the condition that the second height difference value is larger than or equal to a preset height difference threshold value;
The preset height difference threshold value is a fixed height value of the soft keyboard.
Optionally, the determining module includes:
a third determining sub-module for subtracting the current visible area height value from the historical visible area height value to determine a first height difference;
A fourth determining submodule, configured to determine that the soft keyboard is in the display state when the first height difference value is greater than or equal to a preset height difference threshold value;
The preset height difference threshold value is a fixed height value of the soft keyboard.
Optionally, the first obtaining module includes:
The detection sub-module is used for monitoring a monitoring view based on the root view after receiving the input edit box return instruction;
And the acquisition sub-module is used for acquiring the historical visible area height value of the visible height of the screen view in the monitoring view.
In the embodiment of the invention, after receiving an input edit box return instruction, acquiring a historical visible area height value of the visible height of a screen view; acquiring a height value of a current visual area corresponding to the visual area of the current user interface; determining the current state of the soft keyboard based on the historical visible area height value and the current visible area height value; under the condition that the current state of the soft keyboard is a hidden state, controlling to adjust the hidden state to be a display state; under the condition that the current state of the soft keyboard is the display state, the soft keyboard is controlled to execute popup, so that the first calling mode from the process of calling the software to popup can be realized, the monitoring on whether the soft keyboard popup is realized, the soft keyboard can be popped up every time a user enters the soft keyboard can be realized, the stability and the reliability of the video networking terminal are improved, the operation smoothness of the video networking terminal user interface is improved, and further, the user experience is improved.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The embodiment of the invention also provides electronic equipment, which comprises:
one or more processors; and
One or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform a data transmission method as described above.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program for causing a processor to execute the data transmission method.
The video networking is an important milestone for network development, is a real-time network, can realize real-time transmission of high-definition videos, and pushes numerous internet applications to high-definition videos, and the high definition faces.
The video networking adopts a real-time high-definition video exchange technology, and can integrate all required services such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delay television, network teaching, live broadcast, VOD on demand, television mail, personal record (PVR), intranet (self-processing) channel, intelligent video playing control, information release and other tens of services into one system platform, and realize high-definition quality video playing through television or computer.
For a better understanding of embodiments of the present invention, the following description of the video networking is presented to one skilled in the art:
The partial techniques applied by the video networking are as follows:
network technology (Network Technology)
The network technology innovation of the internet of vision improves on the traditional Ethernet (Ethernet) to face the potentially huge video traffic on the network. Unlike pure network packet switching (PACKET SWITCHING) or network circuit switching (Circuit Switching), the technology of video networking employs PACKET SWITCHING to meet Streaming requirements. The video networking technology has the flexibility, simplicity and low price of packet switching, and simultaneously has the quality and the safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Exchange technology (SWITCHING TECHNOLOGY)
The video network adopts the two advantages of the asynchronization and the packet switching of the Ethernet, eliminates the Ethernet defect on the premise of full compatibility, has full-network end-to-end seamless connection, and is directly connected with the user terminal to directly bear the IP data packet. The user data does not need any format conversion in the whole network. The video networking is a higher-level form of Ethernet, is a real-time exchange platform, can realize real-time transmission of full-network large-scale high-definition video which cannot be realized by the current Internet, and pushes numerous network video applications to high definition and unification.
Server technology (Server Technology)
The server technology on the video networking and unified video platform is different from the server in the traditional sense, the streaming media transmission is based on connection-oriented basis, the data processing capability is irrelevant to the flow and the communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than hundred times than that of a traditional server.
Accumulator technology (Storage Technology)
The ultra-high-speed storage technology of the unified video platform adopts the most advanced real-time operating system for adapting to the ultra-large capacity and ultra-large flow media content, the program information in the server instruction is mapped to a specific hard disk space, the media content does not pass through the server any more, the media content is instantly and directly delivered to a user terminal, and the waiting time of the user is generally less than 0.2 seconds. The optimized sector distribution greatly reduces the mechanical motion of magnetic head seek of the hard disk, the resource consumption only accounts for 20% of the IP Internet of the same grade, but the concurrent flow which is 3 times greater than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network security technology (Network Security Technology)
The structural design of the video networking thoroughly structurally solves the network security problem puzzling the Internet by means of independent permission of each service, complete isolation of equipment and user data and the like, generally does not need antivirus programs or firewalls, eliminates attacks of hackers and viruses, and provides a structural carefree security network for users.
Service innovation technology (Service Innovation Technology)
The unified video platform fuses services with transmissions, whether a single user, private network users or a network aggregate, but automatically connects at a time. The user terminal, the set top box or the PC is directly connected to the unified video platform, so that various multimedia video services are obtained. The unified video platform adopts a menu type table allocation mode to replace the traditional complex application programming, and can realize complex application by using very few codes, thereby realizing 'infinite' new business innovation.
Networking of the video networking is as follows:
the video networking is a centrally controlled network structure, which may be of the tree network, star network, ring network, etc., but on the basis of this there is a need for a centralized control node in the network to control the whole network.
As shown in fig. 6, the view network is divided into an access network and a metropolitan area network.
The devices of the access network part can be mainly divided into 3 classes: node server, access switch, terminal (including various set-top boxes, code boards, memories, etc.). The node server is connected with an access switch, which can be connected with a plurality of terminals and can be connected with an Ethernet.
The node server is a node with a centralized control function in the access network, and can control the access switch and the terminal. The node server may be directly connected to the access switch or may be directly connected to the terminal.
Similarly, devices of the metropolitan area network portion can also be classified into 3 categories: metropolitan area server, node switch, node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is the node server of the access network part, namely the node server belongs to the access network part and also belongs to the metropolitan area network part.
The metropolitan area server is a node with centralized control function in the metropolitan area network, and can control a node switch and a node server. The metropolitan area server may be directly connected to the node switch or directly connected to the node server.
Thus, the whole video network is a hierarchical centralized control network structure, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star, ring and the like.
The access network part can be vividly called as a unified video platform (part in a dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform can be interconnected and intercommunicated through metropolitan area and wide area video networking.
View networking device classification
1.1 Devices in the visual network according to the embodiment of the present invention may be mainly classified into 3 types: a server, a switch (including an ethernet gateway), a terminal (including various set-top boxes, a code board, a memory, etc.). The view networking can be divided into metropolitan area networks (or national networks, global networks, etc.) and access networks as a whole.
1.2 Devices in the access network part can be mainly classified into 3 classes: node server, access switch (including Ethernet gateway), terminal (including various set-top boxes, code board, memory, etc.).
The specific hardware structure of each access network device is as follows:
the node server:
as shown in fig. 7, the device mainly comprises a network interface module 201, a switching engine module 202, a CPU module 203 and a disk array module 204;
Wherein, the network interface module 201, the cpu module 203 and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of looking up the address table 205 on the incoming packet, thereby obtaining packet guiding information; and stores the packet into a corresponding queue of the packet buffer 206 according to the packet's guiding information; discarding if the queue of the packet buffer 206 is nearly full; the switch engine module 202 polls all packet buffer queues for forwarding if the following conditions are met: 1) The port sending buffer is not full; 2) The queue packet counter is greater than zero. The disk array module 204 mainly controls the hard disk, including initializing, reading and writing operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with access switches and terminals (not shown), configuration of the address table 205 (including a downstream protocol packet address table, an upstream protocol packet address table, and a data packet address table), and configuration of the disk array module 204.
Access switch:
as shown in fig. 8, mainly includes a network interface module (a downstream network interface module 301, an upstream network interface module 302), a switching engine module 303, and a CPU module 304;
Wherein, the packet (uplink data) coming in from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), source Address (SA), packet type, and packet length of the packet meet the requirements, if so, allocates a corresponding stream identifier (stream-id), and enters the switching engine module 303, otherwise, discards the packet; the packets (downstream data) coming in from the upstream network interface module 302 enter the switching engine module 303; the data packet coming in from the CPU module 304 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up an address table 306 on an incoming packet, thereby obtaining packet guiding information; if a packet entering the switching engine module 303 is sent from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in association with a stream identifier (stream-id); discarding if the queue of the packet buffer 307 is nearly full; if the packet entering the switching engine module 303 is not sent from the downlink network interface to the uplink network interface, storing the data packet into the queue of the corresponding packet buffer 307 according to the packet guiding information; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switch engine module 303 polls all packet buffer queues, in two cases in the embodiment of the present invention:
if the queue is sent from the downlink network interface to the uplink network interface, the following conditions are satisfied for forwarding: 1) The port sending buffer is not full; 2) The queue packet counter is greater than zero; 3) Obtaining a token generated by a code rate control module;
If the queue is not addressed by the downstream network interface to the upstream network interface, the following condition is satisfied for forwarding: 1) The port sending buffer is not full; 2) The queue packet counter is greater than zero.
The rate control module 308 is configured by the CPU module 304 to generate tokens for all packet buffer queues from the downstream network interface to the upstream network interface at programmable intervals to control the rate of upstream forwarding.
The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the rate control module 308.
Ethernet corotation gateway:
As shown in fig. 9, the network interface module (downlink network interface module 401, uplink network interface module 402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, packet buffer 407, MAC adding module 409, and MAC deleting module 410 are mainly included.
Wherein, the data packet coming in from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, ethernet MAC SA, ethernet length or FRAME TYPE, the internet-of-view destination address DA, the internet-of-view source address SA, the internet-of-view packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC DA, MAC SA, length or FRAME TYPE (2 bytes) are subtracted by the MAC delete module 410 and enter the corresponding receive buffer, otherwise discarded;
The downlink network interface module 401 detects the sending buffer of the port, if there is a packet, acquires the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet's internet of view, adds the ethernet MAC DA of the terminal, the MAC SA of the ethernet co-ordination gateway, and the ethernet length or FRAME TYPE, and sends.
The function of the other modules in the ethernet corotation gateway is similar to that of the access switch.
And (3) a terminal:
The system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set top box mainly comprises a network interface module, a video/audio encoding/decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 Devices of the metropolitan area network part can be mainly classified into 2 classes: node server, node switch, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. View networking data packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), source Address (SA), reserved bytes, payload (PDU), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
DA | SA | Reserved | Payload | CRC |
wherein:
The Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), 256 possibilities are at most provided, the second byte to the sixth byte are metropolitan area network addresses, and the seventh and eighth bytes are access network addresses;
the Source Address (SA) is also composed of 8 bytes (bytes), defined identically to the Destination Address (DA);
The reserved bytes consist of 2 bytes;
The payload portion has different lengths according to the types of the different datagrams, and is 64 bytes if it is various protocol packets, and 32+1024=1056 bytes if it is a unicast packet, and is of course not limited to the above 2 types;
the CRC consists of 4 bytes and its calculation method follows the standard ethernet CRC algorithm.
2.2 Metropolitan area network packet definition
The topology of the metropolitan area network is a pattern, there may be 2 or even more than 2 connections between two devices, i.e. there may be more than 2 connections between node switches and node servers, node switches and node switches, node switches and node servers. However, the metropolitan area network address of the metropolitan area network device is unique, and in order to accurately describe the connection relationship between metropolitan area network devices, parameters are introduced in the embodiment of the present invention: a tag to uniquely describe a metropolitan area network device.
In this specification, the definition of label is similar to that of MPLS (Multi-Protocol Label Switch, multiprotocol label switching), and assuming that there are two connections between device a and device B, there are 2 labels for packets from device a to device B, and 2 labels for packets from device B to device a. The label is split into label and label out, and assuming that the label (in label) of the packet entering the device a is 0x0000, the label (out label) of the packet when leaving the device a may become 0x0001. The network access process of the metropolitan area network is a network access process under centralized control, that is, the address allocation and label allocation of the metropolitan area network are all led by the metropolitan area server, the node switch and the node server are all passively executed, which is different from the label allocation of the MPLS, which is the result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metropolitan area network mainly includes the following parts:
DA | SA | Reserved | Label (Label) | Payload | CRC |
I.e. Destination Address (DA), source Address (SA), reserved bytes (Reserved), labels, payload (PDU), CRC. Wherein the format of the tag may be defined with reference to the following: the tag is 32 bits, with the high 16bit reservation, with only the low 16bit, and its position is between the reserved bytes and payload of the packet.
Based on the characteristics of the video networking, one of the core concepts of the embodiment of the invention is provided, and after receiving an input edit box return instruction, a historical visible area height value of the visible height of the screen view is obtained; acquiring a height value of a current visual area corresponding to the visual area of the current user interface; determining the current state of the soft keyboard based on the historical visible area height value and the current visible area height value; under the condition that the current state of the soft keyboard is a hidden state, controlling to adjust the hidden state to be a display state; under the condition that the current state of the soft keyboard is the display state, the soft keyboard is controlled to execute popup, so that the first calling mode from the process of calling the software to popup can be realized, the monitoring on whether the soft keyboard popup is realized, the soft keyboard can be popped up every time a user enters the soft keyboard can be realized, the stability and the reliability of the video networking terminal are improved, the operation smoothness of the video networking terminal user interface is improved, and further, the user experience is improved.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or terminal device that comprises the element.
The foregoing has described in detail a data transmission method and apparatus provided by the present invention, and specific examples have been applied herein to illustrate the principles and embodiments of the present invention, and the above description of the examples is only for helping to understand the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.
Claims (6)
1. A soft keyboard pop-up invocation method, the method comprising:
after receiving an input edit box return instruction, acquiring a historical visible area height value of the visible height of a screen view, wherein the historical visible area height value is the last visible height value corresponding to a user interface;
acquiring a height value of a current visual area corresponding to the visual area of the current user interface; the current visible area height value is the area height of the current user interface except for a soft keyboard;
determining the current state of the soft keyboard based on the difference between the historical visible area height value and the current visible area height value;
Under the condition that the current state of the soft keyboard is a hidden state, controlling to adjust the hidden state to be a display state;
when the current state of the soft keyboard is updated from a hidden state to a display state or is in the display state, restoring the input editing frame to an editing frame default state, and controlling the soft keyboard to execute popup;
wherein the determining the current state of the soft keyboard based on the historical visible area height value and the current visible area height value comprises:
Subtracting the current visible area height value from the historical visible area height value to determine a first height difference value;
Determining that the soft keyboard is in the display state under the condition that the first height difference value is greater than or equal to a preset height difference threshold value;
Wherein the preset height difference threshold is a fixed height value of the soft keyboard;
subtracting the historical visible area height value from the current visible area height value to determine a second height difference value;
Determining that the soft keyboard is in the hidden state under the condition that the second height difference value is greater than or equal to a preset height difference threshold value;
The preset height difference threshold value is a fixed height value of the soft keyboard.
2. The method according to claim 1, wherein the step of obtaining the historical visible area height value of the visible height of the screen view after receiving the input edit box return instruction comprises:
Monitoring a monitoring view based on a root view after receiving the input edit box return instruction;
And acquiring the historical visible area height value of the visible height of the screen view in the monitoring view.
3. A soft keyboard pop-up recall device, the device comprising:
The first acquisition module is used for acquiring a historical visible area height value of the visible height of the screen view after receiving an input edit box return instruction, wherein the historical visible area height value is the last visible height value corresponding to the user interface;
The second acquisition module is used for acquiring the height value of the current visual area corresponding to the visual area of the current user interface; the current visible area height value is the area height of the current user interface except for a soft keyboard;
The determining module is used for determining the current state of the soft keyboard based on the difference value between the historical visible area height value and the current visible area height value;
the first control module is used for controlling the hidden state to be adjusted to be a display state under the condition that the current state of the soft keyboard is the hidden state;
The second control module is used for restoring the input edit box to the default edit box state and controlling the soft keyboard to execute popup when the current state of the soft keyboard is updated from the hidden state to the display state or is in the display state;
The determining module includes:
a first determining sub-module for subtracting the historical visible area height value from the current visible area height value to determine a second height difference;
The second determining submodule is used for determining that the soft keyboard is in the hidden state under the condition that the second height difference value is larger than or equal to a preset height difference threshold value;
Wherein the preset height difference threshold is a fixed height value of the soft keyboard;
a third determining sub-module for subtracting the current visible area height value from the historical visible area height value to determine a first height difference;
A fourth determining submodule, configured to determine that the soft keyboard is in the display state when the first height difference value is greater than or equal to a preset height difference threshold value;
The preset height difference threshold value is a fixed height value of the soft keyboard.
4. The apparatus of claim 3, wherein the first acquisition module comprises:
The detection sub-module is used for monitoring a monitoring view based on the root view after receiving the input edit box return instruction;
And the acquisition sub-module is used for acquiring the historical visible area height value of the visible height of the screen view in the monitoring view.
5. An electronic device, comprising:
one or more processors; and
One or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the electronic device to perform the soft keyboard pop-up invocation method of claim 1 or 2.
6. A computer-readable storage medium storing a computer program for causing a processor to execute the soft keyboard pop-up invocation method of claim 1 or 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110343799.4A CN113312124B (en) | 2021-03-30 | 2021-03-30 | Soft keyboard pop-up calling method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110343799.4A CN113312124B (en) | 2021-03-30 | 2021-03-30 | Soft keyboard pop-up calling method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113312124A CN113312124A (en) | 2021-08-27 |
CN113312124B true CN113312124B (en) | 2024-07-16 |
Family
ID=77371985
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110343799.4A Active CN113312124B (en) | 2021-03-30 | 2021-03-30 | Soft keyboard pop-up calling method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113312124B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107340886A (en) * | 2017-08-04 | 2017-11-10 | 腾讯科技(深圳)有限公司 | A kind of soft keyboard state determines method, apparatus, medium and terminal |
CN109710167A (en) * | 2018-12-27 | 2019-05-03 | 北京字节跳动网络技术有限公司 | Soft keyboard control method, device and terminal |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2027103A1 (en) * | 1989-10-13 | 1991-04-14 | William A. Clough | Method and apparatus for displaying simulated keyboards on touch-sensitive displays |
JP2009116769A (en) * | 2007-11-09 | 2009-05-28 | Sony Corp | Input device, control method for input device and program |
JP2010026629A (en) * | 2008-07-16 | 2010-02-04 | Casio Comput Co Ltd | Server device, client device, server base computing system, server control program, client control program |
CN101572746A (en) * | 2009-06-03 | 2009-11-04 | 魏新成 | Method for inputting characters on touch screen of internet-enabled mobile phone through virtual keyboard |
US9552156B2 (en) * | 2014-10-01 | 2017-01-24 | Htc Corporation | Method for operating soft keyboard of touching device and the same touching device |
CN106339211B (en) * | 2016-08-12 | 2020-01-17 | 北京领通科技有限公司 | Monitoring method and device for inconsistent display in remote service of intelligent terminal |
CN106775195B (en) * | 2016-11-16 | 2018-09-18 | 竞技世界(北京)网络技术有限公司 | A kind of control method and device of suspension button |
CN108093450B (en) * | 2018-01-08 | 2020-04-10 | 平安科技(深圳)有限公司 | Network switching method and terminal equipment |
CN111562876B (en) * | 2020-04-17 | 2025-03-28 | 深圳传音控股股份有限公司 | Virtual keyboard setting method, device and storage medium |
-
2021
- 2021-03-30 CN CN202110343799.4A patent/CN113312124B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107340886A (en) * | 2017-08-04 | 2017-11-10 | 腾讯科技(深圳)有限公司 | A kind of soft keyboard state determines method, apparatus, medium and terminal |
CN109710167A (en) * | 2018-12-27 | 2019-05-03 | 北京字节跳动网络技术有限公司 | Soft keyboard control method, device and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN113312124A (en) | 2021-08-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109168064B (en) | Synchronous display method and system of electronic data | |
CN108462589B (en) | A kind of method for connecting network and device of terminal | |
CN109547731B (en) | Video conference display method and system | |
CN108965226B (en) | Data acquisition method and device based on video network | |
CN111131754A (en) | Control split screen method and device of conference management system | |
CN110113564B (en) | Data acquisition method and video networking system | |
CN109788235B (en) | Video networking-based conference recording information processing method and system | |
CN109547727B (en) | Data caching method and device | |
CN110737519A (en) | theme switching method and device | |
CN110149305B (en) | A method and transfer server for multi-party playing audio and video based on video networking | |
CN109768957B (en) | Method and system for processing monitoring data | |
CN110418169B (en) | Monitoring data carousel method and device | |
CN110022286B (en) | Method and device for requesting multimedia program | |
CN110134892B (en) | Loading method and system of monitoring resource list | |
CN109963107B (en) | Audio and video data display method and system | |
CN109218824B (en) | Service processing method and device | |
CN110018861B (en) | Message prompting method and device for application program | |
CN113312124B (en) | Soft keyboard pop-up calling method and device | |
CN111614921B (en) | A communication method and device | |
CN112346799B (en) | Terminal control method, device, electronic device and storage medium | |
CN110839141A (en) | Resource acquisition method and device | |
CN111669536B (en) | Number management method and device based on video networking, electronic equipment and storage medium | |
CN110557411A (en) | video stream processing method and device based on video network | |
CN110446069B (en) | A video communication method, device and storage medium based on video networking terminal | |
CN110139061B (en) | A kind of video stream split screen display method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |