CN102984350A - User-defined subject switchover method and device in mobile terminal of Android operating system - Google Patents

User-defined subject switchover method and device in mobile terminal of Android operating system Download PDF

Info

Publication number
CN102984350A
CN102984350A CN2012104312728A CN201210431272A CN102984350A CN 102984350 A CN102984350 A CN 102984350A CN 2012104312728 A CN2012104312728 A CN 2012104312728A CN 201210431272 A CN201210431272 A CN 201210431272A CN 102984350 A CN102984350 A CN 102984350A
Authority
CN
China
Prior art keywords
layout
resource
storehouse
unified
self
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012104312728A
Other languages
Chinese (zh)
Inventor
廖黎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN2012104312728A priority Critical patent/CN102984350A/en
Publication of CN102984350A publication Critical patent/CN102984350A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Disclosed is a user-defined subject switchover method and device in an Android operating system mobile terminal. The method comprises the following steps: an united layout library is defined in advance and preserved in a memorizer; an united resource library is defined in advance and preserved in the memorizer; an united layout library is loaded from the memorizer ,and one layout is chosen from the united layout library and regarded as the layout of the user-defined subject when the user-defined subject is switched; relative resources are cited from the united resource library on the basis of the chosen layout and taken into effect. Through the adding of the standard layout of the user-defined subject, bypassing differences of layouts and resources of different mobile phones, the same user-defined subject files are used by various kinds of mobile phones. Display effect of the interface control is held unanimously, thus the user-defined subject can be used universally in various kinds of mobile phones.

Description

The switching method and apparatus of self-defined theme in a kind of Android operating system portable terminal
Technical field
The present invention relates to the computer media human machine interface technologies, more particularly, relate to the switching method and apparatus of self-defined theme in a kind of Android operating system portable terminal.
Background technology
In information technoloy equipment or operating system field, theme finger vision outward appearance, for example, the desktop theme can comprise style, wallpaper, screen protection, system sounds event, icon etc., and except style was necessary, other parts were optional.And style is the man-machine interface people can see all, such as outward appearance of screen outward appearance, font, color, button etc.Existing Android portable terminal, the smart mobile phone of existing use Android operating system for example, when realizing that self-defined theme switches, the overwhelming majority rests on desktop, main menu level.And for the beautifying, replace of system's control (such as universal list, status bar, single choice, check button etc.), quote because of resource, layout and differ, even if in the mobile phone of same brand, also be difficult to realize versatility.Handling process when Fig. 1 illustrates the switching of existing techniques in realizing theme can see that when adopting Default Subject, the layout of use and resource are different, therefore, can hardly be avoided when both difference occurs, so conflict and the unmatched situation of effect occur.In Fig. 1, when using Default Subject, quote default layout and quoting resource table, by the quoting resource table system's picture resource bag is quoted, carry out at last interface display, and in self-defined theme situation, the picture resource bag heavy with subject document comes alternative system picture resource bag, realizes interface display again.Therefore, the difference of two resource bags has caused the difference of the visual effect that shows.
Summary of the invention
The technical problem to be solved in the present invention is, provide a kind of in Android operating system portable terminal the switching method and apparatus of self-defined theme, this method and apparatus, can walk around the otherness of mobile phone when using system's control (such as universal list, status bar, single choice, check button etc.), realize that unified theme switches.
The above-mentioned technical problem of the present invention solves like this, construct a kind of in Android operating system portable terminal the changing method of self-defined theme, may further comprise the steps:
Pre-defined unified layout storehouse also is kept in the memory;
Pre-defined unified resource storehouse also is kept in the memory;
When switching self-defined theme, load the layout that unified layout storehouse also therefrom chooses one as self-defined theme from memory;
According to selected layout, quote corresponding resource in the described unified resource storehouse, make it to come into force.
In said method of the present invention, unified layout storehouse be one comprise that a plurality of layouts are described and with the database of quoting resource relation.
In said method of the present invention, the unified resource storehouse is a database that comprises a plurality of resource datas.
In said method of the present invention, have one to one between the resource data in the unified layout storehouse in each layout description object and the unified resource storehouse or the corresponding relation of one-to-many.
In said method of the present invention, also comprise the step in the described unified layout of online updating storehouse.
In said method of the present invention, also comprise the step in the described unified resource of online updating storehouse.
In said method of the present invention, when using Default Subject, carry out following steps: the default layout that loads described portable terminal; Form the quoting resource table according to default layout; According to the quoting resource table, quote the system's picture resource bag in the described unified resource storehouse; Allow layout and quoting resource come into force, interface display comes into force.
According to of the present invention a kind of in Android operating system portable terminal the switching device shifter of self-defined theme, comprising:
Be used for pre-defined unified layout storehouse and be kept at the device of memory;
Be used for pre-defined unified resource storehouse and be kept at the device of memory;
When being used for switching self-defined theme, load the device that unified layout storehouse also therefrom chooses one as the layout of self-defined theme from memory;
Be used for according to selected layout, quote corresponding resource in the described unified resource storehouse, the device that makes it to come into force.
In said apparatus of the present invention, unified layout storehouse be one comprise that a plurality of layouts are described and with the database of quoting resource relation, the unified resource storehouse is a database that comprises a plurality of resource datas.
Enforcement the invention provides the switching method and apparatus of self-defined theme in a kind of Android operating system portable terminal, by adding the standard layout of self-defined theme, got around the difference of layout, quoting resource on the different mobile phones, so that after different money mobile phones use same self-defined subject document, the interface control interactive display is consistent, thereby has realized general on different mobile phones of self-defined theme.
Description of drawings
Fig. 1 illustrates the schematic flow sheet that prior art Android operating system portable terminal is realized self-defined theme;
The schematic flow sheet that the Android operating system portable terminal that provides according to the inventive method is realized self-defined theme is provided Fig. 2;
Embodiment
As shown in Figure 2, in implementing according to a kind of Android operating system portable terminal of the present invention in the changing method of self-defined theme, layout after the unified theme of a pre-defined cover switches is quoted, be ready to after these quote, be kept in the memory of portable terminal as unified layout storehouse, meanwhile, the quoting resource after the unified theme of a pre-defined cover switches is ready to be kept in the memory of portable terminal as the unified resource storehouse behind these quoting resources.Owing in memory, prepared unified layout storehouse and the resources bank of being quoted by the layout storehouse, like this, when utilizing the inventive method to use self-defined theme, can abandon the original layout of cell phone system, quoting resource rule, switch in the rule of above-mentioned unified layout and quoting resource.Owing to enter self-defined theme, in fact exactly in the layout storehouse, quote, by selected layout the unified resource storehouse is quoted again, because the layout storehouse is independent of portable terminal, and resources bank is cited also and bottom or hardware independent, by such rule, the resource in the referenced subject matter file can realize comprising the replacement of control picture, color etc.
Specifically, according to method of the present invention, mainly comprise three parts.
The one, preparation, according to the present invention, need the layout after the unified theme of a pre-defined cover switches to quote, as unified layout storehouse, be kept in the mobile terminal memory, quoting resource after the unified theme of a pre-defined cover switches as the unified resource storehouse, is kept in the mobile terminal memory.Above-mentioned unified layout storehouse and unified resource storehouse can download online and renewals.
The 2nd, the implementation procedure of self-defined theme, the realization of self-defined theme mainly comprises from unified layout storehouse determines a layout, calls the resource in the unified resource storehouse and makes it to come into force according to the layout of determining.
The 3rd, the realization of Default Subject after portable terminal dispatches from the factory or resets, enters Default Subject, and the realization of Default Subject is the default layout of calling the system of portable terminal own, calls the unified resource storehouse and activate with default layout to make it to enter Default Subject.The layout of Default Subject can belong to beyond the unified layout storehouse.The resource of Default Subject can be the same with unified layout storehouse, also can be different.
Implement method of the present invention, use self-defined theme after, automatically abandon the original layout of cell phone system, quoting resource rule, switch in self-defined theme and the implementation procedure thereof.By above-mentioned rule of the present invention, the resource in the referenced subject matter file realizes the replacement of control picture, color.The inventive method is because by adding the standard layout of self-defined theme, got around the difference of layout, quoting resource on the different mobile phones, so that after different money mobile phones used same self-defined subject document, the interface control interactive display was consistent, thereby has realized the general of theme.
In the prior art, may there be all differences in the quoting resource of theme and layout, in distinct situation, utilize the inventive method, and the realization of theme can guarantee unanimously.The present invention is by unified layout and the quoting resource rule that presets of using, and just can guarantee unified.
For example: under a self-defined theme, the A mobile phone is in note is used, what the layout of using made that its pop-up box uses is the pattern of single line text, and what ACK button was quoted is this pictures of a.png, and during the note of B mobile phone uses, what the layout of using made that its pop-up box uses is the pattern of multiline text, what ACK button was quoted is this pictures of b.png, if according to the mode of prior art theme replacement resource, after A and B use same theme, effect will be different, even may not tell on.
According to the present invention, because preset respectively cover layout and a quoting resource mode in the A/B mobile phone after, when using and during the same self-defined theme of upper example, the note unify menu of A/B mobile phone uses the pop-up box of single line text, ACK button is quoted the picture of c.png.So just can guarantee the consistent of visual effect.
Above content is the further description of the present invention being done in conjunction with concrete preferred implementation, can not assert that implementation of the present invention is confined to these explanations.For the general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.

Claims (9)

1. the changing method of a self-defined theme in Android operating system portable terminal is characterized in that, may further comprise the steps:
Pre-defined unified layout storehouse also is kept in the memory;
Pre-defined unified resource storehouse also is kept in the memory;
When switching self-defined theme, load the layout that unified layout storehouse also therefrom chooses one as self-defined theme from memory;
According to selected layout, quote corresponding resource in the described unified resource storehouse, make it to come into force.
According to claim 1 described in Android operating system portable terminal the changing method of self-defined theme, it is characterized in that, unified layout storehouse be one comprise that a plurality of layouts are described and with the database of quoting resource relation.
According to claim 1 described in Android operating system portable terminal the changing method of self-defined theme, it is characterized in that the unified resource storehouse is a database that comprises a plurality of resource datas.
According to claim 2 or 3 described in Android operating system portable terminal the changing method of self-defined theme, it is characterized in that having one to one between the resource data in each layout description object and unified resource storehouse in the unified layout storehouse or the corresponding relation of one-to-many.
According to claim 4 described in Android operating system portable terminal the changing method of self-defined theme, it is characterized in that, also comprise the step in the described unified layout of online updating storehouse.
According to claim 5 described in Android operating system portable terminal the changing method of self-defined theme, it is characterized in that, also comprise the step in the described unified resource of online updating storehouse.
According to claim 4 described in Android operating system portable terminal the changing method of self-defined theme, it is characterized in that, when using Default Subject, carry out following steps: the default layout that loads described portable terminal; Form the quoting resource table according to default layout; According to the quoting resource table, quote the system's picture resource bag in the described unified resource storehouse; Allow layout and quoting resource come into force, interface display comes into force.
8. the switching device shifter of a self-defined theme in Android operating system portable terminal is characterized in that, comprising:
Be used for pre-defined unified layout storehouse and be kept at the device of memory;
Be used for pre-defined unified resource storehouse and be kept at the device of memory;
When being used for switching self-defined theme, load the device that unified layout storehouse also therefrom chooses one as the layout of self-defined theme from memory;
Be used for according to selected layout, quote corresponding resource in the described unified resource storehouse, the device that makes it to come into force.
9. described device according to claim 8 is characterized in that, described unified layout storehouse be one comprise that a plurality of layouts are described and with the database of quoting resource relation, the unified resource storehouse is a database that comprises a plurality of resource datas.
CN2012104312728A 2012-11-01 2012-11-01 User-defined subject switchover method and device in mobile terminal of Android operating system Pending CN102984350A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012104312728A CN102984350A (en) 2012-11-01 2012-11-01 User-defined subject switchover method and device in mobile terminal of Android operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012104312728A CN102984350A (en) 2012-11-01 2012-11-01 User-defined subject switchover method and device in mobile terminal of Android operating system

Publications (1)

Publication Number Publication Date
CN102984350A true CN102984350A (en) 2013-03-20

Family

ID=47858077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012104312728A Pending CN102984350A (en) 2012-11-01 2012-11-01 User-defined subject switchover method and device in mobile terminal of Android operating system

Country Status (1)

Country Link
CN (1) CN102984350A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014173141A1 (en) * 2013-04-24 2014-10-30 Tencent Technology (Shenzhen) Company Limited Method of switching desktop subjects of mobile terminal and its switching apparatus
CN104461571A (en) * 2014-12-29 2015-03-25 乐视致新电子科技(天津)有限公司 Menu level operating method and device
CN105549993A (en) * 2015-12-09 2016-05-04 Tcl集团股份有限公司 Android system resource switching method and system
WO2017067459A1 (en) * 2015-10-22 2017-04-27 北京金山安全软件有限公司 Desktop data loading method and device
CN106802794A (en) * 2016-12-20 2017-06-06 智车优行科技(北京)有限公司 Method for switching theme, device, vehicle and system
CN108628518A (en) * 2017-07-26 2018-10-09 北京视联动力国际信息技术有限公司 A kind of Application Program Interface replacing skins method and device
CN110162374A (en) * 2019-05-28 2019-08-23 深圳前海微众银行股份有限公司 Method for switching theme, device, equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051270A (en) * 2007-05-11 2007-10-10 华为技术有限公司 Interface layout changing method and interface display controller
CN101216765A (en) * 2008-01-21 2008-07-09 中兴通讯股份有限公司 Mobile terminal topic style dynamic altering method
CN102331934A (en) * 2011-10-21 2012-01-25 广州市久邦数码科技有限公司 Method for implementing desktop component based on GO desktop system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051270A (en) * 2007-05-11 2007-10-10 华为技术有限公司 Interface layout changing method and interface display controller
CN101216765A (en) * 2008-01-21 2008-07-09 中兴通讯股份有限公司 Mobile terminal topic style dynamic altering method
CN102331934A (en) * 2011-10-21 2012-01-25 广州市久邦数码科技有限公司 Method for implementing desktop component based on GO desktop system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014173141A1 (en) * 2013-04-24 2014-10-30 Tencent Technology (Shenzhen) Company Limited Method of switching desktop subjects of mobile terminal and its switching apparatus
CN104461571A (en) * 2014-12-29 2015-03-25 乐视致新电子科技(天津)有限公司 Menu level operating method and device
WO2017067459A1 (en) * 2015-10-22 2017-04-27 北京金山安全软件有限公司 Desktop data loading method and device
CN105549993A (en) * 2015-12-09 2016-05-04 Tcl集团股份有限公司 Android system resource switching method and system
CN106802794A (en) * 2016-12-20 2017-06-06 智车优行科技(北京)有限公司 Method for switching theme, device, vehicle and system
CN108628518A (en) * 2017-07-26 2018-10-09 北京视联动力国际信息技术有限公司 A kind of Application Program Interface replacing skins method and device
CN110162374A (en) * 2019-05-28 2019-08-23 深圳前海微众银行股份有限公司 Method for switching theme, device, equipment and computer readable storage medium
CN110162374B (en) * 2019-05-28 2024-06-25 深圳前海微众银行股份有限公司 Theme switching method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN102984350A (en) User-defined subject switchover method and device in mobile terminal of Android operating system
EP3200061B1 (en) Icon management method and apparatus, and terminal
CN104679436A (en) Suspended key based on touch screen and device
EP3493042A1 (en) Method and apparatus for executing applications in a touch device
CN102707888B (en) Terminal control method and terminal
CN105677351B (en) The compatible display methods of multiwindow and device
WO2016029770A1 (en) Method for split-screen displaying, mobile terminal and storage medium
CN101770399A (en) Electronic equipment, method and device for switching operating system desktop
CN103559055A (en) Activity starting method and device applied to Android platform
CN105511728B (en) A kind of desktop icon management method and device of terminal device
CN105930467A (en) Information processing method and electronic device
CN103475778A (en) Method and device for displaying call interface of mobile terminal
CN103729107A (en) Method and device for achieving suspension target
CN103200292A (en) Menu display method and terminal
CN108984245B (en) Page switching method and system based on single-view controller
WO2010113087A1 (en) An apparatus and a method for arranging elements on a display
CN103513969A (en) Establishment method, device and terminal of application program entry
US20180046472A1 (en) Method and system for customizing desktop launcher of mobile terminal
WO2015184736A1 (en) Method and terminal for transforming background picture of touchscreen device
CN104636152B (en) A kind of application call method and apparatus based on floating layer
CN105843940A (en) Folder combination method and device
CN105653246B (en) A kind of implementation method and device of the horizontal tabulation in android system
CN102411467B (en) Electronic equipment and its contents management method
CN104461219A (en) Devices and method for processing information
CN105578111A (en) Webpage sharing method in instant video conversation and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130320