CN105988807A - Information processing method and electronic equipment - Google Patents
Information processing method and electronic equipment Download PDFInfo
- Publication number
- CN105988807A CN105988807A CN201510082227.XA CN201510082227A CN105988807A CN 105988807 A CN105988807 A CN 105988807A CN 201510082227 A CN201510082227 A CN 201510082227A CN 105988807 A CN105988807 A CN 105988807A
- Authority
- CN
- China
- Prior art keywords
- resource data
- parameter
- window
- application
- display
- 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
Landscapes
- User Interface Of Digital Computer (AREA)
- Digital Computer Display Output (AREA)
Abstract
The embodiment of the invention discloses an information processing method and electronic equipment. The electronic equipment can operate applications. The method comprises the steps of: detecting out a first window and acquiring a first parameter of the first window, wherein the first window is a window for displaying a first application, and the first parameter represents a display size of the first window; and based on the first parameter, according to a preset rule, selecting resource data matched with the first parameter from a resource data set of the first application, and based on the resource data, controlling display of the first application in the first window, wherein the resource data comprises display attribute data when the first application is displayed in the first window.
Description
Technical field
The present invention relates to the information processing technology, be specifically related to a kind of information processing method and electronic equipment.
Background technology
In the early stage of development of mobile terminal, the screen size of mobile terminal is all smaller, the resolution ratio of screen also
Relatively low, the operating system of mobile terminal such as Android (Android) system can only provide the application function of single window,
It is only able to display an application program in this arranged and displayed in the single window;I.e. operating system only allows an application program to be in
Foreground, and interact with user.But, with the fast development of mobile terminal hardware, especially screen
The raising of resolution ratio and the increasing of size, this single window application of android system cannot meet use
The needs at family, user needs the operating system of mobile terminal can provide the application function of wicket urgently.
Based on this, during by wicket display application, user usually can the display area of furnishing wicket, because of
This can cause mobile terminal layout resource again, and some the resource control on wicket can be caused to show not exclusively.
Content of the invention
For solving the technical problem of existing existence, the embodiment of the present invention provides a kind of information processing method and electronics
Equipment, can be according to the optimal application resource data of window display size size Auto-matching.
For reaching above-mentioned purpose, the technical scheme of the embodiment of the present invention is achieved in that
Embodiments provide a kind of information processing method, be applied to the electronic equipment with display unit
In;Described electronic equipment can run application;Described method includes:
First window detected, it is thus achieved that the first parameter of described first window;Wherein, described first window is
First applies the window showing;The display size of first window described in described first parameter characterization;
Based on described first parameter according to preset rules described first application resource data set in select with
The resource data of described first parameter coupling, applies described the based on described resource data control described first
The display of one window;Wherein, described resource data comprises described first and applies when described first window shows
Display properties data.
In such scheme, described resource data set includes at least two resource data, described at least two
But resource data is belonging to same parameters attribute has two resource datas of different parameters value.
In such scheme, described resource data includes that described first applies dividing when described first window shows
Resolution parameter;Described at least two resource data is respectively provided with different resolution parameters.
In such scheme, described based on described first parameter according to preset rules described first application resource
Data acquisition system selects the resource data mating with described first parameter, comprising:
Search the first mapping set based on described first parameter, it is thus achieved that the number of resources mated with described first parameter
According to mark;Wherein, described first mapping set includes the mapping relations of the first parameter and resource data mark;
Resource data set based on the first application described in described resource data identifier lookup, it is thus achieved that with described money
The first resource data of source data mark coupling.
In such scheme, described based on described first parameter lookup the first mapping set, it is thus achieved that with described first
The resource data mark of parameter coupling, comprising:
Search described first mapping set based on described first parameter, determine that described first parameter is preset first
During threshold interval, it is thus achieved that the first resource Data Identification mating with described first predetermined threshold value interval;
Wherein, described first mapping set includes at least two predetermined threshold value interval and at least two number of resources
According to mapping relations;Described first predetermined threshold value is interval, and at least two predetermined threshold value, arbitrary in interval presets
Threshold interval;The interval quantity of described at least two predetermined threshold value and the quantity of described at least two resource data
Unanimously.
In such scheme, in described the first parameter characterizing described first window size and described resource data
Resolution parameter has positive correlation.
In such scheme, when the size of first window described in described first parameter characterization is described full screen window
During size, described based on described first parameter according to preset rules described first application resource data set
The middle resource data selecting to mate with described first parameter, comprising: based on described first parameter described first
The resource data set of application selects Secondary resource data;Wherein, the resolution in described Secondary resource data
Rate parameter is maximum.
The embodiment of the present invention additionally provides a kind of electronic equipment, and described electronic equipment has display unit;Described
Electronic equipment also includes: detector unit, selection unit and control unit;Wherein,
Described detector unit, is used for first window being detected, it is thus achieved that the first parameter of described first window;Its
In, described first window is the window that the first application shows;First window described in described first parameter characterization
The display size of mouth;
Described selection unit, for described first parameter based on the acquisition of described detector unit according to preset rules
The resource data mating with described first parameter is selected in the resource data set of described first application;Wherein,
Described resource data comprises described first and applies display properties data when described first window shows;
Described control unit, for the described resource data control described first based on described selection Unit selection
Apply the display at described first window.
In such scheme, described resource data set includes at least two resource data, described at least two
But resource data is belonging to same parameters attribute has two resource datas of different parameters value.
In such scheme, described resource data includes that described first applies dividing when described first window shows
Resolution;Described at least two resource data is respectively provided with different resolution parameters.
In such scheme, described selection unit, for searching the first mapping set based on described first parameter,
Obtain the resource data mark mated with described first parameter;Wherein, described first mapping set includes
The mapping relations that one parameter identifies with resource data;Based on the first application described in described resource data identifier lookup
Resource data set, it is thus achieved that identify, with described resource data, the first resource data mated.
In such scheme, described selection unit, for searching described first mapping ensemblen based on described first parameter
Close, determine described first parameter when the first predetermined threshold value is interval, it is thus achieved that interval with described first predetermined threshold value
The first resource Data Identification of coupling;Wherein, described first mapping set includes at least two predetermined threshold value
The interval mapping relations with at least two resource data;Described first predetermined threshold value is interval to be preset at least two
Arbitrary predetermined threshold value in threshold interval is interval;The interval quantity of described at least two predetermined threshold value with described extremely
The quantity of few two resource datas is consistent.
In such scheme, described selection unit, it is additionally operable to when first window described in described first parameter characterization
During the size of a size of described full screen window, based on described first parameter at the resource data of described first application
Set selects Secondary resource data;Wherein, the resolution parameter in described Secondary resource data is maximum.
Embodiments provide a kind of information processing method and electronic equipment, by the first window detecting
First parameter of mouth selects and described first in the resource data set of described first application according to preset rules
The resource data of parameter coupling, applies at described first window based on described resource data control described first
Display;Wherein, described resource data comprises described first and applies the display when described first window shows to belong to
Property data;The display size of first window described in described first parameter characterization.So, it is achieved that according to window
The optimal application resource data of display size size Auto-matching, can avoid when window size adjusts, weight
New layout application resource, thus avoid the part control in application to show not exclusively.
Brief description
Fig. 1 is the schematic flow sheet of the information processing method of the embodiment of the present invention one;
Fig. 2 is the schematic flow sheet of the information processing method of the embodiment of the present invention two;
Fig. 3 is the schematic flow sheet of the information processing method of the embodiment of the present invention three;
Fig. 4 is the composition structural representation of the electronic equipment of the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawings and specific embodiment the present invention is further detailed explanation.
Embodiment one
Embodiments providing a kind of information processing method, described information processing method is applied to have aobvious
Show in the electronic equipment of unit.Fig. 1 is the schematic flow sheet of the information processing method of the embodiment of the present invention one;
As it is shown in figure 1, described information processing method includes:
Step 101: first window detected, it is thus achieved that the first parameter of described first window;Wherein, described
First window is the window that the first application shows;The display of first window described in described first parameter characterization
Size.
Information processing method described in the present embodiment is applied to be had in the electronic equipment of display unit;Then this step
In Zhou, described first window detected, it is thus achieved that the first parameter of described first window, particularly as follows: described electricity
Subset detects first window, it is thus achieved that the first parameter of described first window.Here, described electronic equipment
Can run application, described application can be by the full screen window of the display unit of described electronic equipment or wicket
Display;The display area of described wicket is less than the display area of described full screen window.Wherein, described electronics
Equipment can be specifically the electronic equipment that desktop computer, notebook computer etc. do not have touch controllable function, it is also possible to
It is the electronic equipment that smart mobile phone, panel computer, desktop computer etc. have touch controllable function.
Here, described first window detected, when i.e. detecting that described first applications trigger starts, detect
The window that described first application shows is described first window.In the present embodiment, described first window can
To be full screen window, it is also possible to be wicket.Wherein, first window described in described first parameter characterization is aobvious
Showing size, concrete, described first parameter can be display in described display unit for the described first window
Size, described display area specifically can be represented by resolution ratio, it is also possible to by display surface product representation.
Step 102: based on described first parameter according to preset rules at the described first resource data collection applied
Conjunction selects the resource data mating with described first parameter;Wherein, described resource data comprises described first
Apply the display properties data when described first window shows.
In the present embodiment, each application has its corresponding resource data set, and described first application is institute
Stating the arbitrary application in each application, the resource data set of i.e. described first application includes that at least two provides
Source data, but described at least two resource data is belonging to same parameters attribute has the two of different parameters value
Individual resource data.
In the present embodiment, described resource data includes that described first applies dividing when described first window shows
Resolution parameter, i.e. described resource data includes that described first applies when described first window shows, described
One window resolution dimensions occupied in described display unit;Wherein, described resource data not only includes
Described first main body applied resolution dimensions occupied in described display unit, also includes described first
The resolution occupied in described display unit of user interface (UI, User Interface) control in application
Rate size, namely at least two resource data of described first application is all described first to apply described first
Resolution parameter during window display, including the main body of described first application is occupied in described display unit
Resolution dimensions, also include the UI control in the described first application in described display unit occupied point
Resolution size.
In the present embodiment, described based on described first parameter according to preset rules described first application resource
Data acquisition system selects the resource data mating with described first parameter, the i.e. display based on described first window
Size according to preset rules select with described first window in the resource data set of described first application aobvious
Show the resource data that size is mated.Namely apply resolution when described first window shows based on described first
Rate parameter selects to apply with described first in the resource data set of described first application according to preset rules
The resource data of the resolution parameter coupling during display of described first window.Preset rules described in the present embodiment
For: the display size of the described first window of described first parameter characterization is bigger, the described resource data of selection
Included described first applies the resolution parameter when described first window shows bigger, otherwise, described
The display size of the described first window of the first parameter characterization is less, included by the described resource data of selection
Described first applies the resolution parameter when described first window shows less, i.e. characterizes described first window
First parameter of size has positive correlation with the resolution parameter in described resource data.In actual applications,
At least two resource data in the resource data set of described first application has different resolution parameters,
For example, described resource data set includes two resource datas, wherein first resource data have point
Resolution parameter is high-resolution (HDPI, High Density Per Inch), and second resource data has
Resolution parameter is ultrahigh resolution (XHDPI);Assume described of the first parameter characterization described in this example
The size of one window only has two kinds, and one is that the display size of first window described in described first parameter characterization is equal to
The size of full screen window, two is that the display size of first window described in described first parameter characterization is equal to wicket
Size, the display area of described wicket is less than the display area of described full screen window, then when detecting
State first window described in the first parameter characterization display size be equal to full screen window size when, select divide more greatly
The resource data of resolution parameter, i.e. selects the resource data of XHDPI;When described first parameter characterization being detected
When the display size of described first window is equal to the size of wicket, select the number of resources of small in resolution parameter
According to the i.e. resource data of selection HDPI.
Step 103: apply the display at described first window based on described resource data control described first.
In the present embodiment, described resource data not only including, the described first main body applied is single in described display
Resolution dimensions occupied in Yuan, also includes the UI control in the described first application in described display unit
Occupied resolution dimensions, i.e. in this step, described electronic equipment is based on described in described resource data
The resolution dimensions that the main body of the first application is occupied in described display unit controls the described first master applying
Body in the display of described first window, and, based in described resource data described first application in UI
UI control in described first application of control resolution dimensions control occupied in described display unit exists
The display of described first window.
Use the technical scheme of the embodiment of the present invention, it is achieved that according to window display size size Auto-matching
Good application resource data, can avoid when window size adjusts, layout application resource again;The opposing party
Face, owing to resource data includes the UI control of application display size occupied in described display unit,
Use the technical scheme of the embodiment of the present invention, additionally it is possible to according to the UI in the application of window display size self adaptation
Display size in display unit for the control, it is to avoid the part control in application shows incomplete problem.
Embodiment two
Embodiments providing a kind of information processing method, described information processing method is applied to have aobvious
Show in the electronic equipment of unit.Fig. 2 is the schematic flow sheet of the information processing method of the embodiment of the present invention two;
As in figure 2 it is shown, described information processing method includes:
Step 201: first window detected, it is thus achieved that the first parameter of described first window;Wherein, described
First window is the window that the first application shows;The display of first window described in described first parameter characterization
Size.
Information processing method described in the present embodiment is applied to be had in the electronic equipment of display unit;Then this step
In Zhou, described first window detected, it is thus achieved that the first parameter of described first window, particularly as follows: described electricity
Subset detects first window, it is thus achieved that the first parameter of described first window.Here, described electronic equipment
Can run application, described application can be by the full screen window of the display unit of described electronic equipment or wicket
Display;The display area of described wicket is less than the display area of described full screen window.Wherein, described electronics
Equipment can be specifically the electronic equipment that desktop computer, notebook computer etc. do not have touch controllable function, it is also possible to
It is the electronic equipment that smart mobile phone, panel computer, desktop computer etc. have touch controllable function.
Here, described first window detected, when i.e. detecting that described first applications trigger starts, detect
The window that described first application shows is described first window.In the present embodiment, described first window can
To be full screen window, it is also possible to be wicket.Wherein, first window described in described first parameter characterization is aobvious
Showing size, concrete, described first parameter can be display in described display unit for the described first window
Size, described display area specifically can be represented by resolution ratio, it is also possible to by display surface product representation.
Step 202: search the first mapping set based on described first parameter, it is thus achieved that with described first parameter
The resource data mark joined;Wherein, described first mapping set includes that the first parameter identifies with resource data
Mapping relations.
Concrete, described based on described first parameter lookup the first mapping set, it is thus achieved that with described first parameter
The resource data mark of coupling, comprising: search described first mapping set based on described first parameter, determine
Described first parameter is when the first predetermined threshold value is interval, it is thus achieved that the mating with described first predetermined threshold value interval
One resource data mark;Wherein, described first mapping set includes that at least two predetermined threshold value is interval and extremely
The mapping relations of few two resource datas;Described first predetermined threshold value is interval interval at least two predetermined threshold value
In arbitrary predetermined threshold value interval;The interval quantity of described at least two predetermined threshold value and described at least two provide
The quantity of source data is consistent.
In the present embodiment, be stored with in described electronic equipment the first mapping set, in described first mapping set
The mapping relations of first parameter that is stored with and resource data mark, for example, described in described first parameter characterization the
One window is the corresponding first resource Data Identification of big window, during first window described in described first parameter characterization is
The corresponding Secondary resource Data Identification of window, first window described in described first parameter characterization is wicket correspondence the
Three resource data marks;Wherein said big window, middle window and wicket characterize the chi of described first window
Very little for big, neutralize little, in actual applications, the first predetermined threshold value, the second predetermined threshold value and the 3rd can be passed through
Predetermined threshold value represents, the corresponding first resource Data Identification of i.e. described first predetermined threshold value, the second predetermined threshold value pair
Answer Secondary resource Data Identification, the corresponding information resources Data Identification of the 3rd predetermined threshold value, namely work as described first
When parameter is more than or equal to described first predetermined threshold value, select and the described first corresponding first resource of predetermined threshold value
Data Identification;When described first parameter is between described first predetermined threshold value and described second predetermined threshold value,
Select and the described second corresponding Secondary resource Data Identification of predetermined threshold value;When described first parameter is described
When between two predetermined threshold value and described 3rd predetermined threshold value, select and described 3rd predetermined threshold value the corresponding 3rd
Resource data identifies.
Step 203: based on the resource data set of the first application described in described resource data identifier lookup, obtain
The first resource data mated must be identified with described resource data;Wherein, described first resource packet contains institute
State first and apply display properties data when described first window shows.
In the present embodiment, each application has its corresponding resource data set, and described first application is institute
Stating the arbitrary application in each application, the resource data set of i.e. described first application includes that at least two provides
Source data, but described at least two resource data is belonging to same parameters attribute has the two of different parameters value
Individual resource data.Here, the described at least two resource data in described resource data set all includes resource
Data Identification, at least two resource data mark and the institute in step 202 of described at least two resource data
State the resource data mark correspondence in the first mapping set.Then in this step, based on the described number of resources obtaining
Resource data mark according to each resource data in resource data set described in identifier lookup, it is thus achieved that with described money
The resource data of source data mark coupling is as first resource data.
In the present embodiment, described resource data includes that described first applies dividing when described first window shows
Resolution parameter, i.e. described resource data includes that described first applies when described first window shows, described
One window resolution dimensions occupied in described display unit;Wherein, described resource data not only includes
Described first main body applied resolution dimensions occupied in described display unit, also includes described first
UI control in application resolution dimensions occupied in described display unit, namely described first application
At least two resource data is all the described first resolution parameter applying when described first window shows, bag
Include the resolution dimensions occupied in described display unit of main body of the described first application, also include described the
The resolution dimensions occupied in described display unit of UI control in one application.
Step 204: apply showing at described first window based on described in described first resource Data Control first
Show.
In the present embodiment, described resource data not only including, the described first main body applied is single in described display
Resolution dimensions occupied in Yuan, also includes the UI control in the described first application in described display unit
Occupied resolution dimensions, i.e. in this step, described electronic equipment is based on described in described resource data
The resolution dimensions that the main body of the first application is occupied in described display unit controls the described first master applying
Body in the display of described first window, and, based in described resource data described first application in UI
UI control in described first application of control resolution dimensions control occupied in described display unit exists
The display of described first window.
Use the technical scheme of the embodiment of the present invention, it is achieved that according to window display size size Auto-matching
Good application resource data, can avoid when window size adjusts, layout application resource again;The opposing party
Face, owing to resource data includes the UI control of application display size occupied in described display unit,
Use the technical scheme of the embodiment of the present invention, additionally it is possible to according to the UI in the application of window display size self adaptation
Display size in display unit for the control, it is to avoid the part control in application shows incomplete problem.
Embodiment three
Embodiments providing a kind of information processing method, described information processing method is applied to have aobvious
Show in the electronic equipment of unit.Fig. 3 is the schematic flow sheet of the information processing method of the embodiment of the present invention three;
As it is shown on figure 3, described information processing method includes:
Step 301: first window detected, it is thus achieved that the first parameter of described first window;Wherein, described
First window is the window that the first application shows;The display of first window described in described first parameter characterization
Size.
Information processing method described in the present embodiment is applied to be had in the electronic equipment of display unit;Then this step
In Zhou, described first window detected, it is thus achieved that the first parameter of described first window, particularly as follows: described electricity
Subset detects first window, it is thus achieved that the first parameter of described first window.Here, described electronic equipment
Can run application, described application can be by the full screen window of the display unit of described electronic equipment or wicket
Display;The display area of described wicket is less than the display area of described full screen window.Wherein, described electronics
Equipment can be specifically the electronic equipment that desktop computer, notebook computer etc. do not have touch controllable function, it is also possible to
It is the electronic equipment that smart mobile phone, panel computer, desktop computer etc. have touch controllable function.
Here, described first window detected, when i.e. detecting that described first applications trigger starts, detect
The window that described first application shows is described first window.In the present embodiment, described first window can
To be full screen window, it is also possible to be wicket.Wherein, first window described in described first parameter characterization is aobvious
Showing size, concrete, described first parameter can be display in described display unit for the described first window
Size, described display area specifically can be represented by resolution ratio, it is also possible to by display surface product representation.
Step 302: when the chi that the size of first window described in described first parameter characterization is described full screen window
When very little, in the resource data set of described first application, select Secondary resource data based on described first parameter;
Wherein, the resolution parameter in described Secondary resource data is maximum.
In the present embodiment, each application has its corresponding resource data set, and described first application is institute
Stating the arbitrary application in each application, the resource data set of i.e. described first application includes that at least two provides
Source data, but described at least two resource data is belonging to same parameters attribute has the two of different parameters value
Individual resource data.
In the present embodiment, described resource data includes that described first applies dividing when described first window shows
Resolution parameter, i.e. described resource data includes that described first applies when described first window shows, described
One window resolution dimensions occupied in described display unit;Wherein, described resource data not only includes
Described first main body applied resolution dimensions occupied in described display unit, also includes described first
UI control in application resolution dimensions occupied in described display unit, namely described first application
At least two resource data is all the described first resolution parameter applying when described first window shows, bag
Include the resolution dimensions occupied in described display unit of main body of the described first application, also include described the
The resolution dimensions occupied in described display unit of UI control in one application.
In the present embodiment, when the size of first window described in described first parameter characterization is described full screen window
During size, namely described first parameter is for when maximum, selects in the resource data set of described first application
The Secondary resource data mated with described first parameter, described Secondary resource data are described at least two resource
The maximum resource data of data intermediate-resolution parameter.
In the present embodiment, apply described first according to preset rules based on the display size of described first window
Resource data set in select the resource data that mates with the display size of described first window.Namely based on
Described first applies the resolution parameter when described first window shows to answer described first according to preset rules
Resource data set in select to apply resolution parameter when described first window shows with described first
The resource data of coupling.Preset rules described in the present embodiment is: described the first of described first parameter characterization
The display size of window is bigger, and described first included by the described resource data of selection is applied described first
Resolution parameter during window display is bigger, otherwise, showing of the described first window of described first parameter characterization
Showing that size is less, described first included by the described resource data of selection is applied and shows at described first window
When resolution parameter less, i.e. characterize the first parameter of described first window size with in described resource data
Resolution parameter there is positive correlation.In actual applications, in the resource data set of described first application
At least two resource data there is different resolution parameters, for example, described resource data set includes
Two resource datas, the resolution parameter that wherein first resource data has is HDPI, second number of resources
It is ultrahigh resolution (XHDPI) according to the resolution parameter having;Assume the first parameter characterization described in this example
The size of described first window only have two kinds, one is the display of first window described in described first parameter characterization
Size is equal to the size of full screen window, and two is the display size etc. of first window described in described first parameter characterization
In the size of wicket, the display area of described wicket less than the display area of described full screen window, then when
When detecting that the display size of first window described in described first parameter characterization is equal to the size of full screen window, choosing
Select the resource data of bigger resolution parameter, i.e. select the resource data of XHDPI;When detecting described first
When the display size of first window described in parameter characterization is equal to the size of wicket, select small in resolution parameter
Resource data, i.e. select HDPI resource data.
Step 303: apply showing at described first window based on described in described Secondary resource Data Control first
Show.
In the present embodiment, described resource data not only including, the described first main body applied is single in described display
Resolution dimensions occupied in Yuan, also includes the UI control in the described first application in described display unit
Occupied resolution dimensions, i.e. in this step, described electronic equipment is based on described in described resource data
The resolution dimensions that the main body of the first application is occupied in described display unit controls the described first master applying
Body in the display of described first window, and, based in described resource data described first application in UI
UI control in described first application of control resolution dimensions control occupied in described display unit exists
The display of described first window;Wherein, the main body of described first application is occupied in described display unit
The resolution ratio occupied in described display unit of UI control in resolution dimensions and described first application
Maximum at least two resource data in a size of described resource data set.
Use the technical scheme of the embodiment of the present invention, it is achieved that according to window display size size Auto-matching
Good application resource data, can avoid when window size adjusts, layout application resource again;The opposing party
Face, owing to resource data includes the UI control of application display size occupied in described display unit,
Use the technical scheme of the embodiment of the present invention, additionally it is possible to according to the UI in the application of window display size self adaptation
Display size in display unit for the control, it is to avoid the part control in application shows incomplete problem.
Embodiment four
Embodiments providing a kind of electronic equipment, Fig. 4 is the group of the electronic equipment of the embodiment of the present invention
Becoming structural representation, as shown in Figure 4, described electronic equipment has display unit 40;Described electronic equipment is also
Including: the 41st, detector unit selects unit 42 and control unit 43;Wherein,
Described detector unit 41, is used for first window being detected, it is thus achieved that the first parameter of described first window;
Wherein, described first window is the window that the first application shows;Described in described first parameter characterization first
The display size of window;
Described selection unit 42, for described first parameter based on the acquisition of described detector unit 41 according in advance
If rule selects the number of resources mated with described first parameter in the resource data set of described first application
According to;Wherein, described resource data comprises described first and applies display properties when described first window shows
Data;
Described control unit 43, controls institute for the described resource data selecting based on described selection unit 42
State first and apply display at described first window.
In the present embodiment, described detector unit 41 detects first window, i.e. detects that the described first application is touched
When sending out startup, detect that the window that the described first application shows is described first window.In the present embodiment,
Described first window can be full screen window, it is also possible to be wicket.Wherein, described first parameter characterization institute
Stating the display size of first window, concrete, described first parameter can be that described first window shows described
Showing the display size in unit, described display area specifically can be represented by resolution ratio, it is also possible to by display area
Represent.
Concrete, described resource data set includes at least two resource data, described at least two resource
But data are belonging to same parameters attribute have two resource datas of different parameters value.
As an embodiment, described resource data includes that described first applies and show at described first window
When resolution ratio;Described at least two resource data is respectively provided with different resolution parameters.
In the present embodiment, described resource data includes that described first applies dividing when described first window shows
Resolution parameter, i.e. described resource data includes that described first applies when described first window shows, described
One window resolution dimensions occupied in described display unit;Wherein, described resource data not only includes
Described first main body applied resolution dimensions occupied in described display unit, also includes described first
UI control in application resolution dimensions occupied in described display unit, namely described first application
At least two resource data is all the described first resolution parameter applying when described first window shows, bag
Include the resolution dimensions occupied in described display unit of main body of the described first application, also include described the
The resolution dimensions occupied in described display unit of UI control in one application.
Wherein, described control unit 43 based on described first parameter according to preset rules described first application
Resource data set selects the resource data mating with described first parameter, i.e. based on described first window
Display size selects and described first window in the resource data set of described first application according to preset rules
Display size coupling resource data.Namely apply when described first window shows based on described first
Resolution parameter selects in the resource data set of described first application according to preset rules should with described first
The resource data that resolution parameter when being used in the display of described first window mates.Presetting described in the present embodiment
Rule is: the display size of the described first window of described first parameter characterization is bigger, the described resource of selection
Included by data described first applies the resolution parameter when described first window shows bigger, otherwise,
The display size of the described first window of described first parameter characterization is less, and the described resource data of selection is wrapped
Described first including applies the resolution parameter when described first window shows less, i.e. characterizes described first
First parameter of window size has positive correlation with the resolution parameter in described resource data.
It will be appreciated by those skilled in the art that the function of each processing unit in the electronic equipment of the embodiment of the present invention,
Can refer to the associated description of aforementioned information processing method and understand, in the electronic equipment of the embodiment of the present invention everywhere
Reason unit, can be by realizing that the analog circuit of the function described in the embodiment of the present invention realizes, it is also possible to pass through
Perform the operation on intelligent terminal of the software of function described in the embodiment of the present invention and realize.
Embodiment five
Embodiments providing a kind of electronic equipment, as shown in Figure 4, described electronic equipment has display
Unit 40;Described electronic equipment also includes: the 41st, detector unit selects unit 42 and control unit 43;Its
In,
Described detector unit 41, is used for first window being detected, it is thus achieved that the first parameter of described first window;
Wherein, described first window is the window that the first application shows;Described in described first parameter characterization first
The display size of window;
Described selection unit 42, searches for described first parameter obtaining based on described detector unit 41
One mapping set, it is thus achieved that the resource data mark mated with described first parameter;Wherein, described first maps
Set includes the mapping relations of the first parameter and resource data mark;Based on described resource data identifier lookup
The resource data set of described first application, it is thus achieved that identify the first resource data mated with described resource data;
Described control unit 43, controls institute for the described resource data selecting based on described selection unit 42
State first and apply display at described first window.
In the present embodiment, described detector unit 41 detects first window, i.e. detects that the described first application is touched
When sending out startup, detect that the window that the described first application shows is described first window.In the present embodiment,
Described first window can be full screen window, it is also possible to be wicket.Wherein, described first parameter characterization institute
Stating the display size of first window, concrete, described first parameter can be that described first window shows described
Showing the display size in unit, described display area specifically can be represented by resolution ratio, it is also possible to by display area
Represent.
Concrete, described resource data set includes at least two resource data, described at least two resource
But data are belonging to same parameters attribute have two resource datas of different parameters value.
As an embodiment, described resource data includes that described first applies and show at described first window
When resolution ratio;Described at least two resource data is respectively provided with different resolution parameters.
In the present embodiment, described resource data includes that described first applies dividing when described first window shows
Resolution parameter, i.e. described resource data includes that described first applies when described first window shows, described
One window resolution dimensions occupied in described display unit;Wherein, described resource data not only includes
Described first main body applied resolution dimensions occupied in described display unit, also includes described first
UI control in application resolution dimensions occupied in described display unit, namely described first application
At least two resource data is all the described first resolution parameter applying when described first window shows, bag
Include the resolution dimensions occupied in described display unit of main body of the described first application, also include described the
The resolution dimensions occupied in described display unit of UI control in one application.
Concrete, as a kind of embodiment, described selection unit 42, for looking into based on described first parameter
Look for described first mapping set, determine described first parameter when the first predetermined threshold value is interval, it is thus achieved that with described
The first resource Data Identification of the interval coupling of the first predetermined threshold value;Wherein, described first mapping set includes
The interval mapping relations with at least two resource data of at least two predetermined threshold value;Described first predetermined threshold value district
Between interval for arbitrary predetermined threshold value in interval at least two predetermined threshold value;Described at least two predetermined threshold value district
Between quantity consistent with the quantity of described at least two resource data.
Wherein, described control unit 43 based on described first parameter according to preset rules described first application
Resource data set selects the resource data mating with described first parameter, i.e. based on described first window
Display size selects and described first window in the resource data set of described first application according to preset rules
Display size coupling resource data.Namely apply when described first window shows based on described first
Resolution parameter selects in the resource data set of described first application according to preset rules should with described first
The resource data that resolution parameter when being used in the display of described first window mates.Presetting described in the present embodiment
Rule is: the display size of the described first window of described first parameter characterization is bigger, the described resource of selection
Included by data described first applies the resolution parameter when described first window shows bigger, otherwise,
The display size of the described first window of described first parameter characterization is less, and the described resource data of selection is wrapped
Described first including applies the resolution parameter when described first window shows less, i.e. characterizes described first
First parameter of window size has positive correlation with the resolution parameter in described resource data.
It will be appreciated by those skilled in the art that the function of each processing unit in the electronic equipment of the embodiment of the present invention,
Can refer to the associated description of aforementioned information processing method and understand, in the electronic equipment of the embodiment of the present invention everywhere
Reason unit, can be by realizing that the analog circuit of the function described in the embodiment of the present invention realizes, it is also possible to pass through
Perform the operation on intelligent terminal of the software of function described in the embodiment of the present invention and realize.
Embodiment six
Embodiments providing a kind of electronic equipment, as shown in Figure 4, described electronic equipment has display
Unit 40;Described electronic equipment also includes: the 41st, detector unit selects unit 42 and control unit 43;Its
In,
Described detector unit 41, is used for first window being detected, it is thus achieved that the first parameter of described first window;
Wherein, described first window is the window that the first application shows;Described in described first parameter characterization first
The display size of window;
Described selection unit 42, for when the size of first window described in described first parameter characterization be described entirely
During the size of screen window, in the resource data set of described first application, select the based on described first parameter
Two resource datas;Wherein, the resolution parameter in described Secondary resource data is maximum;
Described control unit 43, for the described Secondary resource data control selecting based on described selection unit 42
Make described first and apply display at described first window.
In the present embodiment, described detector unit 41 detects first window, i.e. detects that the described first application is touched
When sending out startup, detect that the window that the described first application shows is described first window.In the present embodiment,
Described first window can be full screen window, it is also possible to be wicket.Wherein, described first parameter characterization institute
Stating the display size of first window, concrete, described first parameter can be that described first window shows described
Showing the display size in unit, described display area specifically can be represented by resolution ratio, it is also possible to by display area
Represent.
Concrete, described resource data set includes at least two resource data, described at least two resource
But data are belonging to same parameters attribute have two resource datas of different parameters value;Described resource data
Comprise described first and apply display properties data when described first window shows.
As an embodiment, described resource data includes that described first applies and show at described first window
When resolution ratio;Described at least two resource data is respectively provided with different resolution parameters.
In the present embodiment, described resource data includes that described first applies dividing when described first window shows
Resolution parameter, i.e. described resource data includes that described first applies when described first window shows, described
One window resolution dimensions occupied in described display unit;Wherein, described resource data not only includes
Described first main body applied resolution dimensions occupied in described display unit, also includes described first
UI control in application resolution dimensions occupied in described display unit, namely described first application
At least two resource data is all the described first resolution parameter applying when described first window shows, bag
Include the resolution dimensions occupied in described display unit of main body of the described first application, also include described the
The resolution dimensions occupied in described display unit of UI control in one application.
Wherein, described control unit 43 based on described first parameter according to preset rules described first application
Resource data set selects the resource data mating with described first parameter, i.e. based on described first window
Display size selects and described first window in the resource data set of described first application according to preset rules
Display size coupling resource data.Namely apply when described first window shows based on described first
Resolution parameter selects in the resource data set of described first application according to preset rules should with described first
The resource data that resolution parameter when being used in the display of described first window mates.Presetting described in the present embodiment
Rule is: the display size of the described first window of described first parameter characterization is bigger, the described resource of selection
Included by data described first applies the resolution parameter when described first window shows bigger, otherwise,
The display size of the described first window of described first parameter characterization is less, and the described resource data of selection is wrapped
Described first including applies the resolution parameter when described first window shows less, i.e. characterizes described first
First parameter of window size has positive correlation with the resolution parameter in described resource data.
It will be appreciated by those skilled in the art that the function of each processing unit in the electronic equipment of the embodiment of the present invention,
Can refer to the associated description of aforementioned information processing method and understand, in the electronic equipment of the embodiment of the present invention everywhere
Reason unit, can be by realizing that the analog circuit of the function described in the embodiment of the present invention realizes, it is also possible to pass through
Perform the operation on intelligent terminal of the software of function described in the embodiment of the present invention and realize.
In the embodiment of the present invention four to embodiment six, the 41st, the detector unit in described electronic equipment selects singly
Unit 42 and control unit 43, in actual applications all can by described electronic equipment central processing unit (CPU,
Central Processing Unit), digital signal processor (DSP, Digital Signal Processor) or
Programmable gate array (FPGA, Field-Programmable Gate Array) realizes.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can use hardware embodiment, software implementation or combine software and
The form of the embodiment of hardware aspect.And, the present invention can use and wherein include calculating one or more
Computer-usable storage medium (including but not limited to magnetic disc store and the optical storage of machine usable program code
Device etc.) form of the upper computer program implemented.
The present invention is with reference to method according to embodiments of the present invention, equipment (system) and computer program
Flow chart and/or block diagram describe.It should be understood that can be by computer program instructions flowchart and/or side
Flow process in each flow process in block diagram and/or square frame and flow chart and/or block diagram and/or the knot of square frame
Close.Can provide these computer program instructions to all-purpose computer, special-purpose computer, Embedded Processor or
The processor of other programmable data processing device is to produce a machine so that by computer or other can
The instruction that the processor of programming data processing equipment performs produces for realizing in one flow process or multiple of flow chart
The device of the function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device
In the computer-readable memory working in a specific way so that be stored in this computer-readable memory
Instruction produces the manufacture including command device, and this command device realizes at one flow process of flow chart or multiple stream
The function specified in journey and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes
Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices
Reason, thus the instruction performing on computer or other programmable devices provides for realizing flow chart one
The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
The above, only presently preferred embodiments of the present invention, it is not intended to limit the protection model of the present invention
Enclose.
Claims (13)
1. an information processing method, is applied to have in the electronic equipment of display unit;Described electronic equipment
Application can be run;Described method includes:
First window detected, it is thus achieved that the first parameter of described first window;Wherein, described first window is
First applies the window showing;The display size of first window described in described first parameter characterization;
Based on described first parameter according to preset rules described first application resource data set in select with
The resource data of described first parameter coupling, applies described the based on described resource data control described first
The display of one window;Wherein, described resource data comprises described first and applies when described first window shows
Display properties data.
2. method according to claim 1, it is characterised in that described resource data set include to
Few two resource datas, but described at least two resource data is belonging to same parameters attribute has different ginseng
Two resource datas of numerical value.
3. method according to claim 2, it is characterised in that described resource data includes described first
Apply the resolution parameter when described first window shows;Described at least two resource data is respectively provided with not
Same resolution parameter.
4. method according to claim 2, it is characterised in that described based on described first parameter according to
Preset rules selects the number of resources mated with described first parameter in the resource data set of described first application
According to, comprising:
Search the first mapping set based on described first parameter, it is thus achieved that the number of resources mated with described first parameter
According to mark;Wherein, described first mapping set includes the mapping relations of the first parameter and resource data mark;
Resource data set based on the first application described in described resource data identifier lookup, it is thus achieved that with described money
The first resource data of source data mark coupling.
5. method according to claim 4, it is characterised in that described based on described first parameter lookup
First mapping set, it is thus achieved that the resource data mark mated with described first parameter, comprising:
Search described first mapping set based on described first parameter, determine that described first parameter is preset first
During threshold interval, it is thus achieved that the first resource Data Identification mating with described first predetermined threshold value interval;
Wherein, described first mapping set includes at least two predetermined threshold value interval and at least two number of resources
According to mapping relations;Described first predetermined threshold value is interval, and at least two predetermined threshold value, arbitrary in interval presets
Threshold interval;The interval quantity of described at least two predetermined threshold value and the quantity of described at least two resource data
Unanimously.
6. method according to claim 3, it is characterised in that described sign described first window size
The first parameter and described resource data in resolution parameter there is positive correlation.
7. method according to claim 1, it is characterised in that when described in described first parameter characterization
When the size of one window is the size of described full screen window, described based on described first parameter according to preset rules
The resource data mating with described first parameter is selected in the resource data set of described first application, comprising:
Select Secondary resource data based on described first parameter in the resource data set of described first application;Wherein,
Resolution parameter in described Secondary resource data is maximum.
8. an electronic equipment, described electronic equipment has display unit;Described electronic equipment also includes: inspection
Survey unit, select unit and control unit;Wherein,
Described detector unit, is used for first window being detected, it is thus achieved that the first parameter of described first window;Its
In, described first window is the window that the first application shows;First window described in described first parameter characterization
The display size of mouth;
Described selection unit, for described first parameter based on the acquisition of described detector unit according to preset rules
The resource data mating with described first parameter is selected in the resource data set of described first application;Wherein,
Described resource data comprises described first and applies display properties data when described first window shows;
Described control unit, for the described resource data control described first based on described selection Unit selection
Apply the display at described first window.
9. electronic equipment according to claim 8, it is characterised in that wrap in described resource data set
Including at least two resource data, but described at least two resource data is belonging to same parameters attribute has not
Two resource datas of same parameter value.
10. electronic equipment according to claim 9, it is characterised in that described resource data includes institute
State first and apply resolution ratio when described first window shows;Described at least two resource data is respectively provided with
Different resolution parameters.
11. electronic equipments according to claim 9, it is characterised in that described selection unit, are used for
Search the first mapping set based on described first parameter, it is thus achieved that the resource data mark mating with described first parameter
Know;Wherein, described first mapping set includes the mapping relations of the first parameter and resource data mark;Base
Resource data set in the first application described in described resource data identifier lookup, it is thus achieved that with described resource data
The first resource data of mark coupling.
12. electronic equipments according to claim 11, it is characterised in that described selection unit, are used for
Search described first mapping set based on described first parameter, determine described first parameter in the first predetermined threshold value
When interval, it is thus achieved that the first resource Data Identification mating with described first predetermined threshold value interval;Wherein, described
First mapping set includes the interval mapping relations with at least two resource data of at least two predetermined threshold value;
The interval arbitrary predetermined threshold value at least two predetermined threshold value in interval of described first predetermined threshold value is interval;Described
The interval quantity of at least two predetermined threshold value is consistent with the quantity of described at least two resource data.
13. electronic equipments according to claim 8, it is characterised in that described selection unit, also use
When the size that the size of first window described in described first parameter characterization is described full screen window, based on institute
State the first parameter and select Secondary resource data in the resource data set of described first application;Wherein, described
Resolution parameter in Secondary resource data is maximum.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510082227.XA CN105988807B (en) | 2015-02-15 | 2015-02-15 | Information processing method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510082227.XA CN105988807B (en) | 2015-02-15 | 2015-02-15 | Information processing method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105988807A true CN105988807A (en) | 2016-10-05 |
CN105988807B CN105988807B (en) | 2020-03-24 |
Family
ID=57042443
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510082227.XA Active CN105988807B (en) | 2015-02-15 | 2015-02-15 | Information processing method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105988807B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114827725A (en) * | 2022-04-21 | 2022-07-29 | 上海哔哩哔哩科技有限公司 | Video playing method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09172572A (en) * | 1995-12-20 | 1997-06-30 | Sanyo Electric Co Ltd | Parameter setting circuit |
US20070271522A1 (en) * | 2006-05-22 | 2007-11-22 | Samsung Electronics Co., Ltd. | Apparatus and method for setting user interface according to user preference |
CN102595204A (en) * | 2012-02-28 | 2012-07-18 | 华为终端有限公司 | Streaming media transmitting method, device and system |
CN103870116A (en) * | 2014-02-18 | 2014-06-18 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN103885676A (en) * | 2014-02-21 | 2014-06-25 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN104090701A (en) * | 2014-06-03 | 2014-10-08 | 联想(北京)有限公司 | Information processing method and electronic equipment |
-
2015
- 2015-02-15 CN CN201510082227.XA patent/CN105988807B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09172572A (en) * | 1995-12-20 | 1997-06-30 | Sanyo Electric Co Ltd | Parameter setting circuit |
US20070271522A1 (en) * | 2006-05-22 | 2007-11-22 | Samsung Electronics Co., Ltd. | Apparatus and method for setting user interface according to user preference |
CN102595204A (en) * | 2012-02-28 | 2012-07-18 | 华为终端有限公司 | Streaming media transmitting method, device and system |
CN103870116A (en) * | 2014-02-18 | 2014-06-18 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN103885676A (en) * | 2014-02-21 | 2014-06-25 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN104090701A (en) * | 2014-06-03 | 2014-10-08 | 联想(北京)有限公司 | Information processing method and electronic equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114827725A (en) * | 2022-04-21 | 2022-07-29 | 上海哔哩哔哩科技有限公司 | Video playing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN105988807B (en) | 2020-03-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104991696B (en) | A kind of information processing method and electronic equipment | |
CN104063128B (en) | A kind of information processing method and electronic equipment | |
CN102855068B (en) | Interface operation control method, device and electronic equipment | |
CN106569659A (en) | Information display method and apparatus | |
CN106662910A (en) | Electronic device and method of controlling display thereof | |
CN107329653A (en) | Adjust the method and device of icon sizes | |
CN106648314A (en) | Method and device for splitting screen | |
CN104571792A (en) | Information processing method and electronic equipment | |
CN107729897A (en) | A kind of text maninulation method, apparatus and terminal | |
CN106873985A (en) | A kind of method and terminal that wallpaper is set | |
CN106776301A (en) | Daughter element method of testing and device | |
CN104216996A (en) | File information display method and device | |
CN106201175A (en) | The location regulation method of application icon, device and terminal | |
CN108984142A (en) | Multi-screen display method, device, storage medium and electronic equipment | |
CN103914219A (en) | Page control method and system | |
CN105260077A (en) | Electronic device and detection method for capacitive touch screen of electronic device | |
CN106020642A (en) | Method for starting association application and terminal | |
CN106598375A (en) | Method and device for displaying application contents of intelligent terminal, and intelligent terminal | |
CN105988807A (en) | Information processing method and electronic equipment | |
CN104765564B (en) | A kind of screenshot method and device | |
CN106951168A (en) | A kind of literal processing method and mobile terminal | |
CN106933438A (en) | A kind of application display method, device and mobile terminal | |
CN104808895A (en) | Icon arranging method | |
CN105843826A (en) | Search method and device | |
CN104345881A (en) | Method for processing information and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |