Movatterモバイル変換


[0]ホーム

URL:


CN110209458A - A kind of window method for drafting and device - Google Patents

A kind of window method for drafting and device
Download PDF

Info

Publication number
CN110209458A
CN110209458ACN201910492675.5ACN201910492675ACN110209458ACN 110209458 ACN110209458 ACN 110209458ACN 201910492675 ACN201910492675 ACN 201910492675ACN 110209458 ACN110209458 ACN 110209458A
Authority
CN
China
Prior art keywords
window
parameter
configuration file
level
destination application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910492675.5A
Other languages
Chinese (zh)
Inventor
程振华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Xiaopeng Motors Technology Co Ltd
Original Assignee
Guangzhou Xiaopeng Motors Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Xiaopeng Motors Technology Co LtdfiledCriticalGuangzhou Xiaopeng Motors Technology Co Ltd
Priority to CN201910492675.5ApriorityCriticalpatent/CN110209458A/en
Publication of CN110209458ApublicationCriticalpatent/CN110209458A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The embodiment of the invention provides a kind of window method for drafting and devices, applied to car-mounted terminal, the car-mounted terminal is stored with the configuration file of application program, the configuration file is previously provided with window parameter corresponding with the window type that the application program uses, which comprises receive window and draw request;The window draws the information that request includes destination application;Read the configuration file;Using the information of the destination application, the matched window parameter of window type used with the destination application is searched in the configuration file;When finding the window parameter to match, the window of the destination application is drawn using the window parameter.Different window parameters is set so as to realize according to the window type that application program uses, using window parameter corresponding with window type come dynamic render window, avoids the window for drawing application program using fixed window parameter.

Description

A kind of window method for drafting and device
Technical field
The present invention relates to automobile technical fields, more particularly to a kind of window method for drafting and a kind of window drawing apparatus.
Background technique
With the very fast development of automobile industry, automobile has become the indispensable walking-replacing tool of people.
Currently, Android operation system is widely used on the car-mounted terminal of automobile.However, Android operation system is answeredIt is substantially with the setting of program window full frame, and for the window of some type, position, hierarchical relationship etc. is all solidFixed.Although each APP can pass through window layout to a certain degree, the modes such as partially transparentization, to show non-full frame window,But all APP can not be made to have unified position, level etc. is to realize certain style.
For example, being placed on left side width in card display area is that the region 800, app is placed in right side, window parameter is{ abscissa=800, ordinate=80, width=1600, height=900, level 2 }, in addition digital map navigation is also placed in the right sideSide width is all 1600, level 1, and in this way after opening app, digital map navigation will be completely covered, and is not easy to user and leadsBoat.For another example, it on vehicle-mounted transverse screen large-size screen monitors, needs to show all common APP in right area, left side area according to userDomain is kept in advance shows certain specific applications;Meanwhile some special applications need to be displayed in full screen, alternatively, level etc. has spy to positionDifferent requirement.In addition it is also necessary to the problems such as layout that looks to the future changes, this cannot achieve in current system.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kindA kind of window method for drafting and a kind of corresponding window drawing apparatus to solve the above problems.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of window method for drafting, are applied to car-mounted terminal, instituteState the configuration file that car-mounted terminal is stored with application program, the configuration file is previously provided with to be used with the application programThe corresponding window parameter of window type, which comprises
It receives window and draws request;The window draws the information that request includes destination application;
Read the configuration file;
Using the information of the destination application, searches in the configuration file and used with the destination applicationThe matched window parameter of window type;
When finding the window parameter to match, the window of the destination application is drawn using the window parameterMouthful.
Optionally, the configuration file includes preset structure body, and the configuration file presets window parameter, comprising:
Window structure body is constructed for the window type;
New window parameter is set in the window structure body;
The window structure body is added in preset structure body.
It is optionally, described to read the configuration file, comprising:
The configuration file is read by WindowManagerService.
Optionally, described when finding the window parameter to match, the target is drawn using the window parameter and is answeredWith the window of program, comprising:
When finding the window parameter to match, the configuration file is parsed by WindowManagerService and is obtainedWindow parameter new in preset structure body is obtained, and draws the window of the destination application according to new window parameter.
Optionally, described when finding the window parameter to match, the target is drawn using the window parameter and is answeredWith the window of program, further includes:
Parsing the configuration file by WindowManagerService and obtain includes window size parameter, the window's positionNew window parameter including parameter and level parameter;
Window size parameter and window after the WindowManagerService parsing are obtained by WindowManagerMouth location parameter;
By WindowManager by window size parameter and the window's position parameter filling LayoutParams, and byLayoutParams is passed into WindowManagerService when WindowManager adds window;
The mesh is drawn according to LayoutParams and the level parameter parsed by WindowManagerServiceMark the window of application program.
Optionally, described when finding the window parameter to match, the target is drawn using the window parameter and is answeredWith the window of program, comprising:
The Hash table that configuration file is converted to the first level in DisplayContent, is arrived in Hash table lookupThe first level parameter is added to default by the first level parameter to match with the window type of the destination applicationIn systemic hierarchial parameter.
Optionally, described when finding the window parameter to match, the target is drawn using the window parameter and is answeredWith the window of program, further includes:
The Hash table that configuration file is converted to the second level in PhoneWindowManager, is looked into Hash tableThe the second level parameter to match with the window type of the destination application is found, the second level parameter is added toIn preset window level parameter.
Optionally, the first level parameter is systemic hierarchial parameter, and the second level parameter is the window of application programMouth level parameter, the second level parameter are bigger than the first level parameter.
Optionally, before reading the configuration file the step of, further includes:
New configuration file is obtained from cloud;
Covering update is carried out using configuration file of the new configuration file to the application program.
Optionally, before reading the configuration file the step of, further includes:
Window parameter to be updated is obtained from cloud;The window parameter to be updated is that the Partial Window of configuration file is joinedNumber;
Window parameter original in the configuration file is replaced using the window parameter to be updated.
The embodiment of the invention also discloses a kind of window drawing apparatus, are applied to car-mounted terminal, the car-mounted terminal storageThere is the configuration file of application program, it is corresponding with the window type that the application program uses that the configuration file is previously provided withWindow parameter, described device includes:
Request receiving module draws request for receiving window;It includes destination application that the window, which draws request,Information;
File read module, for reading the configuration file;
Searching module is searched and the mesh in the configuration file for the information using the destination applicationThe matched window parameter of window type that mark application program uses;
Drafting module, for drawing the target using the window parameter when finding the window parameter to matchThe window of application program.
Optionally, the configuration file includes preset structure body, and the configuration file presets window parameter, comprising:
Window structure body constructs submodule, for constructing window structure body for the window type;
Window parameter setup module, for new window parameter to be arranged in the window structure body;
Preset structure body adds submodule, for the window structure body to be added in preset structure body.
Optionally, the file read module, comprising:
File reading submodule, for reading the configuration file by WindowManagerService.
Optionally, the drafting module, comprising:
First rendering submodule, for passing through when finding the window parameter to matchWindowManagerService parses the configuration file and obtains window parameter new in preset structure body, and according to new windowMouth parameter draws the window of the destination application.
Optionally, the drafting module, further includes:
Analyzing sub-module includes that window is big for parsing the configuration file by WindowManagerService and obtainingNew window parameter including small parameter, the window's position parameter and level parameter;
Parameter acquisition submodule is parsed for obtaining the WindowManagerService by WindowManagerWindow size parameter and the window's position parameter afterwards;
Parameter transmits submodule, for being inserted window size parameter and the window's position parameter by WindowManagerLayoutParams, and by passing to LayoutParams when WindowManager addition windowWindowManagerService;
Second rendering submodule, for according to LayoutParams and being parsed by WindowManagerServiceLevel parameter draws the window of the destination application.
Optionally, the drafting module, comprising:
First parameter adding module, for configuration file to be converted to the Hash of the first level in DisplayContentTable will be described in the first level parameter that Hash table lookup to the window type with the destination application matchesFirst level parameter is added in predetermined system level parameter.
Optionally, described when finding the window parameter to match, the target is drawn using the window parameter and is answeredWith the window of program, further includes:
Second parameter adding module, for configuration file to be converted to the second level in PhoneWindowManagerHash table will in the second level parameter that Hash table lookup to the window type with the destination application matchesThe second level parameter is added in preset window level parameter.
Optionally, the first level parameter is systemic hierarchial parameter, and the second level parameter is the window of application programMouth level parameter, the second level parameter are bigger than the first level parameter.
Optionally, further includes:
File acquisition module, for obtaining new configuration file from cloud;
File update module, for being covered using the new configuration file to the configuration file of the application programIt updates.
Optionally, further includes:
Window parameter obtains module, for obtaining window parameter to be updated from cloud;The window parameter to be updatedFor the Partial Window parameter of configuration file;
Window parameter replacement module, it is original in the configuration file for being replaced using the window parameter to be updatedWindow parameter.
The embodiment of the invention also discloses a kind of automobiles, comprising:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processorsWhen, so that the step of automobile executes one or more methods as described in the embodiments of the present invention.
The embodiment of the invention also discloses a kind of computer readable storage mediums, are stored thereon with instruction, when by one orWhen multiple processors execute, so that the processor executes the step of one or more methods as described in the embodiments of the present inventionSuddenly.
The embodiment of the present invention includes following advantages:
In embodiments of the present invention, request is drawn by receiving window, it includes destination application that window, which draws request,Information reads configuration file, and using the information of destination application, lookup is used with destination application in configuration fileThe matched window parameter of window type draws target application using the window parameter when finding the window parameter to matchThe window of program.So as to realize that different window parameters, use and window class is arranged in the window type according to application programThe corresponding window parameter of type carrys out dynamic render window, avoids the window that application program is drawn using fixed window parameter, intoThe experience of one step promotion user.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of window method for drafting embodiment of the invention;
Fig. 2 is a kind of structural block diagram of window drawing apparatus embodiment of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific realApplying mode, the present invention is described in further detail.
Referring to Fig.1, a kind of step flow chart of window method for drafting embodiment of the invention is shown, vehicle-mounted end is applied toEnd, the car-mounted terminal are stored with the configuration file of application program, and the configuration file is previously provided with and the application programThe corresponding window parameter of the window type used, can specifically include following steps:
Step 101, it receives window and draws request;The window draws the information that request includes destination application;
In the car-mounted terminal of automobile, some application programs can be run, for example, digital map navigation application, music playerEtc. application programs promote the experience that user uses automobile to realize certain functions.
In embodiments of the present invention, the window type that can be used according to application program, what generation was used with application programThe corresponding window parameter of window type stores opposite with the window type that application program uses in the car-mounted terminal of automobileThe configuration file for the window parameter answered.It is corresponding in available configuration file when car-mounted terminal, which receives window, draws requestWindow parameter carry out render window.
Wherein, window type may include starter type, full frame application type, AI assistant's type, status bar type, leadColumn type of navigating etc..
Window draws the information that request may include destination application, wherein the information of destination application is for referring toShow that window is drawn and request targeted application program, determines that window draws the application program that request is directed to convenient for car-mounted terminal.
It should be noted that window, which draws request, can be what user's triggering generated, it is raw to be also possible to application triggersAt.
In embodiments of the present invention, car-mounted terminal can receive user's triggering or the window drafting of application triggers is askedIt asks.
Specifically, clicking the icon of a certain application program when user is in the user interface that car-mounted terminal provides to startWhen application program, it can trigger and generate window drafting request, and the window is drawn into request and is sent to car-mounted terminal, for example, working asWhen user clicks the icon of the music player in user interface, the window drafting that can trigger generation drafting music player is askedIt asks.
In one preferred embodiment of the invention, the configuration file includes preset structure body, and the configuration file is pre-Window parameter is first set, comprising:
Window structure body is constructed for the window type;New window parameter is set in the window structure body;It willThe window structure body is added in preset structure body.
Specifically, can be by creating window structure body, for encapsulating new window parameter.For example, creation Json(JavaScript Object Notation, JS object numbered musical notation) structural body, encapsulates the window parameter of each window type, shouldWindow parameter may include x of the window in the screen of car-mounted terminal, y-axis initial address (coordinate in the window upper left corner), width,Level type and hierarchical value highly and belonging to it etc..As an example, the Json structural body of building is as follows:
Json_Window={ " type ": " TYPE_APPLICATION ";" x ": 800;" y ": 90;" w ": 1600;" h ":900;" z-type ": " AppLayer ";" z-order ": 2 }.
Wherein, type is for indicating window type;X, y respectively indicate the abscissa and ordinate in the window upper left corner, can be withIt is used to indicate the position of window;W, h respectively indicate the length and width of window, can serve to indicate that the size of window;z-typeIndicate level type;Z-order indicates level parameter value.
In embodiments of the present invention, it is arranged after new window parameter in window structure body, it can be by the window structureBody is added in preset structure body.Wherein, preset structure body can be a pre-set big structural body, for nestingThe window structure body stated is hopeful the parameter of the window defined to list.
As an example, preset structure body can be Window_Define={ " TotalWindow ": 10;" WinList ": { Json_Window1;Json_Window2;......;Json_Window10}.Wherein, TotalWindow is usedIn the sum for indicating window structure body, that is, there is the corresponding window parameter of several window types, WinList is for indicating preset structureThe members list of body.
It in the concrete realization, can be by the preset structure body of building, for example, Window_Define json, is stored in and matchesSet in the specified directory of file, thus when reading configuration file, can from specified directory quick obtaining to application programWindow parameter.
Step 102, the configuration file is read;
In embodiments of the present invention, it when receiving window and drawing request, can be stored by reading in car-mounted terminalConfiguration file, to get the window parameter of destination application from configuration file.
In one preferred embodiment of the invention, the step 102 may include steps of:
The configuration file is read by WindowManagerService.
In embodiments of the present invention, it can be serviced by WindowManagerService window management, read configuration textPart, to obtain the window parameter in configuration file.
In one preferred embodiment of the invention, before the step 102, can also include the following steps:
New configuration file is obtained from cloud;Using the new configuration file to the configuration file of the application program intoRow covering updates.
It in embodiments of the present invention, can be new by being obtained from cloud when cloud has updated the configuration file of new versionConfiguration file the configuration file of application program is updated.
For example, new window parameter can be with are as follows: the window parameter of starter type be abscissa=50, ordinate=50,Width=750, height=900, level=1 };The window parameter of full frame application type be abscissa=800, ordinate=80,Width=1600, height=900, level=2 };The window parameter of AI assistant's type be abscissa=800, ordinate=80,Width=1800, height=800, level=3 };The parameter of the window of status bar type be abscissa=10, ordinate=10,Width=2500, height=50, level=4 }.
Wherein, it is first to delete the full text update method updated afterwards that covering, which updates,.Using new configuration file, full text replaces vehicleThe original configuration file of application program in mounted terminal, so that the window parameter of application program can be new setting in configuration file, the window for drawing application program using fixed window parameter is avoided, user experience is promoted.
In another preferred embodiment of the invention, before the step 102, can also include the following steps:
Window parameter to be updated is obtained from cloud;The window parameter to be updated is that the Partial Window of configuration file is joinedNumber;Window parameter original in the configuration file is replaced using the window parameter to be updated.
It in embodiments of the present invention, can also be to be updated using this by obtaining window parameter to be updated from cloudWindow parameter replaces window parameter original in configuration file.Wherein, window parameter to be updated can be in configuration filePartial Window parameter.
Specifically, when new window parameter exists relative to original window parameter only some of which and updates, exampleSuch as, beyond the clouds in the configuration file of new version, only the window parameter of full frame application type is updated, then can be obtained from cloudWindow parameter to be updated is taken, using window parameter original in the window parameter replacement configuration file to be updated, thusWhen configuration file updates, only the file for changing part (updating part) is replaced, so that car-mounted terminal is updating configurationWhen file, the occupancy to bandwidth resources is reduced.
Step 103, it using the information of the destination application, is searched and the destination application in configuration fileThe matched window parameter of the window type used;
In embodiments of the present invention, the information that can use destination application, searches and uses with the destination applicationThe matched window parameter of window type.
Specifically, a window type list can be safeguarded in car-mounted terminal, including, application program and its window usedThe information such as type.For example, window type list can be as shown in table 1 below:
Serial numberWindow typeApplication programWindow parameter
1Type AUsing A, using BParameter 1
2Type BUsing CParameter 2
Table 1
Car-mounted terminal can be searched and the target application journey in window type list according to the information of destination applicationThe matched window parameter of the window type that sequence uses.For example, the information of destination application be using C, then can be by searching forTable 1 determines that using the corresponding window type of C be type B, and window parameter is parameter 2.
Step 104, when finding the window parameter to match, the target application journey is drawn using the window parameterThe window of sequence.
In embodiments of the present invention, it when searching the window parameter to match, is then deposited in the configuration file of car-mounted terminalThe window parameter of application program (that is, destination application) corresponding with the window type is stored up, the window can be usedParameter draws the window of destination application, realizes the dynamic configuration of the window parameter of application program.
Wherein, the window parameter may include location parameter, size parameter and level parameter etc..It can be joined according to positionNumber determines the location information of destination application, the size information of destination application is determined according to size parameter, according to levelParameter determines the hierarchical information of destination application, to draw the window of the destination application.
For example, in the prior art, it is that the region 800, APP is placed in right side that card display area, which is placed on left side width,Window parameter is { abscissa=800, ordinate=80, width=1600, height=900, level=2 }, in addition digital map navigationBeing also placed in right side width is all 1600, level 1, and in this way after opening APP, digital map navigation will be completely covered, and is currentlyIt navigates convenient for user, it is believed that digital map navigation should not be completely covered, and also should show one at edge after starting appPoint.It is possible to upgrade position and the size in the region APP, abscissa, ordinate, width is highly adjusted to { abscissa=850, ordinate=100, width=1500, height=860 };And digital map navigation region is constant, after opening APP in this way,The frame of digital map navigation application below APP still can come out display portion, to meet the expection of design.
In addition, if needing, for example, when automobile will be in other country in use, steering position and the country are different, due to vehicleMain to be sitting in the right, card region may need to be shown in the right, then, it can also be by upgrading the band of position for showing cardIt updates to the right, the region APP is placed on the left side, and system itself does not need to change, it is only necessary to be arranged in configuration file and application programThe corresponding window parameter of the window type used.
In one preferred embodiment of the invention, the step 104 may include following sub-step:
When finding the window parameter to match, the configuration file is parsed by WindowManagerService and is obtainedIt obtains window parameter new in preset structure body and draws the window of the destination application according to new window parameter.
In embodiments of the present invention, when finding the window parameter to match, can pass throughWindowManagerService parses configuration file, obtains window parameter new in preset structure body, and according to new windowParameter draws the window of the destination application.
In one preferred embodiment of the invention, the step 104 can further include following sub-step:
Parsing the configuration file by WindowManagerService and obtain includes window size parameter, the window's positionNew window parameter including parameter and level parameter;Described in being obtained by WindowManagerWindow size parameter and the window's position parameter after WindowManagerService parsing;By WindowManager by windowMouth size parameter and the window's position parameter insert LayoutParams, and by inciting somebody to action when WindowManager addition windowLayoutParams passes to WindowManagerService;By WindowManagerService according toLayoutParams and the level parameter parsed draw the window of the destination application.
In embodiments of the present invention, configuration file can be parsed by WindowManagerService and obtains new windowParameter, wherein window parameter may include window size parameter, the window's position parameter and level parameter, then pass throughWindowManager windowing system obtains window size parameter and window position after WindowManagerService parsingIt sets parameter, and the window size parameter and the window's position parameter is inserted into LayoutParams, so that WindowManager can be withThe parameter in LayoutParams is passed into WindowManagerService when adding window.Finally byWindowManagerService draws the destination application according to LayoutParams and the level parameter parsedWindow.To which the window for the destination application drawn can be shown according to specified position and size.
In one preferred embodiment of the invention, the step 104 may include steps of:
The Hash table that configuration file is converted to the first level in DisplayContent, is arrived in Hash table lookupThe first level parameter is added to default by the first level parameter to match with the window type of the destination applicationIn systemic hierarchial parameter.
Specifically, the operating system that car-mounted terminal uses is android system, Window layer grade is divided by android systemSeveral pieces, one be APP application program window level, all APP can be in the window level of APP, Android systemSystem writes on APP application widget level in WindowManagerPolicy or PhoneWindowManager function, for definingIn system windows level, the window hierarchical relationship of the APP of each window type;The other is system windows level, Ke YifenFor system windows level under system windows level on APP and APP, system windows level is arranged android systemIn DisplayContent function.
In embodiments of the present invention, can will be matched by the DisplayContent function of WindowManagerServiceSet the Hash table that file is converted to the first level.Wherein, the key of Hash table can be type, and value can be z-type.In Hash table, to match with the window type of destination application can be found according to key and valueThe first level parameter is added in predetermined system level parameter by one level parameter.Wherein, predetermined system level parameter can be withIt is the pre-set parameter for storage system window level.
In one preferred embodiment of the invention, the step 104 may include steps of:
The Hash table that configuration file is converted to the second level in PhoneWindowManager, is looked into Hash tableThe the second level parameter to match with the window type of the destination application is found, the second level parameter is added toIn preset window level parameter.
Specifically, can be by the PhoneWindowManager function of WindowManagerService by configuration fileBe converted to the Hash table of the second level.Wherein, the key of Hash table can be type, and value can be z-type.?In Hash table, the second level ginseng to match with the window type of destination application can be found according to key and valueThe second level parameter, is then added in preset window level parameter by number.Wherein, wherein preset window level parameter canTo be pre-set for storing the parameter of application widget level.
In one preferred embodiment of the invention, the first level parameter is systemic hierarchial parameter, the second layerGrade parameter is the window level parameter of application program, and the second level parameter is bigger than the first level parameter.
The window level of application program must have corresponding systemic hierarchial, i.e., the window level of application program, which depends on, isSystem level, specifically, it is considered that the window level parameter of application program is the corresponding Window layer of systemic hierarchial parameter * 10000+Grade.
For example, systemic hierarchial has 1,2,3,4,5, the window level of application program also has 1,2,3,4,5, and a window is correspondingThe window level 5 of systemic hierarchial 1, then another window is corresponding it is considered that the window level parameter of application program is 10005The window level 1 of systemic hierarchial 3, then it is considered that the window level parameter of application program is 30001.So no matter applying journeyThe window level of sequence has much, finally can not all cross over systemic hierarchial.
In one preferred embodiment of the invention, the method can also further include following steps:
When not finding window parameter matched with the destination application, according to described in the drafting of default window parameterThe window of destination application.
Wherein, default window parameter can be pre-set default window parameter in the operating system of car-mounted terminal.?In the embodiment of the present invention, when not finding window parameter matched with destination application, drawn according to default window parameterThe window of destination application.
In embodiments of the present invention, request is drawn by receiving window, it includes destination application that window, which draws request,Information reads configuration file, and using the information of destination application, lookup is used with destination application in configuration fileThe matched window parameter of window type draws target application using the window parameter when finding the window parameter to matchThe window of program.So as to realize that different window parameters, use and window class is arranged in the window type according to application programThe corresponding window parameter of type carrys out dynamic render window, avoids the window that application program is drawn using fixed window parameter, intoThe experience of one step promotion user.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the methodIt closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according toAccording to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also shouldKnow, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implementedNecessary to example.
Referring to Fig. 2, a kind of structural block diagram of window drawing apparatus embodiment of the invention is shown, is applied to vehicle-mounted endEnd, the car-mounted terminal are stored with the configuration file of application program, and the configuration file is previously provided with and the application programThe corresponding window parameter of the window type used, can specifically include following module:
Request receiving module 201 draws request for receiving window;It includes destination application that the window, which draws request,Information;
File read module 202, for reading the configuration file;
Searching module 203, for using the destination application information, in the configuration file search with it is describedThe matched window parameter of the window type that destination application uses;
Drafting module 204, for drawing the mesh using the window parameter when finding the window parameter to matchMark the window of application program.
In one preferred embodiment of the invention, the configuration file includes preset structure body, and the configuration file is pre-Window parameter is first set, comprising:
Window structure body constructs submodule, for constructing window structure body for the window type;
Window parameter setup module, for new window parameter to be arranged in the window structure body;
Preset structure body adds submodule, for the window structure body to be added in preset structure body.
In one preferred embodiment of the invention, the file read module 202, comprising:
File reading submodule, for reading the configuration file by WindowManagerService.
In one preferred embodiment of the invention, the drafting module 204, comprising:
First rendering submodule, for passing through when finding the window parameter to matchWindowManagerService parses the configuration file and obtains window parameter new in preset structure body, and according to new windowMouth parameter draws the window of the destination application.
In one preferred embodiment of the invention, the drafting module 204, further includes:
Analyzing sub-module includes that window is big for parsing the configuration file by WindowManagerService and obtainingNew window parameter including small parameter, the window's position parameter and level parameter;
Parameter acquisition submodule is parsed for obtaining the WindowManagerService by WindowManagerWindow size parameter and the window's position parameter afterwards;
Parameter transmits submodule, for being inserted window size parameter and the window's position parameter by WindowManagerLayoutParams, and by passing to LayoutParams when WindowManager addition windowWindowManagerService;
Second rendering submodule, for according to LayoutParams and being parsed by WindowManagerServiceLevel parameter draws the window of the destination application.
In one preferred embodiment of the invention, the drafting module 204, comprising:
First parameter adding module, for configuration file to be converted to the Hash of the first level in DisplayContentTable will be described in the first level parameter that Hash table lookup to the window type with the destination application matchesFirst level parameter is added in predetermined system level parameter.
In one preferred embodiment of the invention, the drafting module 204, further includes:
Second parameter adding module, for configuration file to be converted to the second level in PhoneWindowManagerHash table will in the second level parameter that Hash table lookup to the window type with the destination application matchesThe second level parameter is added in preset window level parameter.
In one preferred embodiment of the invention, the first level parameter is systemic hierarchial parameter, the second layerGrade parameter is the window level parameter of application program, and the second level parameter is bigger than the first level parameter.
In one preferred embodiment of the invention, further includes:
File acquisition module, for obtaining new configuration file from cloud;
File update module, for being covered using the new configuration file to the configuration file of the application programIt updates.
In one preferred embodiment of the invention, further includes:
Window parameter obtains module, for obtaining window parameter to be updated from cloud;The window parameter to be updatedFor the Partial Window parameter of configuration file;
Window parameter replacement module, it is original in the configuration file for being replaced using the window parameter to be updatedWindow parameter.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simplePlace illustrates referring to the part of embodiment of the method.
The embodiment of the invention also provides a kind of automobiles, comprising:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processorsWhen, so that the step of automobile executes method described in the embodiment of the present invention.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with instruction, when by one orWhen multiple processors execute, so that the step of processor executes method described in the embodiment of the present invention.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are withThe difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculateMachine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software andThe form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer canWith in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program codeThe form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer programThe flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructionsIn each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide theseComputer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminalsStandby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devicesCapable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagramThe device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devicesIn computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packetThe manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagramThe function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so thatSeries of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thusThe instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchartAnd/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows basesThis creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted asIncluding preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to byOne entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operationBetween there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaningCovering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrapThose elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, articleOr the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limitedElement, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of window method for drafting provided by the present invention and a kind of window drawing apparatus, detailed Jie has been carried outIt continues, used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is onlyIt is to be used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to this hairBright thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manageSolution is limitation of the present invention.

Claims (13)

CN201910492675.5A2019-06-062019-06-06A kind of window method for drafting and devicePendingCN110209458A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910492675.5ACN110209458A (en)2019-06-062019-06-06A kind of window method for drafting and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910492675.5ACN110209458A (en)2019-06-062019-06-06A kind of window method for drafting and device

Publications (1)

Publication NumberPublication Date
CN110209458Atrue CN110209458A (en)2019-09-06

Family

ID=67791378

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910492675.5APendingCN110209458A (en)2019-06-062019-06-06A kind of window method for drafting and device

Country Status (1)

CountryLink
CN (1)CN110209458A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112306528A (en)*2020-11-042021-02-02北京焦点新干线信息技术有限公司 A method and device for updating data
CN117093543A (en)*2023-10-192023-11-21南京酷开智慧屏科技有限公司Car language screen file management system, file management method and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP4292379B2 (en)*2003-04-172009-07-08日本電気株式会社 Screen split display system and screen split display method
CN104298521A (en)*2014-09-222015-01-21广州金山网络科技有限公司Window updating method and device
CN104423777A (en)*2013-08-232015-03-18联想(北京)有限公司Window display method and device
US20150309779A1 (en)*2014-04-292015-10-29Reservoir Labs, Inc.Systems and methods for power optimization of processors
CN107430472A (en)*2015-12-302017-12-01北京超卓科技有限公司System and method for mobile device operation system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP4292379B2 (en)*2003-04-172009-07-08日本電気株式会社 Screen split display system and screen split display method
CN104423777A (en)*2013-08-232015-03-18联想(北京)有限公司Window display method and device
US20150309779A1 (en)*2014-04-292015-10-29Reservoir Labs, Inc.Systems and methods for power optimization of processors
CN104298521A (en)*2014-09-222015-01-21广州金山网络科技有限公司Window updating method and device
CN107430472A (en)*2015-12-302017-12-01北京超卓科技有限公司System and method for mobile device operation system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112306528A (en)*2020-11-042021-02-02北京焦点新干线信息技术有限公司 A method and device for updating data
CN112306528B (en)*2020-11-042023-12-08北京博点智合科技有限公司 A data update method and device
CN117093543A (en)*2023-10-192023-11-21南京酷开智慧屏科技有限公司Car language screen file management system, file management method and equipment

Similar Documents

PublicationPublication DateTitle
CN111581563B (en)Page response method and device, storage medium and electronic equipment
WO2020119485A1 (en)Page display method and device, apparatus, and storage medium
CN109491742B (en)Page table rendering method and device
US10372783B2 (en)Persisting the state of visual control elements in uniform resource locator (URL)-generated web pages
CN110209315B (en)Method and device for displaying characters in user interface, electronic equipment and storage medium
CN108156510B (en)Page focus processing method and device and computer readable storage medium
CN111443912A (en)Page rendering method and device based on components, computer equipment and storage medium
CN109361948B (en)Interface management method, intelligent terminal and readable storage medium
CN113032083A (en)Data display method, device, electronic equipment and medium
CN110874251A (en)Method and device for realizing picture wooden barrel layout
CN110209458A (en)A kind of window method for drafting and device
WO2024160268A1 (en)Page rendering method and apparatus, device and storage medium
CN111641690B (en)Session message processing method and device and electronic equipment
CN111324835B (en) Method, device, electronic device, and storage medium for rendering user interface components
CN112835963A (en)Display method and device of flight data
CN110134905B (en)Page update display method, device, equipment and storage medium
CN109857503B (en)Page interaction effect self-adaption method and device and electronic equipment
CN115731313A (en)SVG format picture processing method, device, equipment, medium and product
CN109635263B (en)Column width fixed display method and device based on WEB ultra-wide table and electronic equipment
WO2023273700A1 (en)Interaction window display method and apparatus, device, and storage medium
CN109726346B (en)Page component processing method and device
CN111142990A (en)WeChat applet page display method and device and storage medium
CN111078219B (en)Page display method, device and system, electronic equipment and storage medium
CN112328841A (en)Document processing method and device, electronic equipment and storage medium
US20090193067A1 (en)Server-based recalculation of vector graphics

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20190906

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp