CN104572128A - Method for integrating user-defined full screen widgets on desktop - Google Patents

Method for integrating user-defined full screen widgets on desktop Download PDF

Info

Publication number
CN104572128A
CN104572128A CN201510045929.0A CN201510045929A CN104572128A CN 104572128 A CN104572128 A CN 104572128A CN 201510045929 A CN201510045929 A CN 201510045929A CN 104572128 A CN104572128 A CN 104572128A
Authority
CN
China
Prior art keywords
widget
mobile phone
desktop
screen
full screen
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
CN201510045929.0A
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.)
Ying Weinuo Science And Technology Ltd Of Shenzhen
Original Assignee
Ying Weinuo Science And Technology Ltd Of Shenzhen
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 Ying Weinuo Science And Technology Ltd Of Shenzhen filed Critical Ying Weinuo Science And Technology Ltd Of Shenzhen
Priority to CN201510045929.0A priority Critical patent/CN104572128A/en
Publication of CN104572128A publication Critical patent/CN104572128A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a method for integrating user-defined full screen widgets on a desktop and solves the problem that existing Android widgets cannot be displayed. The method includes: building and naming a view layout file which needs to be displayed on the mobile phone desktop, manually dragging the full screen widgets to one optional screen of the desktop, acquiring a view which needs full screen integration, loading to a window carrier, removing gaps at four edges and the resident application bar at the bottom of the mobile phone desktop, and setting window attributes to not allow widgets adding of other third-party apps.

Description

A kind of technical method at the integrated self-defined full screen window widget of desktop
Technical field
The present invention relates to the technical method that self-defined full screen window widget Widget is integrated into the mobile phone desktop of android system, particularly all mobile app widgets are integrated into mobile phone desktop or other technical method based on third party's mobile phone desktop of android system desktop amendment of android system.
Background technology
Along with the universal of smart mobile phone and development, continuing to bring out of the application software of all kinds, function, the mobile phone desktop of user also becomes more personalized and diversified.
Wherein the raw mobile phone desktop in android system source provides widget function, and this widget is the carrier that shows at mobile phone desktop of all application software in the market.But widget function merely provides several pattern, do not support self-defined, more single, and display effect is bad not as people's will, Consumer's Experience, there is great limitation.
The widget that android system carries only provides basic control support, and can not be satisfied with UI visual hierarchy complicated, effect dazzles beautiful app.And the invention of self-defined full screen window widget Widget, just in time solve the limitation of above problem, make simultaneously application software the mobile phone desktop space of a whole page display more various, emphasis is more outstanding, promote Consumer's Experience, method for designing belongs to original creation.
Self-defined full screen window widget Widget has all general-purpose attributes of android system widget, as the operation such as carried out adding according to user's gesture, delete, move, can be considered that widget uses on an equal basis.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of widget solution in the full screen display of mobile phone desktop single screen, to solve the bandwagon effect cannot accomplished in existing Android widget control.
Following technical scheme is the invention provides for solving the problem:
1, in the original development needing integrated application software, set up and name a view layout's file needing to show at mobile phone desktop.
2, by user manually drag full screen window widget to mobile phone desktop any one screen time, by the condition of necessity, reflection obtain need integrated full frame view, be loaded into window carrier.
3, through above step, the view presented not is full frame state, the resident applications hurdle also needing gap, removal four limit and remove bottom mobile phone desktop.
4, arrange the current window attribute that there is full screen window widget, the widget making it no longer allow other third party app adds.
Embodiment:
One, file and registration is set up
Set up topology file
1. in the structure category of Android application item exploitation, deposit the file layout of the file relevant to project layout, set up at this file and need the layout xml file being integrated into mobile phone desktop, this file internal control part supports all Android system controls or self-defined control.
Set up widget file
2. in the structure category of Android application item exploitation, deposit the file res of resource, new folder xml under this file also newly-builtly full framely wears young parts xml file, this file set up and android set up widget widget step and are as good as, and only need revise the topology file that interior layout quotes above-mentioned 1 step.
Log-in window widget
3. develop in catalogue at android, there is the xml file of AndroidManifest by name.Must newly-built receive window widget newly-built, delete, the broadcast type file of the operation such as mobile, and to register in AndroidManifest file for it.Two, launcher amendment
1, user operation triggers and adds widget.
Select in interface at android system widget, by select full screen window widget and drag be added into any screen of mobile phone desktop time, trigger launcher code completeAddAppWidget function, judge whether this is that full screen window widget adds in mobile phone desktop, and code is as follows by bag name:
if (appWidgetInfo.provider.getPackageName().endsWith(
" application bag name "))
Contextc=getContext () .createPackageContext (" application bag name ", Context.CONTEXT_INCLUDE_CODE|Context.CONTEXT_IGNORE_SECU RITY);
Int id=c.getResources () .getIdentifier (" view layout's filename ", " layout ", " application bag name ");
View view= LayoutInflater.from(c).inflate(id, null);
launcherInfo.hostView.addView(view)}
2, remove four gaps, limit and hide resident hurdle, bottom
By above-mentioned steps, full screen window widget is added to mobile phone desktop, but there is four gaps, limit and bottom resides hurdle existence.
In PagedView class in 2.1 system desktop source codes, in its onMeasure method, find the window carrier cellLayout of corresponding loading application view view, be revised as the wide height of mobile phone screen to the wide height of its measure.As shown in following source code:
cellLayout.measure(MeasureSpec. makeMeasureSpec(
MeasureSpec. getSize(widthMeasureSpec), childWidthMode), MeasureSpec. makeMeasureSpec(
MeasureSpec. getSize(heightMeasureSpec), childHeightMode));
2.2 in the onLayout method of PagedView class, finds the window carrier cellLayout of corresponding loading application view view, to its layout layout.As shown in following source code:
cellLayout.layout(childLeft,offsetY,childLeft+child.getMeasuredWidth(), offsetY+ getViewportHeight()+stateBarHeight);
2.3 in Workspace class, obtains the resident hurdle Hotseat in bottom, change its state according to the slip of mobile phone desktop by mLauncher, and hide when sliding into this full screen view page, other states all show.
3, current screen attribute is set
The interpolation of full screen window widget, is all full of single screen desktop, so must pass through code revision, arranges other third party's widget or app icon can not be added in this screen.

Claims (5)

1. add a technical method of full screen window widget widget at mobile phone desktop, solving Android system provides the control of widget to limit to, and be applied to the bandwagon effect of internet works software at mobile phone desktop, it is characterized in that, described method comprises:
By the application and development of routine, set up necessary full screen window widget topology file, registration android widget function, add full screen window widget according to user's manual operation to trigger, be added to any screen mobile phone desktop and the display specifications parameter arranging this screen container is full frame, namely wide is that mobile phone screen is wide, and height is that mobile phone screen is high, the state of the resident hurdle Hotseat in bottom is followed mobile phone screen and is switched and change, and arranges the container attribute of current loading full screen window widget.
2. method according to claim 1, is characterized in that, also comprises:
Utilize android api, the bag name applied by necessity and the reflection of layout view filename obtain view control.
3. method according to claim 1, is characterized in that, also comprises:
When user adds widget according to a conventional method at launcher desktop, select and drag full screen window widget to mobile phone desktop any one screen time, now need to obtain this screen widget container and the view control that reflection obtains showing is added, simultaneously when this container initialization, to it, the wide height that wide high size is screen is set, when it carries out location layout, give its corresponding display location according to the container size that correspondence is arranged.
4. method according to claim 1, is characterized in that, also comprises:
When mobile phone desktop slides into full frame displaying page, the resident hurdle Hotseat in bottom need be hidden, when sliding into other pages, the resident hurdle Hotseat in display bottom.
5. method according to claim 1, is characterized in that, also comprises:
The current interpolation attribute that there is full screen window widget is set, makes it no longer allow other third-party application widget or application icon to add.
CN201510045929.0A 2015-01-29 2015-01-29 Method for integrating user-defined full screen widgets on desktop Pending CN104572128A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510045929.0A CN104572128A (en) 2015-01-29 2015-01-29 Method for integrating user-defined full screen widgets on desktop

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510045929.0A CN104572128A (en) 2015-01-29 2015-01-29 Method for integrating user-defined full screen widgets on desktop

Publications (1)

Publication Number Publication Date
CN104572128A true CN104572128A (en) 2015-04-29

Family

ID=53088294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510045929.0A Pending CN104572128A (en) 2015-01-29 2015-01-29 Method for integrating user-defined full screen widgets on desktop

Country Status (1)

Country Link
CN (1) CN104572128A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224337A (en) * 2015-10-21 2016-01-06 广州橙行智动汽车科技有限公司 A kind of desktop starter dynamically adds floating window method
CN106569823A (en) * 2016-10-28 2017-04-19 广州新博庭网络信息科技股份有限公司 Business data loading method and apparatus
CN109614191A (en) * 2018-12-07 2019-04-12 上海商米科技有限公司 The processing method and processing device of application
CN110389693A (en) * 2018-04-20 2019-10-29 比亚迪股份有限公司 Control the method and device thereof of widget sliding on car-mounted terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080040426A1 (en) * 2006-08-11 2008-02-14 Don Synstelien System and Method for Placing a Widget onto a Desktop
CN102214101A (en) * 2011-06-30 2011-10-12 中兴通讯股份有限公司 Method and device for displaying Widget window in zooming way
CN104317598A (en) * 2014-10-31 2015-01-28 深圳市英威诺科技有限公司 Method for integrating applications on desktop of intelligent equipment system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080040426A1 (en) * 2006-08-11 2008-02-14 Don Synstelien System and Method for Placing a Widget onto a Desktop
CN102214101A (en) * 2011-06-30 2011-10-12 中兴通讯股份有限公司 Method and device for displaying Widget window in zooming way
CN104317598A (en) * 2014-10-31 2015-01-28 深圳市英威诺科技有限公司 Method for integrating applications on desktop of intelligent equipment system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224337A (en) * 2015-10-21 2016-01-06 广州橙行智动汽车科技有限公司 A kind of desktop starter dynamically adds floating window method
CN105224337B (en) * 2015-10-21 2018-11-02 广州小鹏汽车科技有限公司 A kind of desktop starter dynamic addition floating window method
CN106569823A (en) * 2016-10-28 2017-04-19 广州新博庭网络信息科技股份有限公司 Business data loading method and apparatus
CN110389693A (en) * 2018-04-20 2019-10-29 比亚迪股份有限公司 Control the method and device thereof of widget sliding on car-mounted terminal
CN109614191A (en) * 2018-12-07 2019-04-12 上海商米科技有限公司 The processing method and processing device of application

Similar Documents

Publication Publication Date Title
US20100185954A1 (en) Collaborative Environment Project Extensibility with Composition Containers
CN103543993A (en) Application program building method and system
US9465529B1 (en) Platform-independent environments for customizing user interfaces of native applications for portable electronic devices
CN104572128A (en) Method for integrating user-defined full screen widgets on desktop
US20140143763A1 (en) Method and System to develop operating system agnostic software applications for mobile devices using a virtual machine
WO2015184736A1 (en) Method and terminal for transforming background picture of touchscreen device
CN103412748A (en) Display control method, device and system for user interface of embedded platform
CN105787034A (en) Data presentation method and device
US20200142953A1 (en) Enterprise Form Dependency Visualization and Management
CN104850428A (en) Method and device for updating user interface of mobile client
CN106406938A (en) Application download method and terminal
AU2017216247A1 (en) Systems and methods for using entity/relationship model data to enhance user interface engine
CN103150198A (en) Display method of configuration software
CN104793844B (en) Plug-in achieving method and device based on host program on mobile terminal
CN109086342B (en) Method, medium and terminal for mass production and operation and maintenance of website templates
CN105511737A (en) Method for managing menu options on web page and electronic device
CN105630304A (en) Browser operation method and electronic equipment
CN103218425A (en) Method and device for processing browser extension items
CN117055766A (en) Tree data processing method and device based on Ant Design, medium and electronic equipment
CN105630891A (en) Menu option display method and electronic equipment
CN104317598A (en) Method for integrating applications on desktop of intelligent equipment system
US20140115503A1 (en) User interface element-based development
TW201606547A (en) Subscriber defined dynamic eventing
CN112612757A (en) Application display method, device, equipment, storage medium and program product
CN102955648B (en) Terminal equipment, content merging method and display method

Legal Events

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

Application publication date: 20150429