CN106201709A - resource display method and device - Google Patents
resource display method and device Download PDFInfo
- Publication number
- CN106201709A CN106201709A CN201610491061.1A CN201610491061A CN106201709A CN 106201709 A CN106201709 A CN 106201709A CN 201610491061 A CN201610491061 A CN 201610491061A CN 106201709 A CN106201709 A CN 106201709A
- Authority
- CN
- China
- Prior art keywords
- resource
- logic density
- density
- logic
- scaling
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
- G06F9/505—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load
Abstract
Present disclose provides a kind of resource display method and device, belong to field of terminal technology.Method includes: when starting application, obtain the first logic density, and the first logic density is the logic density of the resource adaptation of application;Judging that the first logic density is the most consistent with the second logic density, the second logic density is the logic density of terminal;If the first logic density is inconsistent with the second logic density, then according to the first logic density and the second logic density, calculate the scaling of resource;During loading resource, according to scaling, resource is zoomed in and out;Resource after display scaling.By when starting application, the logic density of logic density adaptive for the resource of this application and terminal self is compared, automatically the scaling that resource is zoomed in and out is calculated in the case of the two is inconsistent, and according to this scaling, resource is zoomed in and out, and then the resource after display scaling, making resource more can adapt to terminal when display, therefore display effect is good.
Description
Technical field
It relates to field of terminal technology, particularly relate to a kind of resource display method and device.
Background technology
Along with the development of science and technology, intelligent terminal is upper can install various application, to realize different functions.
For the application installed upper for intelligent terminal, during application runs, intelligent terminal can load the relevant money of this application
Source, such as picture, word, control etc..This resource, after being loaded into resource, can be shown by intelligent terminal according to the size of resource
Show.
In correlation technique, logic density is generally used to characterize the display capabilities of intelligent terminal.Wherein, logic density refers to
The pixel number included in inches.In order to make the intelligent terminal of Different Logic density go display same with identical page layout
The resource of one application, can design various sizes of resource for Different Logic density during exploitation application.I.e. for same
For one application, devise the different size resource adaptive with multiple logic density.For same resource, it needs adaptation
Logic density the highest, the biggest for its size designed.Such as, same picture resource needs at two logic density different intelligents
Show in terminal, then needing to design two kinds of sizes for this picture resource, large-sized picture resource is high for adaptation, logic density
Intelligent terminal, undersized picture resource be used for the low density intelligent terminal of adaptation, logic so that this picture resource this two
The physical area occupied on individual intelligent terminal is identical.When intelligent terminal loads the resource of this application, can from server obtain with
The resource that inherent logic density is adaptive, so that the resource of display can be applicable to this intelligent terminal.
Due to when many sets different size resource that a certain application provides is not mated with the logic density of intelligent terminal, intelligence
Terminal can only load one and the unmatched resource of inherent logic density, this makes the resource of display be not applied for this intelligence
Terminal, therefore display effect is poor.
Summary of the invention
For overcoming problem present in correlation technique, the disclosure provides a kind of resource display method and device, described technology
Scheme is as follows:
First aspect according to disclosure embodiment, it is provided that a kind of resource display method, described method includes:
When starting application, obtaining the first logic density, described first logic density is the resource adaptation of described application
Logic density;
Judging that described first logic density is the most consistent with the second logic density, described second logic density is patrolling of terminal
Collect density;
If described first logic density is inconsistent with described second logic density, then according to described first logic density and institute
State the second logic density, calculate the scaling of described resource;
During loading described resource, according to described scaling, described resource is zoomed in and out;
Resource after display scaling.
Alternatively, described according to described first logic density with described second logic density, calculate the scaling of described resource
Ratio includes:
Obtain the pre-set zoom parameter value of storage;
Calculate described second logic density and the ratio of described first logic density;
Calculate the product of described ratio and described pre-set zoom parameter value, obtain the scaling of described resource.
Alternatively, before described acquisition pre-set zoom parameter value, described method also includes:
When detecting that layout arranges operation, show multiple layout setting options, corresponding one of each layout setting options
Zooming parameter value;
When detect layout setting options are chosen operation time, the contracting corresponding to layout setting options that will choose
Put parameter value to store as described pre-set zoom parameter value.
Alternatively, described during loading described resource, according to described scaling, described resource is zoomed in and out
Including:
Obtain the original size of described resource;
The display size of described resource is calculated based on described scaling and described original size;
Based on described display size, described resource is zoomed in and out, the resource after being scaled.
Alternatively, it is judged that after described first logic density is the most consistent with the second logic density of terminal, described method
Also include:
If described first logic density is consistent with the second logic density of terminal, then with the original size of described resource to institute
State resource to show.
Alternatively, the first logic density of the resource adaptation of the described application of described acquisition includes:
Obtaining the resource description list of described application, described resource description list is for indicating the resource adaptation of described application
Logic density;
Based on described resource description list, obtain described first logic density.
Second aspect according to disclosure embodiment, it is provided that a kind of resource display device, described device includes:
Acquisition module, for when starting application, obtaining the first logic density, described first logic density is described application
The logic density of resource adaptation;
Judge module, is used for judging that described first logic density is the most consistent with the second logic density, described second logic
Density is the logic density of terminal;
Computing module, if inconsistent with described second logic density for described first logic density, then according to described the
One logic density and described second logic density, calculate the scaling of described resource;
Zoom module, for, during loading described resource, contracting to described resource according to described scaling
Put;
Display module, the resource after showing scaling.
Alternatively, described computing module is for obtaining the pre-set zoom parameter value of storage;Calculate described second logic density
Ratio with described first logic density;Calculate the product of described ratio and described pre-set zoom parameter value, obtain described resource
Scaling.
Alternatively, described device also includes:
Described display module is additionally operable to when detecting that layout arranges operation, shows multiple layout setting options, Mei Gebu
The corresponding zooming parameter value of office's setting options;
Memory module, for when detect layout setting options are chosen operation time, the layout that choose is arranged
Zooming parameter value corresponding to option stores as described pre-set zoom parameter value.
Alternatively, described Zoom module is for obtaining the original size of described resource;Based on described scaling and described
Original size calculates the display size of described resource;Based on described display size, described resource is zoomed in and out, after being scaled
Resource.
Alternatively, if to be additionally operable to described first logic density consistent with the second logic density of terminal for described display module,
Then with the original size of described resource, described resource is shown.
Alternatively, described acquisition module is for obtaining the resource description list of described application, and described resource description list is used
Logic density in the resource adaptation indicating described application;Based on described resource description list, obtain described first logic density.
The third aspect according to disclosure embodiment, it is provided that a kind of resource display device, including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to: when starting application, obtaining the first logic density, described first logic is close
Degree is the logic density of the resource adaptation of described application;Judge that described first logic density is the most consistent with the second logic density,
Described second logic density is the logic density of terminal;If described first logic density is inconsistent with described second logic density,
Then according to described first logic density and described second logic density, calculate the scaling of described resource;Loading described money
During source, according to described scaling, described resource is zoomed in and out;Resource after display scaling.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect:
When starting application, terminal can be by the logic density of logic density adaptive for the resource of this application Yu terminal self
Compare, in the case of the two is inconsistent, automatically calculate the scaling that resource is zoomed in and out, and according to this pantograph ratio
Resource is zoomed in and out by example, and then the resource after display scaling so that resource more can adapt to terminal when display, therefore shows
Effective.
It should be appreciated that it is only exemplary and explanatory, not that above general description and details hereinafter describe
The disclosure can be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet the enforcement of the disclosure
Example, and for explaining the principle of the disclosure together with description.
Fig. 1 is the flow chart according to a kind of resource display method shown in an exemplary embodiment.
Fig. 2 is the flow chart according to a kind of resource display method shown in an exemplary embodiment.
Fig. 3 is the schematic diagram shown according to a kind of resource shown in an exemplary embodiment.
Fig. 4 is the schematic diagram shown according to a kind of resource shown in an exemplary embodiment.
Fig. 5 is the block diagram according to a kind of resource display device shown in an exemplary embodiment.
Fig. 6 is the block diagram according to a kind of resource display device shown in an exemplary embodiment.
Fig. 7 is the block diagram according to a kind of resource display device shown in an exemplary embodiment.
Detailed description of the invention
For making the purpose of the disclosure, technical scheme and advantage clearer, below in conjunction with accompanying drawing to disclosure embodiment party
Formula is described in further detail.
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they are only with the most appended
The example of the apparatus and method that some aspects that described in detail in claims, the disclosure are consistent.
Fig. 1 is the flow chart according to a kind of resource display method shown in an exemplary embodiment, as it is shown in figure 1, the party
Method, in terminal, comprises the following steps:
In a step 101, when starting application, obtaining the first logic density, the first logic density is the resource of this application
Adaptive logic density.
In a step 102, it is judged that the first logic density is the most consistent with the second logic density, the second logic density is terminal
Logic density;If inconsistent, then perform following step 103.
In step 103, if the first logic density is inconsistent with the second logic density, then according to the first logic density and
Two logic density, calculate the scaling of resource.
At step 104, during loading resource, according to scaling, resource is zoomed in and out.
In step 105, the resource after display scaling.
The method that disclosure embodiment provides, when starting application, terminal can be by logic adaptive for the resource of this application
The logic density of density and terminal self compares, and in the case of the two is inconsistent, automatically calculates and zooms in and out resource
Scaling, and according to this scaling, resource is zoomed in and out, and then the resource after display scaling so that resource is in display
Shi Gengneng adapts to terminal, and therefore display effect is good.
Alternatively, according to the first logic density and the second logic density, the scaling calculating resource includes:
Obtain the pre-set zoom parameter value of storage;
Calculate the second logic density and the ratio of the first logic density;
Ratio calculated and the product of pre-set zoom parameter value, obtain the scaling of resource.
Alternatively, before obtaining pre-set zoom parameter value, method also includes:
When detecting that layout arranges operation, show multiple layout setting options, corresponding one of each layout setting options
Zooming parameter value;
When detect layout setting options are chosen operation time, the contracting corresponding to layout setting options that will choose
Put parameter value to store as pre-set zoom parameter value.
Alternatively, loading during resource, according to scaling resource zoomed in and out and include:
Obtain the original size of resource;
The display size of resource is calculated based on scaling and original size;
Based on display size, resource is zoomed in and out, the resource after being scaled.
Alternatively, it is judged that after the first logic density is the most consistent with the second logic density of terminal, method also includes:
If the first logic density is consistent with the second logic density of terminal, then with the original size of resource, resource is shown
Show.
Alternatively, the first logic density of the resource adaptation obtaining application includes:
Obtaining the resource description list of application, resource description list is for indicating the logic density of the resource adaptation of application;
Based on resource description list, obtain the first logic density.
Above-mentioned all optional technical schemes, can use and arbitrarily combine the alternative embodiment forming the disclosure, at this no longer
Repeat one by one.
Fig. 2 is the flow chart according to a kind of resource display method shown in an exemplary embodiment, as in figure 2 it is shown, the party
Method, in terminal, comprises the following steps:
In step 201, when starting application, obtaining the first logic density, this first logic density is the money of this application
The logic density that source is adaptive.
During exploitation application, can be a set of resource of Application Design, the logic density that this resource adaptation is certain, and should
The adaptive logic density of resource can be added in resource description list.Terminal is after installing this application, if starting this application,
Then terminal can obtain the resource description list of this application automatically from server;Afterwards, terminal can obtain based on this resource description list
Take the first logic density of the resource adaptation of this application.Wherein, resource description list is except the resource adaptation for indicating application
Logic density outside, it is also possible to other including resource describe information, the size of such as resource, display format, acquisition approach etc.,
This is not especially limited by disclosure embodiment.Wherein, the size of resource can be indicated, such as to use the form of pixel
10*10 pixel etc., and wherein " * ' represent " multiplication sign ".
In step 202., it is judged that the first logic density is the most consistent with the second logic density, this second logic density is eventually
The logic density of end;If inconsistent, then perform following step 203;If consistent, then perform following step 206.
In the disclosed embodiments, terminal has the logic density of self, and disclosure embodiment is by the logic of terminal self
Density is referred to as the second logic density.This second logic density can be configured when dispatching from the factory in advance by terminal, it is possible to is entered by terminal
Row pre-sets, and when such as terminal is started shooting for the first time, the resolution according to self and screen physical size, calculate and store second
Logic density etc., the set-up mode of the second logic density is not especially limited by disclosure embodiment.Wherein, the screen thing of terminal
Managing the manual size of a size of terminal screen, its numerical value can be 3.5 inches, 4 inches, 4.7 inches, 5 inches, 5.5 English
Very little, 6 inches etc., this is not especially limited by disclosure embodiment.Wherein, terminal can obtain the second logic by preset interface
Density, this preset interface can be preset by developer, and this is not especially limited by disclosure embodiment.
After getting the first logic density and the second logic density, terminal can be by close to the first logic density and the second logic
Degree compares;If the two is equal, it is determined that the first logic density is consistent with the second logic density, and performs following step
206;If the two is unequal, it is determined that the first logic density and the second logic density are inconsistent, and perform following step 203.
In step 203, if the first logic density is inconsistent with the second logic density, then according to the first logic density and
Two logic density, calculate the scaling of resource.
When the first logic density that resource is adaptive is inconsistent with the second logic density of terminal, if resource is not entered
Any process of row, then can affect this resource display layout in terminal.Below with two terminals that logic density is different, load the
As a example by the resource that one logic density is identical, the display layout that logic density affects resource is described in detail.
Example 1, the screen physical size of terminal 1 is 5 inches, and logic density is 320dpi;The screen physical size of terminal 2 is
5 inches, logic density is 640dpi;The logic density that the resource of application is adaptive is 320dpi (Dots Per Inch, every English
Very little counts).Such as, certain resource is picture A, and the size of this picture A is 100*100 pixel.Fig. 3 is terminal 1 and terminal 2 loads
Display effect figure after picture A.Wherein, owing to the logic density of terminal 2 is 2 times of the logic density of terminal 1, therefore terminal 2
Physical size corresponding to upper 100 pixels is 1/2nd of the physical size that in terminal 1,100 pixels are corresponding.Correspondingly, exist
Show that the effect of picture A is shown in Fig. 3 in terminal 1 and terminal 2.In figure 3, the picture A of terminal 2 display is significantly less than terminal
The picture A of 1 display, so this may result in terminal 2 and cannot clearly show that picture A, have impact on display effect.Dotted line in Fig. 3
Reference line indicated by the physical size that 100 pixels in terminal 1 are corresponding.
In order to the logic density of the logic density adaptive in resource Yu terminal inconsistent time, do not affect resource display effect
Really, the disclosure can calculate, when knowing that the first logic density and the second logic density are inconsistent, the contracting zooming in and out resource
Putting ratio, calculating process can be: obtains the pre-set zoom parameter value of storage;Calculate the second logic density and the first logic density
Ratio;Ratio calculated and the product of pre-set zoom parameter value, obtain the scaling of resource.
Wherein, pre-set zoom parameter value can be configured in advance, and setting up procedure can be: when terminal detects that layout is arranged
During operation, show multiple layout setting options;Wherein, the corresponding zooming parameter value of each layout setting options.When detecting
When one layout setting options is chosen operation, the zooming parameter value corresponding to layout setting options that will choose is as presetting
Zooming parameter value stores.
Wherein, the number of layout setting options can be configured in advance according to user's request, such as 2,3 etc., this
This is not especially limited by open embodiment.Zooming parameter value corresponding to each layout options can be configured in advance, scaling
Parameter value wishes the fine degree of terminal demonstration for indicating user.The concrete numerical value of zooming parameter value can be 0.8,0.9,1,
1.2,1.3 etc., this is not especially limited by disclosure embodiment.Zooming parameter value the least instruction display effect of terminal is the finest,
That is to say, the content that the same page shows is the most, and picture is the finest and the smoothest.Correspondingly, the plurality of layout setting options can be named
For " little layout ", " default layout ", " middle layout ", " big layout " etc., to indicate user to carry out according to the display demand of terminal
Select.
It should be noted that the setting up procedure of above-mentioned pre-set zoom parameter value can also set in start bootup process
Putting, preset parameter value is arranged and the most specifically limits by the disclosure embodiment opportunity.If pre-set zoom parameter is not entered by user
Row is arranged, and terminal can select the zooming parameter of acquiescence as pre-set zoom parameter value.
In step 204, during loading resource, according to scaling, resource is zoomed in and out.
Wherein, the process zoomed in and out resource according to scaling can be: obtains the original size of resource;Based on contracting
Put ratio and the display size of original size calculating resource;Resource is zoomed in and out by resource-based display size, is scaled
After resource.
Still as a example by above-mentioned example 1, it is assumed that pre-set zoom parameter value is 0.9, then logic density is that the terminal 2 of 640dpi is adding
When carrying the picture A that the first logic density is 320dpi, the pantograph ratio of picture A can be obtained by above-mentioned scaling calculation procedure
Example is that 640dpi/320dip*0.9 is equal to 1.8.Wherein, "/" represents " division sign ", " * " expression " multiplication sign ".That is to say, need figure
Sheet A is amplified.From above-mentioned example 1, the original size of picture A is 100*100 pixel, then in the original size of this picture A
On be multiplied by scaling and just can get the display size of picture A, be (100*1.8) * (100*1.8) pixel equal to 180*180
Pixel.Afterwards, picture A is amplified to 180*180 pixel, the picture A1 after being amplified, that is to say, the picture A1's after amplification
A size of 180*180.
It should be noted that and be, resource is the most different before and after scaling, and the content comprised is consistent.Resource is carried out
Scaling includes the amplification to resource and reduces, and this is not especially limited by disclosure embodiment.
In step 205, the resource after display scaling.
In the disclosed embodiments, the size of the resource after the resource after display scaling refers to according to scaling shows.
As a example by the example that above-mentioned steps 204 is given, the original size of picture A is 100*100, according to scaling 1.8
After being amplified picture A, the size obtaining picture A1 is 180*180.Terminal 2 just shows according to the size of picture A1.
It is illustrated in figure 4 terminal 1 and shows that picture A, terminal 2 show the display effect comparison diagram that picture A and terminal 2 show picture A1.
Owing to logic density adaptive for picture A is consistent with the logic density of terminal 1, therefore the picture A shown by terminal 1 represents out
Send out the desired display effect of personnel.So, according to Fig. 4 it can be seen that the terminal 2 display effect after picture A is zoomed in and out
It is substantially better than the terminal 2 display effect before picture A is scaled.And, the physics occupied with the picture A of terminal 1 display
Area is compared, and the physical area that picture A1 is occupied in terminal 2 is less, comprises 180*180 pixel, picture A due to picture A1 again
Only comprising 100*100 pixel, therefore, the picture A1 of terminal 2 display is more finer than the picture A that terminal 1 shows, display effect is more
Good.
In step 206, if the first logic density is consistent with the second logic density, then with the original size of resource to resource
Show.
In the disclosed embodiments, if the adaptive logic density of resource is equal with the logic density of terminal, it is determined that
First logic density is consistent with the second logic density.Imitate to not affect the display of the resource of logic density adaptive terminal
Really, after determining that the first logic density is consistent with the second logic density, directly according to the original size of resource, resource is shown
Show.
The method that disclosure embodiment provides, when starting application, terminal can be by logic adaptive for the resource of this application
The logic density of density and terminal self compares, and in the case of the two is inconsistent, automatically calculates and zooms in and out resource
Scaling, and according to this scaling, resource is zoomed in and out, and then the resource after display scaling so that resource is in display
Shi Gengneng adapts to terminal, and therefore display effect is good.
Fig. 5 is the block diagram according to a kind of resource display device shown in an exemplary embodiment.With reference to Fig. 5, this device bag
Include acquisition module 501, it is judged that module 502, computing module 503, Zoom module 504, display module 505.
Wherein, acquisition module 501 is connected with judge module 502, for when starting application, obtaining the first logic density,
First logic density is the logic density of the resource adaptation of application;Judge module 502 is connected with computing module 503, is used for judging
First logic density is the most consistent with the second logic density, and the second logic density is the logic density of terminal;Computing module 503 with
Zoom module 504 connects, if inconsistent with the second logic density for the first logic density, then according to the first logic density and the
Two logic density, calculate the scaling of resource;Zoom module 504 is connected with display module 505, in the mistake loading resource
Cheng Zhong, zooms in and out resource according to scaling;Display module 505, the resource after showing scaling.
Alternatively, computing module 503 is for obtaining the pre-set zoom parameter value of storage;Calculate the second logic density and first
The ratio of logic density;Ratio calculated and the product of pre-set zoom parameter value, obtain the scaling of resource.
Alternatively, seeing Fig. 6, this device also includes:
Display module 505 is additionally operable to when detecting that layout arranges operation, shows multiple layout setting options, each layout
The corresponding zooming parameter value of setting options;
Memory module 506, for when detect layout setting options are chosen operation time, the layout chosen is set
Put the zooming parameter value corresponding to option to store as pre-set zoom parameter value.
Alternatively, Zoom module 504 is for obtaining the original size of resource;Money is calculated based on scaling and original size
The display size in source;Based on display size, resource is zoomed in and out, the resource after being scaled.
Alternatively, if to be additionally operable to the first logic density consistent with the second logic density of terminal for display module 505, then as a means of
Resource is shown by the original size in source.
Alternatively, acquisition module 501 is for obtaining the resource description list of application, and resource description list is used for indicating application
The logic density of resource adaptation;Based on resource description list, obtain the first logic density.
The device that disclosure embodiment provides, when starting application, terminal can be by logic adaptive for the resource of this application
The logic density of density and terminal self compares, and in the case of the two is inconsistent, automatically calculates and zooms in and out resource
Scaling, and according to this scaling, resource is zoomed in and out, and then the resource after display scaling so that resource is in display
Shi Gengneng adapts to terminal, and therefore display effect is good.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation in relevant the method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 7 is the block diagram according to a kind of resource display device shown in an exemplary embodiment.Such as, device 700 is permissible
It is mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, armarium, body-building
Equipment, personal digital assistant etc..
With reference to Fig. 7, device 700 can include following one or more assembly: processes assembly 702, memorizer 704, power supply
Assembly 706, multimedia groupware 704, audio-frequency assembly 710, input/output (I/O) interface 712, sensor cluster 714, Yi Jitong
Letter assembly 716.
Process assembly 702 and generally control the integrated operation of device 700, such as with display, call, data communication, phase
The operation that machine operation and record operation are associated.Process assembly 702 and can include that one or more processor 720 performs to refer to
Order, to complete all or part of step of above-mentioned method.Additionally, process assembly 702 can include one or more module, just
Mutual in process between assembly 702 and other assemblies.Such as, process assembly 702 and can include multi-media module, many to facilitate
Media component 708 and process between assembly 702 mutual.
Memorizer 704 is configured to store various types of data to support the operation at device 700.Showing of these data
Example includes any application program for operation on device 700 or the instruction of method, contact data, telephone book data, disappears
Breath, picture, video etc..Memorizer 704 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable compile
Journey read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash
Device, disk or CD.
The various assemblies that power supply module 706 is device 700 provide electric power.Power supply module 706 can include power management system
System, one or more power supplys, and other generate, manage and distribute, with for device 700, the assembly that electric power is associated.
The screen of one output interface of offer that multimedia groupware 708 is included between described device 700 and user.One
In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch sensing
Device is with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sense touch or sliding action
Border, but also detect the persistent period relevant to described touch or slide and pressure.In certain embodiments, many matchmakers
Body assembly 708 includes a front-facing camera and/or post-positioned pick-up head.When device 700 is in operator scheme, such as screening-mode or
During video mode, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Each front-facing camera and
Post-positioned pick-up head can be a fixing optical lens system or have focal length and optical zoom ability.
Audio-frequency assembly 710 is configured to output and/or input audio signal.Such as, audio-frequency assembly 710 includes a Mike
Wind (MIC), when device 700 is in operator scheme, during such as call model, logging mode and speech recognition mode, mike is joined
It is set to receive external audio signal.The audio signal received can be further stored at memorizer 704 or via communication set
Part 716 sends.In certain embodiments, audio-frequency assembly 710 also includes a speaker, is used for exporting audio signal.
I/O interface 712 provides interface for processing between assembly 702 and peripheral interface module, above-mentioned peripheral interface module can
To be keyboard, put striking wheel, button etc..These buttons may include but be not limited to: home button, volume button, start button and lock
Set button.
Sensor cluster 714 includes one or more sensor, for providing the state of various aspects to comment for device 700
Estimate.Such as, what sensor cluster 714 can detect device 700 opens/closed mode, the relative localization of assembly, such as described
Assembly is display and the keypad of device 700, and sensor cluster 714 can also detect device 700 or 700 1 assemblies of device
Position change, the presence or absence that user contacts with device 700, device 700 orientation or acceleration/deceleration and device 700
Variations in temperature.Sensor cluster 714 can include proximity transducer, is configured to when not having any physical contact detect
The existence of neighbouring object.Sensor cluster 714 can also include optical sensor, such as CMOS or ccd image sensor, is used for becoming
Use as in application.In certain embodiments, this sensor cluster 714 can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 716 is configured to facilitate the communication of wired or wireless mode between device 700 and other equipment.Device
700 can access wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.An exemplary enforcement
In example, communications component 716 receives the broadcast singal from external broadcasting management system or broadcast related information via broadcast channel.
In one exemplary embodiment, described communications component 716 also includes near-field communication (NFC) module, to promote junction service.Example
As, can be based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology,
Bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 700 can be by one or more application specific integrated circuits (ASIC), numeral letter
Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components realize, be used for performing above-mentioned resource display method.
In the exemplary embodiment, a kind of non-transitory computer-readable recording medium including instruction, example are additionally provided
As included the memorizer 704 of instruction, above-mentioned instruction can have been performed said method by the processor 720 of device 700.Such as,
Described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium, when described storage is situated between
When instruction in matter is performed by the processor of terminal so that terminal is able to carry out above-mentioned resource display method.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to its of the disclosure
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modification, purposes or
Person's adaptations is followed the general principle of the disclosure and includes the undocumented common knowledge in the art of the disclosure
Or conventional techniques means.Description and embodiments is considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claim is pointed out.
It should be appreciated that the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and
And various modifications and changes can carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.
Claims (13)
1. a resource display method, it is characterised in that described method includes:
When starting application, obtaining the first logic density, described first logic density is the logic of the resource adaptation of described application
Density;
Judging that described first logic density is the most consistent with the second logic density, described second logic density is that the logic of terminal is close
Degree;
If described first logic density is inconsistent with described second logic density, then according to described first logic density and described
Two logic density, calculate the scaling of described resource;
During loading described resource, according to described scaling, described resource is zoomed in and out;
Resource after display scaling.
Method the most according to claim 1, it is characterised in that described patrol according to described first logic density and described second
Collecting density, the scaling calculating described resource includes:
Obtain the pre-set zoom parameter value of storage;
Calculate described second logic density and the ratio of described first logic density;
Calculate the product of described ratio and described pre-set zoom parameter value, obtain the scaling of described resource.
Method the most according to claim 2, it is characterised in that before described acquisition pre-set zoom parameter value, described method
Also include:
When detecting that layout arranges operation, show multiple layout setting options, the corresponding scaling of each layout setting options
Parameter value;
When detect layout setting options are chosen operation time, corresponding to the layout setting options that will choose scaling ginseng
Numerical value stores as described pre-set zoom parameter value.
Method the most according to claim 1, it is characterised in that described during loading described resource, according to described
Described resource is zoomed in and out and includes by scaling:
Obtain the original size of described resource;
The display size of described resource is calculated based on described scaling and described original size;
Based on described display size, described resource is zoomed in and out, the resource after being scaled.
Method the most according to claim 1, it is characterised in that judge the second logic of described first logic density and terminal
After density is the most consistent, described method also includes:
If described first logic density is consistent with the second logic density of terminal, then with the original size of described resource to described money
Source shows.
Method the most according to claim 1, it is characterised in that the first logic of the resource adaptation of the described application of described acquisition
Density includes:
Obtaining the resource description list of described application, described resource description list is for indicating patrolling of the resource adaptation of described application
Collect density;
Based on described resource description list, obtain described first logic density.
7. a resource display device, it is characterised in that described device includes:
Acquisition module, for when starting application, obtaining the first logic density, described first logic density is the money of described application
The logic density that source is adaptive;
Judge module, is used for judging that described first logic density is the most consistent with the second logic density, described second logic density
Logic density for terminal;
Computing module, if inconsistent with described second logic density for described first logic density, then patrols according to described first
Collect density and described second logic density, calculate the scaling of described resource;
Zoom module, for, during loading described resource, zooming in and out described resource according to described scaling;
Display module, the resource after showing scaling.
Device the most according to claim 7, it is characterised in that described computing module is for obtaining the pre-set zoom ginseng of storage
Numerical value;Calculate described second logic density and the ratio of described first logic density;Calculate described ratio and described pre-set zoom
The product of parameter value, obtains the scaling of described resource.
Device the most according to claim 8, it is characterised in that described device also includes:
Described display module is additionally operable to when detecting that layout arranges operation, shows multiple layout setting options, and each layout sets
Put the corresponding zooming parameter value of option;
Memory module, for when detect layout setting options are chosen operation time, the layout setting options that will choose
Corresponding zooming parameter value stores as described pre-set zoom parameter value.
Device the most according to claim 7, it is characterised in that described Zoom module is for obtaining the original of described resource
Size;The display size of described resource is calculated based on described scaling and described original size;Based on described display size pair
Described resource zooms in and out, the resource after being scaled.
11. devices according to claim 7, it is characterised in that if to be additionally operable to described first logic close for described display module
Spend consistent with the second logic density of terminal, then with the original size of described resource, described resource is shown.
12. devices according to claim 7, it is characterised in that described acquisition module is for obtaining the resource of described application
Describing list, described resource description list is for indicating the logic density of the resource adaptation of described application;Retouch based on described resource
State list, obtain described first logic density.
13. 1 kinds of resource display devices, it is characterised in that including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to: when starting application, obtaining the first logic density, described first logic density is
The logic density of the resource adaptation of described application;Judge that described first logic density is the most consistent with the second logic density, described
Second logic density is the logic density of terminal;If described first logic density is inconsistent with described second logic density, then root
According to described first logic density and described second logic density, calculate the scaling of described resource;Loading described resource
During, according to described scaling, described resource is zoomed in and out;Resource after display scaling.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610491061.1A CN106201709A (en) | 2016-06-28 | 2016-06-28 | resource display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610491061.1A CN106201709A (en) | 2016-06-28 | 2016-06-28 | resource display method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106201709A true CN106201709A (en) | 2016-12-07 |
Family
ID=57461078
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610491061.1A Pending CN106201709A (en) | 2016-06-28 | 2016-06-28 | resource display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106201709A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106598523A (en) * | 2016-12-16 | 2017-04-26 | 北京猎豹移动科技有限公司 | Picture loading method, device and electronic equipment |
CN111176747A (en) * | 2019-12-16 | 2020-05-19 | 华为终端有限公司 | Application starting method and device and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662616A (en) * | 2012-03-28 | 2012-09-12 | 北京邮电大学 | Screen graphics self-adaption method and system used for mobile terminal |
CN103197833A (en) * | 2012-01-09 | 2013-07-10 | 三星电子株式会社 | Apparatus and method for scaling layout of application in image display device |
CN104598131A (en) * | 2015-01-15 | 2015-05-06 | 小米科技有限责任公司 | Method and device for adjusting page display mode |
US20150248885A1 (en) * | 2014-02-28 | 2015-09-03 | Google Inc. | Hotwords presentation framework |
-
2016
- 2016-06-28 CN CN201610491061.1A patent/CN106201709A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103197833A (en) * | 2012-01-09 | 2013-07-10 | 三星电子株式会社 | Apparatus and method for scaling layout of application in image display device |
CN102662616A (en) * | 2012-03-28 | 2012-09-12 | 北京邮电大学 | Screen graphics self-adaption method and system used for mobile terminal |
US20150248885A1 (en) * | 2014-02-28 | 2015-09-03 | Google Inc. | Hotwords presentation framework |
CN104598131A (en) * | 2015-01-15 | 2015-05-06 | 小米科技有限责任公司 | Method and device for adjusting page display mode |
Non-Patent Citations (1)
Title |
---|
BLADE_: ""LCD密度的修改,让UI看起来更舒服"", 《URL:HTTP://WWW.MIUI.COM/THREAD-1767499-1-1.HTML》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106598523A (en) * | 2016-12-16 | 2017-04-26 | 北京猎豹移动科技有限公司 | Picture loading method, device and electronic equipment |
CN111176747A (en) * | 2019-12-16 | 2020-05-19 | 华为终端有限公司 | Application starting method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105117033B (en) | The connection method of external equipment and device | |
CN104899610A (en) | Picture classification method and device | |
CN105975156A (en) | Application interface display method and device | |
CN105808050A (en) | Information search method and device | |
CN105487805A (en) | Object operating method and device | |
CN106203650A (en) | Call a taxi and ask sending method and device | |
CN104464674B (en) | Liquid crystal display method of adjustment and device | |
CN105653165A (en) | Method and device for regulating character display | |
CN104238890A (en) | Text display method and device | |
CN106648141A (en) | Candidate word display method and device | |
CN105678266A (en) | Method and device for combining photo albums of human faces | |
CN105224174A (en) | The display packing of Paste and device | |
CN105208284A (en) | Photographing reminding method and device | |
CN105488829A (en) | Method and device for generating head portrait | |
CN104281368A (en) | Interface display method and device and terminal device | |
CN104539497B (en) | Method for connecting network and device | |
CN105635809A (en) | Image processing method and device and terminal | |
CN105808096A (en) | Sliding block display method and apparatus | |
CN105551047A (en) | Picture content detecting method and device | |
CN106201709A (en) | resource display method and device | |
CN104850592A (en) | Method and device for generating model file | |
CN105183326B (en) | list display method and device | |
CN103984476A (en) | Menu displaying method and device | |
CN106775240A (en) | The triggering method of application program, device and terminal | |
CN105824677A (en) | Method for deleting installation packages based on user operation data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161207 |
|
RJ01 | Rejection of invention patent application after publication |