CN114895995A - Control view generation method and device, electronic equipment and readable medium - Google Patents
Control view generation method and device, electronic equipment and readable medium Download PDFInfo
- Publication number
- CN114895995A CN114895995A CN202210263914.1A CN202210263914A CN114895995A CN 114895995 A CN114895995 A CN 114895995A CN 202210263914 A CN202210263914 A CN 202210263914A CN 114895995 A CN114895995 A CN 114895995A
- Authority
- CN
- China
- Prior art keywords
- control
- layout
- attribute
- generating
- view
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 123
- 238000006243 chemical reaction Methods 0.000 claims abstract description 102
- 230000008569 process Effects 0.000 claims description 28
- 238000004891 communication Methods 0.000 claims description 18
- 230000009466 transformation Effects 0.000 claims description 15
- 238000004364 calculation method Methods 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 6
- 230000000694 effects Effects 0.000 abstract description 21
- 238000007726 management method Methods 0.000 description 9
- 230000004048 modification Effects 0.000 description 7
- 238000012986 modification Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000006978 adaptation Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 239000003795 chemical substances by application Substances 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013501 data transformation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
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)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention provides a method and a device for generating a control view, electronic equipment and a readable medium, wherein the method comprises the following steps: acquiring a characteristic value corresponding to at least one layout attribute in a control instance; respectively determining a hierarchy conversion coefficient corresponding to each layout attribute based on the service scenes recorded in the characteristic values; respectively calculating a target value corresponding to each layout attribute based on the hierarchy conversion coefficient and a reference value recorded in the characteristic value; and generating a control view by adopting the target value corresponding to the layout attribute. Different zooming modes are set for different service scenes, different layout attributes do not need to be zoomed in the same zooming mode, the finally generated control view can have a display effect of standard and beautiful typesetting, and the setting mode is simple, convenient and efficient.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for generating a control view, an electronic device, and a computer-readable medium.
Background
In the prior art, different types of users may typically have different view layout preferences. For example, some users may desire views with smaller text, smaller interface controls, and thus the view layout may give a more elegant look and feel. And part of users expect that the view has larger characters and larger interface controls, so that the view layout is more beneficial for the users to clearly view information.
Generally, some electronic devices, such as mobile phones, computers, and the like, may provide a zoom function for a user, and the user may adjust the font size of characters in a view, the size of an interface control, and the like through the zoom function. However, the view adjusted by the display zoom function often has the problems of abnormal layout, unattractive view display, and the like, so that it is difficult for a user to perform friendly interactive operation with the view adjusted by the display zoom function.
Disclosure of Invention
The embodiment of the invention provides a method and a device for generating a control view, electronic equipment and a computer readable storage medium, which are used for solving the problem that the view cannot be normally displayed after being zoomed.
The embodiment of the invention discloses a method for generating a control view, which comprises the following steps:
in the generation process of the control view, acquiring a characteristic value corresponding to at least one layout attribute in a control instance;
respectively determining a hierarchy conversion coefficient corresponding to each layout attribute based on the service scenes recorded in the characteristic values;
respectively calculating a target value corresponding to each layout attribute based on the hierarchy conversion coefficient and a reference value recorded in the characteristic value;
and generating a control view by adopting the target value corresponding to the layout attribute.
Optionally, the step of obtaining a feature value corresponding to at least one layout attribute in the control instance includes:
acquiring a layout configuration file;
generating an object through a self-defined control, and generating at least one control instance based on the layout configuration file;
and reading the attribute configuration object in the control instance through the control generation object to obtain the characteristic value corresponding to at least one layout attribute.
Optionally, the step of generating an object through a customized control and generating at least one control instance based on the layout configuration file includes:
if the user-defined control generation object detects that the layout configuration file contains at least one preset type of control configuration information and the control configuration information contains at least one characteristic value corresponding to one layout attribute, a user-defined view layout loader is called for the control configuration information to generate a control instance containing the characteristic value.
Optionally, the step of determining a hierarchical transformation coefficient corresponding to each of the layout attributes respectively based on the service scenarios recorded in the feature values includes:
and generating an object access hierarchy management class through the control according to each layout attribute, and acquiring a hierarchy conversion coefficient corresponding to the service scene recorded in the characteristic value.
Optionally, the step of calculating a target value corresponding to each of the layout attributes based on the hierarchical conversion coefficient and a reference value recorded in the feature value includes:
and generating an object access data conversion class through the control, and acquiring a target value corresponding to each layout attribute calculated based on the hierarchy conversion coefficient and a reference value recorded in the characteristic value.
Optionally, the step of generating a control view by using the target value corresponding to the layout attribute includes:
generating an object through the control, and storing a target value corresponding to the layout attribute into an attribute proxy class in the control instance;
in the process of generating a control view, setting a parameter corresponding to at least one layout attribute in the control view by calling a layout parameter configuration method;
and modifying the parameters corresponding to the layout attributes into the target values through the attribute proxy class.
Optionally, the step of calculating a target value corresponding to each of the layout attributes based on the hierarchical conversion coefficient and a reference value recorded in the feature value includes:
under the condition that a control view is generated based on a preset programming language, accessing a data conversion class at an interface inside the control instance, and acquiring a target value corresponding to each layout attribute calculated based on the level conversion coefficient and a reference value recorded in the characteristic value;
the step of generating the control view by adopting the target value corresponding to the layout attribute comprises the following steps:
creating a property proxy class in the control instance, and storing a target value corresponding to each layout property in the property proxy class;
in the process of generating a control view, setting a parameter corresponding to at least one layout attribute in the control view by calling a layout parameter configuration method;
and modifying the parameters corresponding to the layout attributes into the target values through the attribute proxy class.
Optionally, the method further comprises:
and under the condition of generating the control view based on the preset programming language, generating the control view of the control by inheriting the corresponding parent class control view.
The embodiment of the present invention further provides a device for generating a control view, including:
the characteristic value acquisition module is used for acquiring a characteristic value corresponding to at least one layout attribute in the control instance;
a coefficient determining module, configured to determine, based on the service scenarios recorded in the feature values, a hierarchy transformation coefficient corresponding to each of the layout attributes, respectively;
a target value calculation module, configured to calculate a target value corresponding to each of the layout attributes based on the hierarchical conversion coefficient and a reference value recorded in the feature value;
and the view generation module is used for generating a control view by adopting the target value corresponding to the layout attribute.
Optionally, the feature value obtaining module includes:
the configuration acquisition submodule is used for acquiring a layout configuration file;
the instance generation submodule is used for generating an object through a self-defined control and generating at least one control instance based on the layout configuration file;
and the characteristic value acquisition submodule is used for reading the attribute configuration object in the control instance through the control generation object and acquiring the characteristic value corresponding to at least one layout attribute.
Optionally, the instance generation sub-module includes:
and the instance generating unit is used for calling a self-defined view layout loader to generate a control instance containing at least one feature value according to the control configuration information if the self-defined control generating object detects that the layout configuration file contains at least one preset type of control configuration information and the control configuration information contains at least one feature value corresponding to the layout attribute.
Optionally, the coefficient determining module includes:
and the coefficient determining submodule is used for generating an object access hierarchy management class through the control according to each layout attribute and acquiring a hierarchy conversion coefficient corresponding to the service scene recorded in the characteristic value.
Optionally, the target value calculation module includes:
and the first target value calculation submodule is used for generating an object access data conversion class through the control and acquiring a target value corresponding to each layout attribute calculated on the basis of the hierarchy conversion coefficient and a reference value recorded in the characteristic value.
Optionally, the view generation module includes:
the target value storage submodule is used for generating an object through the control and storing the target value corresponding to the layout attribute into an attribute proxy class in the control instance;
the first parameter setting submodule is used for setting a parameter corresponding to at least one layout attribute in the control view by calling a layout parameter configuration device in the process of generating the control view;
and the first parameter modification submodule is used for modifying the parameters corresponding to the layout attributes into the target values through the attribute proxy class.
Optionally, the target value calculation module includes:
a second target value calculation submodule, configured to, in a case where a control view is generated based on a preset programming language, access a data conversion class at an interface inside the control instance, and obtain a target value corresponding to each of the layout attributes calculated based on the level conversion coefficient and a reference value recorded in the feature value;
the view generation module includes:
the object creating submodule is used for creating an attribute proxy class in the control instance and storing a target value corresponding to each layout attribute in the attribute proxy class;
the second parameter setting submodule is used for setting a parameter corresponding to at least one layout attribute in the control view by calling a layout parameter configuration device in the process of generating the control view;
and the second parameter modification submodule is used for modifying the parameters corresponding to the layout attributes into the target values through the attribute proxy class.
Optionally, the apparatus further comprises:
and the inheritance module is used for generating the control view of the inheritance module by relaying the corresponding parent class control view under the condition that the control view is generated based on the preset programming language.
The embodiment of the invention also discloses electronic equipment which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory finish mutual communication through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the method according to the embodiment of the present invention when executing the program stored in the memory.
Also disclosed are one or more computer-readable media having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform a method according to an embodiment of the invention.
The embodiment of the invention has the following advantages:
by the method for generating the control view, the characteristic value corresponding to at least one layout attribute in the control instance is obtained, and the custom setting of the layout attribute is realized based on the custom characteristic value; and respectively determining each hierarchical conversion coefficient corresponding to the layout attributes based on the service scenes recorded in the characteristic values, setting different scaling modes aiming at different service scenes based on the hierarchical conversion coefficients, respectively calculating each target value corresponding to the layout attributes based on the hierarchical conversion coefficients and the reference values recorded in the characteristic values, respectively calculating the target values corresponding to the layout attributes, and generating a control view by adopting the target values corresponding to the layout attributes, so that the finally generated control view can have the display effect of typesetting and normative and beautiful appearance, and the setting modes are simple, convenient and efficient.
Drawings
FIG. 1 is a flowchart illustrating steps of a method for generating a control view according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a method for generating a control view according to another embodiment of the present invention;
FIG. 3 is a flowchart illustrating loading of a control view according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for generating a control view according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating steps of a method for generating a control view according to another embodiment of the present invention;
fig. 6 is a block diagram of a device for generating a control view according to an embodiment of the present invention;
fig. 7 is a block diagram of an electronic device provided in an embodiment of the invention;
fig. 8 is a schematic diagram of a computer-readable medium provided in an embodiment of the invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
According to the embodiment of the invention, aiming at the condition that the view is difficult to be normally and beautifully displayed after being zoomed and adjusted, different characteristic values are set according to different layout attributes in the control, and different service scenes are set for the characteristic values. Therefore, in the process of generating the view corresponding to the control, the same scaling proportion does not need to be adopted for scaling all the layout attributes, the hierarchical conversion coefficient corresponding to the layout attributes can be determined based on the service scene, and the target value of the layout attributes under the current scaling condition is determined based on the hierarchical conversion coefficient, so that different layout attributes can have different scaling adjustment modes, and the view subjected to scaling adjustment can still keep normal and attractive display effect. Meanwhile, by means of the scaling adjustment mode based on the characteristic values and the service scene, various layout attributes can be set respectively without aiming at various controls in views at different scaling ratios, the control views can be efficiently adjusted through the characteristic values, the characteristic values are simple and convenient to set, and developers are not required to perform complex processing on the bottom codes of the controls.
Referring to fig. 1, a flowchart illustrating steps of a method for generating a control view provided in an embodiment of the present invention is shown, which may specifically include the following steps:
during the generation of the control view, at least one layout attribute may be obtained from the control instance to determine how different elements in the control view should be exposed.
In particular, a control instance can be an object used to define how the control is exposed in a graphical interface. The control can be an element with an interaction function with a user in the graphical interface. Such as buttons, sliders, menus, icons, tabs, progress bars, dialog boxes, panel windows, and the like.
The control instance may be described with layout properties. The layout attributes may include font size, padding (padding) interval, control height, outer space interval, outer control bottom interval, outer control tail interval, outer control left-outside interval, outer control right-outside interval, outer control start interval, outer control top interval, inner control bottom interval, inner control tail interval, inner control left-inside interval, inner control right-inside interval, inner control start interval, inner control top interval, control width, and other attributes associated with the layout of the control view, which is not limited in the present invention.
Generally, the value of the layout property may be a fixed value or may be a value that is adaptive based on system scaling. The control view can be generated more beautiful under different scales. The values of part or all of the layout properties recorded in the control instance can be replaced by self-defined feature values, so that the target values to be set by different layout properties of the control view at different scales can be further determined based on the feature values.
In a specific implementation, the characteristic value may include a service scenario and a reference value. The service scenario may record the service to which the layout attribute currently belongs, so as to match different view adaptation rules for different service scenarios. The reference value may be a standard value of the layout property without scaling. The reference value may default to the unit "dp" (device independent pixels) so that similar display effects may be possible in handsets of different resolutions.
For example, if the feature value corresponding to the out-of-space of the layout attribute is "auto _ change _ size _ CALEN dar _ 17", where "auto _ change _ size" indicates that the value is the feature value, a step-by-step line conversion is subsequently required to determine the target value; "calendar" indicates that the current service scene is a calendar scene, so that the number of targets to be set by the layout attribute is adjusted by using the view adaptation rule corresponding to the calendar scene in the following process, and "17" indicates that the reference value of the current layout attribute is 17 dp.
102, respectively determining a hierarchy conversion coefficient corresponding to each layout attribute based on the service scene recorded in the characteristic value;
in general, an electronic device may be provided with different zoom levels. For example, the zoom level may be small, default, large, oversized, and so on.
The numerical values corresponding to different layout attributes in different scenes can be conveniently set. The level conversion coefficients of different service scenes under different levels can be preset. For example, for a calendar scenario, the hierarchy transformation coefficient at the "default" level may be set to 1, the hierarchy transformation coefficient at the "small" level may be set to 0.8, the hierarchy transformation coefficient at the "large" level may be set to 1.1, the hierarchy transformation coefficient at the "large" level may be set to 1.2, and the hierarchy transformation coefficient at the "extra large" level may be set to 1.3. For the chat scene, the hierarchy conversion coefficient under the default hierarchy level is 1, the hierarchy conversion coefficient under the small hierarchy level is 0.8, the hierarchy conversion coefficient under the large hierarchy level is 1.2, the hierarchy conversion coefficient under the large hierarchy level is 1.4, and the hierarchy conversion coefficient under the extra large hierarchy level is 1.6.
Therefore, after the feature values are obtained, the hierarchy conversion coefficient corresponding to the current layout attribute can be further determined based on the service scene recorded in the feature values of the layout attribute, the zoom hierarchy where the current electronic device is located, and the hierarchy conversion coefficients of the preset service scene at different hierarchies. Therefore, the method can efficiently determine how the layout attribute should be scaled through the service scene without setting the layout attribute respectively under different levels.
after the level conversion coefficient of the layout attribute is determined, the target value corresponding to each layout attribute can be respectively calculated based on the level conversion coefficient and the reference value recorded in the characteristic value, so as to determine that the layout attribute shows the target value to be set in the control view.
Specifically, the product between the hierarchy conversion coefficient and the reference value may be taken as the target value. For example, if the level conversion coefficient is 1, i.e. scaling is not required, the target value of the layout attribute may be the reference value. In the case where the hierarchical conversion coefficient is 0.8 and the reference value is 40dp, the target value may be 40 × 0.8 — 32 dp. In the case where the hierarchical conversion coefficient is 1.2 and the reference value is 40dp, the target value may be 40 × 1.2 — 48 dp.
And 104, generating a control view by adopting the target value corresponding to the layout attribute.
The target value to be set is displayed in the control view by the obtained layout attribute, namely the target value corresponding to the layout attribute is adopted, a preset view generation method in the system is called to generate the control view, the zoom display of the control is realized, and the hierarchy conversion coefficient can be determined based on the service scene corresponding to the layout attribute in the control without using a uniform zoom mode, so that the finally generated control view can have the display effect of standard and beautiful typesetting, and the setting mode is simple, convenient and efficient.
By the method for generating the control view, the characteristic value corresponding to at least one layout attribute in the control instance is obtained, and the custom setting of the layout attribute is realized based on the custom characteristic value; and respectively determining each hierarchical conversion coefficient corresponding to the layout attributes based on the service scenes recorded in the characteristic values, setting different scaling modes aiming at different service scenes based on the hierarchical conversion coefficients, respectively calculating each target value corresponding to the layout attributes based on the hierarchical conversion coefficients and the reference values recorded in the characteristic values, respectively calculating the target values corresponding to the layout attributes, and generating a control view by adopting the target values corresponding to the layout attributes, so that the finally generated control view can have the display effect of typesetting and normative and beautiful appearance, and the setting modes are simple, convenient and efficient.
Referring to fig. 2, a flowchart illustrating a step of a method for generating a control view provided in an embodiment of the present invention is shown, and specifically may include the following steps:
in particular, the control view may generally be generated in two different ways, one for generating a control view for an XML-format-based layout configuration file. Another generates a control view for a programming language based view generating object, such as a Java object.
In the case where the control view is generated based on the layout configuration file in the XML format, the layout configuration file may be obtained first. The layout configuration file may be recorded with configuration information required by at least one control to generate its corresponding control view. So that how the control view should be presented can be derived based on the layout configuration file.
202, generating an object through a self-defined control, and generating at least one control instance based on the layout configuration file;
if a control view is generated based on a layout configuration file in an XML format, there are generally two implementation approaches. The method is used for completing the creation of the control view by calling setContentView method (used for setting view layout) in an onCreate method (a life cycle callback method in Activity, which represents that Activity is created) in Activity (a view container used for interactive operation with a user). Another method is to use the invert method (method for loading views) of the layout loader of the layout of the control in the custom view or in other scenes of non-Activity. However, as for the way of calling the setContentView method in the onCreate method in Activity to complete the creation of the control view, actually, the setContentView method also realizes the creation of the control view subsequently by further calling the folder method of the layout infilter. Therefore, the invention can modify the flap method of the layout infilter to realize the adjustment of the zooming effect of the control view in the process of generating the control view based on the layout configuration file in the XML format.
Specifically, fig. 3 is a schematic view of a control view loading flow chart according to an embodiment of the present invention, which shows a specific implementation process of an inflate method based on layout infilter. It can be seen that in the control view loading flow, the inflate method of layout infilter first determines whether a merge tag exists. If present, the rInflite method is called, and if not, the createViewFromTag method of LayoutInfliter is called. In the case of calling the rInflatate method, the rInflatate method calls the parselnclude method back to the merge tag check flow, or the createViewFromTag method of LayoutInflater is also called. The createViewFromTag method can select a target control generation object from a plurality of control generation objects (factory objects), and the creation of the control instance is completed by the onCreateView method of the target control generation object. And then calling a setLayoutParams method in the LayoutInflater to complete the generation of the control view based on the control instance.
Therefore, the invention can generate at least one self-defined control instance by self-defining a control generation object (factorary object) and based on the layout configuration file, so that the value corresponding to the layout attribute in the control instance can be represented by the self-defined characteristic value, and the control view which is displayed in an attractive manner after zooming can be generated based on the characteristic value in the following.
In an embodiment of the present invention, the step of generating an object through a customized control and generating at least one control instance based on the layout configuration file includes:
s11, if the self-defined control generating object detects that the layout configuration file contains at least one preset type of control configuration information, and the control configuration information contains at least one characteristic value corresponding to the layout attribute, a self-defined view layout loader is called to generate a control instance containing the characteristic value according to the control configuration information.
Specifically, the layout configuration file may include at least one preset type of control configuration information, and the control configuration information includes a feature value corresponding to at least one layout attribute. The preset type of control configuration information may correspond to a control capable of performing user-defined zoom setting.
Therefore, in the process of generating the object analysis layout configuration file by the customized control, if the control configuration information of the preset type is detected, a customized view layout loader (AppCompatViewlfler) can be called to generate a customizable control instance corresponding to the preset type. Meanwhile, the control instance may record a characteristic value corresponding to at least one layout attribute included in the control configuration information.
The layout attributes may include, but are not limited to, font size, picture padding (padding) interval, control height, outer space interval, outer control bottom interval, outer control tail interval, outer control left-to-outer interval, outer control right-to-outer interval, outer control start interval, outer control top interval, inner control bottom interval, inner control tail interval, inner control left-to-inner interval, inner control right-to-inner interval, inner control start interval, inner control top interval, control width, and other attributes associated with the layout of the control view.
after obtaining the control instance, the control generation object may further read a property configuration object (AttributeSet) in the control instance to obtain a feature value corresponding to the layout property recorded in the control instance.
In a specific implementation, the characteristic value may include a service scenario and a reference value. The service scenario may record the service to which the layout attribute currently belongs, so as to match different view adaptation rules for different service scenarios. The reference value may be a standard value of the layout property without scaling. The reference value may default to the unit "dp" (device independent pixels) so that similar display effects may be possible in handsets of different resolutions.
in general, an electronic device may be provided with different zoom levels. For example, the zoom level may be small, default, large, oversized, and so on.
The numerical values corresponding to different layout attributes in different scenes can be conveniently set. The level conversion coefficients of the service scene under different levels can be preset for different service scenes and stored in a level management class (fontsizeWorker).
Therefore, after the characteristic values are obtained, the control generation object can further access the hierarchy management class, and the hierarchy conversion coefficient corresponding to the current layout attribute is determined based on the service scene recorded in the characteristic values of the layout attribute, the zoom hierarchy where the current electronic device is located, and the hierarchy conversion coefficients of the preset service scene at different hierarchies. Therefore, the method and the device can efficiently determine how the layout attribute should be scaled through the service scene without setting the layout attribute under different hierarchies.
after the hierarchical transformation coefficient of the layout attribute is determined, an object access data transformation class may be generated by the control, and a target value corresponding to each layout attribute calculated based on the hierarchical transformation coefficient and a reference value described in the feature value may be obtained.
Specifically, a data conversion class (fontsizymanager) for processing data conversion may be accessed through the control generation object, and the data conversion class may calculate a target value corresponding to each of the layout attributes based on the hierarchical conversion coefficient provided by the control generation object and the reference value described in the feature value, and return to the control generation object, so that the control generation object may know the target value that the layout attribute should be set in the control view.
And step 206, generating a control view by adopting the target value corresponding to the layout attribute.
The target value to be set is displayed in the control view by the obtained layout attribute, namely the target value corresponding to the layout attribute is adopted, a preset view generation method in the system is called to generate the control view, the zoom display of the control is realized, and the hierarchy conversion coefficient can be determined based on the service scene corresponding to the layout attribute in the control without using a uniform zoom mode, so that the finally generated control view can have the display effect of standard and beautiful typesetting, and the setting mode is simple, convenient and efficient.
In an embodiment of the present invention, the step of generating a control view by using the target value corresponding to the layout attribute includes:
s21, generating an object through the control, and storing the target value corresponding to the layout attribute into an attribute proxy class in the control instance;
specifically, in the process of generating a control instance by a view layout loader (appcompatviewlflter), a property proxy class (autosizeemaker) can be generated in the control instance. The property proxy class may be provided with an update layout params interface. The property broker class may thus have the ability to modify parameters corresponding to system-generated layout properties.
After the target value corresponding to the layout attribute is determined, the object can be generated through the control, and the target value corresponding to the layout attribute is stored in the attribute proxy class in the control instance, so that the attribute proxy class can modify the parameter corresponding to the layout attribute generated by the system into the customized target value.
S22, in the process of generating the control view, setting a parameter corresponding to at least one layout attribute in the control view by calling a layout parameter configuration method;
in the process of generating the control view, a parameter corresponding to at least one layout attribute in the control view may be set by calling a layout parameter configuration method (setlayout parameters). Because the layout parameter configuration method cannot carry out self-defined modification, the method can generate a parameter corresponding to the layout attribute in a default state.
And S23, modifying the parameters corresponding to the layout attributes into the target values through the attribute proxy class.
And then, modifying the parameters corresponding to the layout attributes into the target values through the attribute proxy class, so that the parameters corresponding to the layout attributes are modified into the self-defined target values. Therefore, the user-defined zooming display of the control can be realized, the hierarchy conversion coefficient can be determined based on the business scene corresponding to the layout attribute in the control, a uniform zooming mode is not needed, the finally generated control view can have the display effect of standard and attractive typesetting, and the setting mode is simple, convenient and efficient.
As an example of the present invention, fig. 4 is a flowchart illustrating a method for generating a control view according to an embodiment of the present invention. An ImageView control can be set in an xml layout configuration file of an Activity object, the width and height properties of the control are set as auto _ change _ size _40, in the generation process of a control view, the layout configuration file can be analyzed through a self-defined control generation object (factor 2 object), and when a control with the type of ImageView is read from the layout configuration file, a self-defined view layout loader (ApptaViewInflater) can create an AutoSizeImageView control instance and return the control instance to a control generation object. When the AttributeSet object is read and analyzed to the fact that the width and height attributes contain characteristic values, the control generation object converts the acquired data (40) to acquire a target value under the current level and assigns the target value to the AutoSizeImageView control instance, a property agent (AutoSizeWorker) in the AutoSizeImageView control instance caches the target value, and when the control view is created through the setLayoutParams method, the parameter generated through the setLayoutParams method is modified into the target value through the property agent (AutoSizeWorker) in the control instance, so that the user-defined zooming display of the control is achieved.
According to the method for generating the control view, provided by the embodiment of the invention, the layout configuration file is obtained, the object is generated through the customized control, at least one control instance is generated based on the layout configuration file, the attribute configuration object in the control instance is read through the control generation object, the characteristic value corresponding to at least one layout attribute is obtained, and the customized setting of the layout attribute is realized based on the customized characteristic value; and generating an object access hierarchy management class through the control aiming at each layout attribute, acquiring a hierarchy conversion coefficient corresponding to the service scene recorded in the characteristic value, setting different scaling modes aiming at different service scenes, wherein the different layout attributes do not need to be scaled in the same scaling mode, generating an object access data conversion class through the control, acquiring a target value corresponding to each layout attribute calculated based on the hierarchy conversion coefficient and the reference value recorded in the characteristic value, and generating a control view by adopting the target value corresponding to the layout attribute, so that the finally generated control view can have a display effect with standard layout and beautiful appearance, and the setting mode is simple, convenient and efficient.
Referring to fig. 5, a flowchart illustrating a step of a method for generating a control view provided in the embodiment of the present invention is shown, and specifically may include the following steps:
in particular, the control view may generally be generated in two different ways, one for generating a control view for an XML-format-based layout configuration file. Another is to generate a control view based on a programming language such as Java.
In the process of generating the control view based on the programming language, a user-defined interface can be usually set in the control instance, and a method for numerical value conversion is called through the interface to complete the self-defined setting of the control.
The method can obtain at least one layout attribute from the control instance to determine how different elements in the control view should be presented.
In a specific implementation, the characteristic value may include a service scenario and a reference value. The service scenario may record the service to which the layout attribute currently belongs, so as to match different view adaptation rules for different service scenarios. The reference value may be a standard value of the layout property without scaling. The reference value may default to the unit "dp" (device independent pixels) so that similar display effects may be possible in handsets of different resolutions.
in general, an electronic device may be provided with different zoom levels. The numerical values corresponding to different layout attributes in different scenes can be conveniently set. The level conversion coefficients of different service scenes under different levels can be preset.
Therefore, after the feature values are obtained, the hierarchy conversion coefficient corresponding to the current layout attribute can be further determined based on the service scene recorded in the feature values of the layout attribute, the zoom hierarchy where the current electronic device is located, and the hierarchy conversion coefficients of the preset service scene at different hierarchies. Therefore, the method can efficiently determine how the layout attribute should be scaled through the service scene without setting the layout attribute respectively under different levels.
Specifically, a method for performing numerical conversion may be called through an interface provided by a Java-based control instance to access a hierarchy management class, and a hierarchy conversion coefficient corresponding to a current layout attribute is determined based on a service scene recorded in a feature value of the layout attribute, a zoom level where a current electronic device is located, and a hierarchy conversion coefficient of a preset service scene at different hierarchies.
after the level conversion coefficient of the layout attribute is determined, the target value corresponding to each layout attribute can be respectively calculated based on the level conversion coefficient and the reference value recorded in the characteristic value, so as to determine that the layout attribute shows the target value to be set in the control view.
Specifically, a method for performing numerical conversion may be called through an interface provided by a Java-based control instance to access a data conversion class (FontSizeManager), and the data conversion class may calculate a target value corresponding to each of the layout attributes based on a hierarchical conversion coefficient provided by a control generation object and a reference value described in the feature value.
And 504, generating a control view by adopting the target value corresponding to the layout attribute.
The target value to be set is displayed in the control view by the obtained layout attributes, namely the target value corresponding to the layout attributes can be adopted, a preset view generation method in the system is called to generate the control view, the zooming display of the control is realized, the level conversion coefficient can be determined based on the service scene corresponding to the layout attributes in the control, a uniform zooming mode is not needed, the finally generated control view can have the display effect of standard and beautiful typesetting, and the setting mode is simple, convenient and efficient.
In an embodiment of the present invention, the step of generating a control view by using the target value corresponding to the layout attribute includes:
s31, creating an attribute proxy class in the control instance, and storing the target value corresponding to each layout attribute in the attribute proxy class;
specifically, after obtaining the target value, an attribute proxy class (autosizeeker) may be created in a control instance based on a programming language such as Java, and the target value corresponding to each of the layout attributes is stored in the attribute proxy class.
S32, in the process of generating the control view, setting parameters corresponding to at least one layout attribute in the control view by calling a layout parameter configuration method;
in the process of generating the control view, a parameter corresponding to at least one layout attribute in the control view may be set by calling a layout parameter configuration method (setlayout parameters). Because the layout parameter configuration method cannot carry out self-defined modification, the method can generate a parameter corresponding to the layout attribute in a default state.
And S33, modifying the parameters corresponding to the layout attributes into the target values through the attribute proxy class.
And then, modifying the parameters corresponding to the layout attributes into the target values through the attribute proxy class, so that the parameters corresponding to the layout attributes are modified into the self-defined target values. Therefore, the user-defined zooming display of the control can be realized, the hierarchy conversion coefficient can be determined based on the business scene corresponding to the layout attribute in the control, a uniform zooming mode is not needed, the finally generated control view can have the display effect of standard and attractive typesetting, and the setting mode is simple, convenient and efficient.
In one embodiment of the invention, the method further comprises:
and S41, generating the control view of the user by inheriting the corresponding parent class control view under the condition that the control view is generated based on the preset programming language.
Specifically, in the case of generating a control view based on a programming language (e.g., Java, etc.), a control instance may generate its own control view by inheriting its corresponding parent control view. The parent control view can be generated based on a self-defined control view generation method, so that in the process of generating the self-defined control view, the self-defined control view generation method provided by the parent control view can be directly adopted to generate the self-defined space view, and the self-defined zooming display of the control is realized.
By the method for generating the control view, the characteristic value corresponding to at least one layout attribute in the control instance is obtained, and the custom setting of the layout attribute is realized based on the custom characteristic value; based on the service scenes recorded in the characteristic values, determining the hierarchical conversion coefficient corresponding to each layout attribute respectively, setting different scaling modes aiming at different service scenes on the basis of the different layout attributes, wherein the different layout attributes do not need to be scaled in the same scaling mode, under the condition of generating a control view based on a preset programming language, accessing a data conversion class by an interface inside a control instance, acquiring a target value corresponding to each layout attribute calculated based on the hierarchical conversion coefficient and a reference value recorded in the characteristic values, and generating the control view by adopting the target value corresponding to the layout attribute, so that the finally generated control view can have a display effect with standard and beautiful layout, and the setting mode is simple, convenient and efficient.
It is noted that, for simplicity of explanation, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will appreciate that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the invention. Further, those of skill in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the embodiments of the invention.
Referring to fig. 6, a structural block diagram of a device for generating a control view provided in the embodiment of the present invention is shown, and specifically, the device may include the following modules:
a feature value obtaining module 601, configured to obtain a feature value corresponding to at least one layout attribute in a control instance;
a coefficient determining module 602, configured to determine, based on the service scenarios recorded in the feature values, a hierarchy transformation coefficient corresponding to each of the layout attributes respectively;
a target value calculating module 603, configured to calculate a target value corresponding to each of the layout attributes based on the hierarchical transformation coefficient and a reference value recorded in the feature value;
and a view generating module 604, configured to generate a control view by using the target value corresponding to the layout attribute.
Optionally, the feature value obtaining module includes:
the configuration acquisition submodule is used for acquiring a layout configuration file;
the instance generation submodule is used for generating an object through a self-defined control and generating at least one control instance based on the layout configuration file;
and the characteristic value acquisition sub-module is used for reading the attribute configuration object in the control instance through the control generation object and acquiring the characteristic value corresponding to at least one layout attribute.
Optionally, the instance generation sub-module includes:
and the instance generating unit is used for calling a self-defined view layout loader to generate a control instance containing at least one feature value according to the control configuration information if the self-defined control generating object detects that the layout configuration file contains at least one preset type of control configuration information and the control configuration information contains the feature value corresponding to at least one layout attribute.
Optionally, the coefficient determining module includes:
and the coefficient determining submodule is used for generating an object access hierarchy management class through the control according to each layout attribute and acquiring a hierarchy conversion coefficient corresponding to the service scene recorded in the characteristic value.
Optionally, the target value calculation module includes:
and the first target value calculation submodule is used for generating an object access data conversion class through the control and acquiring a target value corresponding to each layout attribute calculated on the basis of the hierarchy conversion coefficient and a reference value recorded in the characteristic value.
Optionally, the view generating module includes:
the target value storage submodule is used for generating an object through the control and storing the target value corresponding to the layout attribute into an attribute proxy class in the control instance;
the first parameter setting submodule is used for setting a parameter corresponding to at least one layout attribute in the control view by calling a layout parameter configuration device in the process of generating the control view;
and the first parameter modification submodule is used for modifying the parameters corresponding to the layout attributes into the target values through the attribute proxy class.
Optionally, the target value calculation module includes:
a second target value calculation sub-module, configured to access a data conversion class at an interface inside the control instance when a control view is generated based on a preset programming language, and obtain a target value corresponding to each of the layout attributes, where the target value is calculated based on the level conversion coefficient and a reference value recorded in the feature value;
the view generation module includes:
the object creating submodule is used for creating an attribute proxy class in the control instance and storing a target value corresponding to each layout attribute in the attribute proxy class;
the second parameter setting submodule is used for setting a parameter corresponding to at least one layout attribute in the control view by calling a layout parameter configuration device in the process of generating the control view;
and the second parameter modification submodule is used for modifying the parameters corresponding to the layout attributes into the target values through the attribute proxy class.
Optionally, the apparatus further comprises:
and the inheritance module is used for generating the control view of the inheritance module by relaying the corresponding parent class control view under the condition that the control view is generated based on the preset programming language.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
In addition, an electronic device is further provided in an embodiment of the present invention, as shown in fig. 7, and includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702, and the memory 703 complete mutual communication through the communication bus 704,
a memory 703 for storing a computer program;
the processor 701 is configured to implement the following steps when executing the program stored in the memory 703:
acquiring a characteristic value corresponding to at least one layout attribute in a control instance;
respectively determining a hierarchy conversion coefficient corresponding to each layout attribute based on the service scenes recorded in the characteristic values;
respectively calculating a target value corresponding to each layout attribute based on the hierarchy conversion coefficient and a reference value recorded in the characteristic value;
and generating a control view by adopting the target value corresponding to the layout attribute.
Optionally, the step of obtaining a feature value corresponding to at least one layout attribute in the control instance includes:
acquiring a layout configuration file;
generating an object through a self-defined control, and generating at least one control instance based on the layout configuration file;
and reading the attribute configuration object in the control instance through the control generation object to obtain the characteristic value corresponding to at least one layout attribute.
Optionally, the step of generating an object through a customized control and generating at least one control instance based on the layout configuration file includes:
if the user-defined control generation object detects that the layout configuration file contains at least one preset type of control configuration information and the control configuration information contains at least one characteristic value corresponding to one layout attribute, a user-defined view layout loader is called for the control configuration information to generate a control instance containing the characteristic value.
Optionally, the step of determining a hierarchical transformation coefficient corresponding to each of the layout attributes respectively based on the service scenarios recorded in the feature values includes:
and generating an object access hierarchy management class through the control according to each layout attribute, and acquiring a hierarchy conversion coefficient corresponding to the service scene recorded in the characteristic value.
Optionally, the step of calculating a target value corresponding to each of the layout attributes based on the hierarchical transformation coefficient and a reference value recorded in the feature value includes:
and generating an object access data conversion class through the control, and acquiring a target value corresponding to each layout attribute calculated based on the hierarchy conversion coefficient and a reference value recorded in the characteristic value.
Optionally, the step of generating a control view by using the target value corresponding to the layout attribute includes:
generating an object through the control, and storing a target value corresponding to the layout attribute into an attribute proxy class in the control instance;
in the process of generating a control view, setting a parameter corresponding to at least one layout attribute in the control view by calling a layout parameter configuration method;
and modifying the parameters corresponding to the layout attributes into the target values through the attribute proxy class.
Optionally, the step of calculating a target value corresponding to each of the layout attributes based on the hierarchical conversion coefficient and a reference value recorded in the feature value includes:
under the condition that a control view is generated based on a preset programming language, accessing a data conversion class at an interface inside the control instance, and acquiring a target value corresponding to each layout attribute calculated based on the level conversion coefficient and a reference value recorded in the characteristic value;
the step of generating the control view by adopting the target value corresponding to the layout attribute comprises the following steps:
creating a property proxy class in the control instance, and storing a target value corresponding to each layout property in the property proxy class;
in the process of generating a control view, setting a parameter corresponding to at least one layout attribute in the control view by calling a layout parameter configuration method;
and modifying the parameters corresponding to the layout attributes into the target values through the attribute proxy class.
Optionally, the method further comprises:
and under the condition of generating the control view based on the preset programming language, generating the control view of the control by inheriting the corresponding parent class control view.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In yet another embodiment provided by the present invention, as shown in fig. 8, a computer-readable storage medium 801 is further provided, which stores instructions that, when executed on a computer, cause the computer to execute the method for generating the control view described in the above embodiment.
In yet another embodiment of the present invention, a computer program product containing instructions is provided, which when run on a computer, causes the computer to execute the method for generating a control view described in the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be 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. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on different points from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The above description is only for the 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 shall fall within the protection scope of the present invention.
Claims (11)
1. A method for generating a control view is characterized by comprising the following steps:
acquiring a characteristic value corresponding to at least one layout attribute in a control instance;
respectively determining a hierarchy conversion coefficient corresponding to each layout attribute based on the service scenes recorded in the characteristic values;
respectively calculating a target value corresponding to each layout attribute based on the hierarchy conversion coefficient and a reference value recorded in the characteristic value;
and generating a control view by adopting the target value corresponding to the layout attribute.
2. The method according to claim 1, wherein the step of obtaining the feature value corresponding to at least one layout property in the control instance comprises:
acquiring a layout configuration file;
generating an object through a self-defined control, and generating at least one control instance based on the layout configuration file;
and reading the attribute configuration object in the control instance through the control generation object to obtain the characteristic value corresponding to at least one layout attribute.
3. The method of claim 2, wherein the step of generating at least one control instance based on the layout configuration file by the custom control generation object comprises:
if the user-defined control generation object detects that the layout configuration file contains at least one preset type of control configuration information and the control configuration information contains a characteristic value corresponding to at least one layout attribute, a user-defined view layout loader is called for the control configuration information to generate a control instance containing the characteristic value.
4. The method according to claim 2, wherein the step of determining the hierarchical transformation coefficient corresponding to each of the layout attributes respectively based on the service scenarios recorded in the feature values comprises:
and generating an object access hierarchy management class through the control according to each layout attribute, and acquiring a hierarchy conversion coefficient corresponding to the service scene recorded in the characteristic value.
5. The method according to claim 2, wherein the step of calculating the target value corresponding to each of the layout attributes based on the hierarchical conversion coefficient and a reference value described in the feature value includes:
and generating an object access data conversion class through the control, and acquiring a target value corresponding to each layout attribute calculated based on the hierarchy conversion coefficient and a reference value recorded in the characteristic value.
6. The method according to claim 2, wherein the step of generating the control view using the target value corresponding to the layout property comprises:
generating an object through the control, and storing the target value corresponding to the layout attribute into an attribute proxy class in the control instance;
in the process of generating a control view, setting a parameter corresponding to at least one layout attribute in the control view by calling a layout parameter configuration method;
and modifying the parameters corresponding to the layout attributes into the target values through the attribute proxy class.
7. The method according to claim 1, wherein the step of calculating the target value corresponding to each of the layout attributes based on the hierarchical conversion coefficient and a reference value described in the feature value includes:
under the condition that a control view is generated based on a preset programming language, accessing a data conversion class at an interface inside the control instance, and acquiring a target value corresponding to each layout attribute calculated based on the level conversion coefficient and a reference value recorded in the characteristic value;
the step of generating the control view by adopting the target value corresponding to the layout attribute comprises the following steps:
creating an attribute proxy class in the control instance, and storing a target value corresponding to each layout attribute in the attribute proxy class;
in the process of generating a control view, setting a parameter corresponding to at least one layout attribute in the control view by calling a layout parameter configuration method;
and modifying the parameters corresponding to the layout attributes into the target values through the attribute proxy class.
8. The method of claim 1, further comprising:
and under the condition of generating the control view based on the preset programming language, generating the control view of the control by inheriting the corresponding parent class control view.
9. An apparatus for generating a control view, comprising:
the characteristic value acquisition module is used for acquiring a characteristic value corresponding to at least one layout attribute in the control instance;
a coefficient determining module, configured to determine, based on the service scenarios recorded in the feature values, a hierarchy transformation coefficient corresponding to each of the layout attributes, respectively;
a target value calculation module, configured to calculate a target value corresponding to each of the layout attributes based on the hierarchical conversion coefficient and a reference value recorded in the feature value;
and the view generation module is used for generating a control view by adopting the target value corresponding to the layout attribute.
10. An electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
the memory is used for storing a computer program;
the processor, when executing a program stored on the memory, implementing the method of any of claims 1-8.
11. One or more computer-readable media having instructions stored thereon that, when executed by one or more processors, cause the processors to perform the method of any of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210263914.1A CN114895995B (en) | 2022-03-15 | 2022-03-15 | Control view generation method and device, electronic equipment and readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210263914.1A CN114895995B (en) | 2022-03-15 | 2022-03-15 | Control view generation method and device, electronic equipment and readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114895995A true CN114895995A (en) | 2022-08-12 |
CN114895995B CN114895995B (en) | 2024-03-15 |
Family
ID=82716465
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210263914.1A Active CN114895995B (en) | 2022-03-15 | 2022-03-15 | Control view generation method and device, electronic equipment and readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114895995B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050028111A1 (en) * | 2003-07-28 | 2005-02-03 | John Schrag | 3D scene orientation indicator system with scene orientation change capability |
US20100302249A1 (en) * | 2009-05-26 | 2010-12-02 | Sun Microsystems, Inc. | Apparatus, systems and methods for layout of scene graphs using node bounding areas |
CN104598107A (en) * | 2014-12-31 | 2015-05-06 | 乐视网信息技术(北京)股份有限公司 | Generating method and system of interface control |
CN105912314A (en) * | 2015-12-28 | 2016-08-31 | 乐视致新电子科技(天津)有限公司 | Layout method and system for user interface control, and control method and system for user interface control |
CN108536353A (en) * | 2018-03-23 | 2018-09-14 | 网易(杭州)网络有限公司 | interface display control method, device and storage medium |
CN108786112A (en) * | 2018-04-26 | 2018-11-13 | 腾讯科技(上海)有限公司 | A kind of application scenarios configuration method, device and storage medium |
CN110032409A (en) * | 2018-12-28 | 2019-07-19 | 阿里巴巴集团控股有限公司 | A kind of client screen adaptation method, device and electronic equipment |
CN110147230A (en) * | 2019-04-18 | 2019-08-20 | 浙江数链科技有限公司 | Page adaptation method, apparatus, equipment and storage medium |
CN111988649A (en) * | 2020-08-31 | 2020-11-24 | 青岛海信传媒网络技术有限公司 | Control separation amplification method and display device |
WO2021042680A1 (en) * | 2019-09-06 | 2021-03-11 | 青岛海信传媒网络技术有限公司 | User interface display method and display device |
CN112698828A (en) * | 2020-08-18 | 2021-04-23 | 华为技术有限公司 | Display interface layout method and electronic equipment |
CN113835607A (en) * | 2021-08-19 | 2021-12-24 | 南京奥拓电子科技有限公司 | Method and device for viewing scene in display terminal and storage medium |
-
2022
- 2022-03-15 CN CN202210263914.1A patent/CN114895995B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050028111A1 (en) * | 2003-07-28 | 2005-02-03 | John Schrag | 3D scene orientation indicator system with scene orientation change capability |
US20100302249A1 (en) * | 2009-05-26 | 2010-12-02 | Sun Microsystems, Inc. | Apparatus, systems and methods for layout of scene graphs using node bounding areas |
CN104598107A (en) * | 2014-12-31 | 2015-05-06 | 乐视网信息技术(北京)股份有限公司 | Generating method and system of interface control |
CN105912314A (en) * | 2015-12-28 | 2016-08-31 | 乐视致新电子科技(天津)有限公司 | Layout method and system for user interface control, and control method and system for user interface control |
WO2017113732A1 (en) * | 2015-12-28 | 2017-07-06 | 乐视控股(北京)有限公司 | Layout method and system for user interface control, and control method and system therefor |
CN108536353A (en) * | 2018-03-23 | 2018-09-14 | 网易(杭州)网络有限公司 | interface display control method, device and storage medium |
CN108786112A (en) * | 2018-04-26 | 2018-11-13 | 腾讯科技(上海)有限公司 | A kind of application scenarios configuration method, device and storage medium |
CN110032409A (en) * | 2018-12-28 | 2019-07-19 | 阿里巴巴集团控股有限公司 | A kind of client screen adaptation method, device and electronic equipment |
CN110147230A (en) * | 2019-04-18 | 2019-08-20 | 浙江数链科技有限公司 | Page adaptation method, apparatus, equipment and storage medium |
WO2021042680A1 (en) * | 2019-09-06 | 2021-03-11 | 青岛海信传媒网络技术有限公司 | User interface display method and display device |
CN112698828A (en) * | 2020-08-18 | 2021-04-23 | 华为技术有限公司 | Display interface layout method and electronic equipment |
CN111988649A (en) * | 2020-08-31 | 2020-11-24 | 青岛海信传媒网络技术有限公司 | Control separation amplification method and display device |
CN113835607A (en) * | 2021-08-19 | 2021-12-24 | 南京奥拓电子科技有限公司 | Method and device for viewing scene in display terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114895995B (en) | 2024-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112800370B (en) | Processing method and device of business document, computer equipment and storage medium | |
CN108228293B (en) | Interface skin switching method and device | |
US11870738B2 (en) | Conversation-enabled document system and method | |
CN111309293B (en) | Interface frame construction method and device, electronic equipment and storage medium | |
CN112016023B (en) | Service processing method, device, terminal and storage medium | |
CN112068911B (en) | Electronic form generation method, device, system, equipment and medium | |
JP6750124B2 (en) | Terminal device, UI expansion method, and UI expansion program | |
KR20200104899A (en) | Digital component background rendering | |
CN114489648A (en) | Page generation method, system, terminal and medium | |
CN112667716A (en) | Data processing method and device, electronic equipment and storage medium | |
CN116521039B (en) | Method and device for moving covered view, electronic equipment and readable storage medium | |
CN114895995B (en) | Control view generation method and device, electronic equipment and readable medium | |
CN116757405A (en) | Method, device, equipment and medium for managing portal system optimization | |
CN111399836A (en) | Method and device for modifying page attribute | |
CN114780081A (en) | Animation display method, electronic device and storage medium | |
CN114116077A (en) | Picture editing method and device, electronic equipment and medium | |
CN112860255A (en) | Page adaptation method and device | |
CN112748917B (en) | Graph display method and device | |
CN114281463A (en) | Form interface format configuration and interface display method, equipment and medium | |
CN112068910B (en) | Method, device and system for generating accessory control with downloading function | |
CN111190523A (en) | Interface processing method, terminal and computer readable storage medium | |
US20180137160A1 (en) | Integration device and integration method thereof | |
CN114594948A (en) | Method, device, system, equipment and medium for generating dynamic drop-down box control | |
KR101929201B1 (en) | Method and apparatus for structuring component that supports n-screen using single code in business application | |
CN115599433A (en) | Configuration method and device of business process attribute, electronic equipment and storage medium |
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 |