CN105786327A - Method for rapidly developing APP (application) disc menu of mobile phone - Google Patents

Method for rapidly developing APP (application) disc menu of mobile phone Download PDF

Info

Publication number
CN105786327A
CN105786327A CN201610098288.XA CN201610098288A CN105786327A CN 105786327 A CN105786327 A CN 105786327A CN 201610098288 A CN201610098288 A CN 201610098288A CN 105786327 A CN105786327 A CN 105786327A
Authority
CN
China
Prior art keywords
menu
disk
mobile phone
picture
yuanpan
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
CN201610098288.XA
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.)
Inspur Software Group Co Ltd
Original Assignee
Inspur Software Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Software Group Co Ltd filed Critical Inspur Software Group Co Ltd
Priority to CN201610098288.XA priority Critical patent/CN105786327A/en
Publication of CN105786327A publication Critical patent/CN105786327A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method for rapidly developing a disc menu of a mobile phone APP, which comprises the steps of manufacturing a disc picture by introducing yuanpan. The method solves the problem of long development time caused by the problems of complex logic, difficult development and the like when a novice mobile phone APP developer develops the disc menu; the development time is saved, so that the development cost of the project is saved; the developer can realize the function only by making the picture without setting the style, thereby greatly reducing the requirements on developers; the problem that people with low pattern familiarity develop a disc menu and are not attractive is solved.

Description

A kind of method of quick exploitation mobile phone A PP disk menu
Technical field
The present invention relates to technical field of software development, a kind of method being specifically related to quick exploitation mobile phone A PP disk menu.
Background technology
The Internet has had been introduced in the epoch of maturation, the most increasingly paying attention to and exchanging between user, and this needs communication tool with regard to essential, and therefore, smart mobile phone is increasingly becoming the necessary article of overwhelming majority people.And for a user, the aesthetic property of cell phone software and practicality become the important evaluation criterion of a mobile phone A PP software success or not, and disk menu is exactly a menu with aesthetic property and practicality.
Summary of the invention
The technical problem to be solved in the present invention is: the present invention provides a kind of method of quick exploitation mobile phone A PP disk menu.
The technical solution adopted in the present invention is:
A kind of method of quick exploitation mobile phone A PP disk menu, described method is by introducing yuanpan.js, make disk picture, then initialization function init (sum) is called, wherein sum represents the number of menu, picture is put into corresponding region, writes call back function openfunc, complete exploitation.
This method quickly and easily can develop both artistic and practical disk menu, is a kind of extraordinary method.
It is as follows that described method realizes step:
The first step: introduce yuanpan.js in respective page;
Second step: the disk picture made and background picture are put into corresponding position;
3rd step: call function init (sum) and menu number menuSum is set;
4th step: write call back function openfunc(i), wherein parameter i is the sequence number of clicked on menu, completes page development;
5th step: click on disc centre position, can trigger call back function, parameter i received is the sequence number of surface menu;Clicking on other positions on disk, trigger call back function, parameter i received is the sequence number of current location menu.
Described yuanpan.js is to realize the correlation technique that the operation such as rotation and click of disk processes.
The invention have the benefit that
1) when of solving mobile phone A PP novice developers exploitation disk menu, owing to logic is complicated, the problem that the problems such as exploitation is difficult cause development time length;
2) save the development time, thus save the development cost problem of project;
3) developer need not arrange pattern, it is only necessary to produces picture and just can realize function, largely reduces the requirement to developer;
4) the inaesthetic problem of disk menu that the people that pattern familiarity is the highest is developed is solved.
Detailed description of the invention
Below by detailed description of the invention, the present invention is further described:
Embodiment 1:
A kind of method of quick exploitation mobile phone A PP disk menu, described method is by introducing yuanpan.js, make disk picture, then initialization function init (sum) is called, wherein sum represents the number of menu, picture is put into corresponding region, writes call back function openfunc, complete exploitation.
The method quickly and easily can develop both artistic and practical disk menu.
Embodiment 2:
On the basis of embodiment 1, it is as follows that method described in the present embodiment realizes step:
The first step: introduce yuanpan.js in respective page;
Second step: the disk picture made and background picture are put into corresponding position;
3rd step: call function init (sum) and menu number menuSum is set;
4th step: write call back function openfunc(i), wherein parameter i is the sequence number of clicked on menu, completes page development;
5th step: click on disc centre position, can trigger call back function, parameter i received is the sequence number of surface menu;Clicking on other positions on disk, trigger call back function, parameter i received is the sequence number of current location menu.
The example that call be presented herein below:
init(6);
function openfunc(i){
switch (i) {
case 0:
break;
case 1:
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
default:
break;
}
}
Embodiment 3:
On the basis of embodiment 2, yuanpan.js described in the present embodiment is to realize the correlation technique that the operation such as rotation and click of disk processes.
Yuanpan.js program code is as follows:
var flag = false, startX = 0, startY = 0, parentObj = $('#yuanpan'),parentObjz = $('#yuanpanz'),parentObjs = $('#yuanpans'),
angle = 0, startMoveX = 0, startMoveY = 0,iszd = false,isfirstzd = true,
xAxis = 0, yAxis = 0, lastAngle = 0, curId = 1,zdId=0; menuSum = 6;
function init(sum){
document.getElementById("header").style.height=localStorage.pmh/9+"px";
document.getElementById("content").style.height=localStorage.framezjyH+"px";
document.getElementById("yuanpan").style.width=localStorage.pmw+"px";
document.getElementById("yuanpan").style.height=localStorage.pmw+"px";
menuSum = sum;
}
var forbiddenEvent = function(e){
var tagName = e.target.tagName;
if(tagName === 'INPUT' ||tagName === 'TEXTAREA'){ return true;}
e.preventDefault();
if(this.isTouch){ e.stopPropagation();e.cancelabel = false;return false;
}else{e.returnValue = false;}
};
var getAngle = function(x1, y1, x2, y2) {
var x = Math.abs(x1 - x2); var y = Math.abs(y1 - y2);
var z = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)); var cos = y / z;
var radina = Math.acos(cos); var angle = radina*114.59156; return angle;
}
parentObj.bind('touchstart',function(e){
var touch = e.originalEvent ? e.originalEvent.touches[0] : e; flag = true;
isfirstzd = true; startX = touch.pageX; startY = touch.pageY;
startMoveX = startX; startMoveY = startY;
$(window).bind('DOMMouseScroll',forbiddenEvent)
.bind('mousewheel',forbiddenEvent).bind('touchmove',forbiddenEvent);
}).bind('touchmove',function(e){
var touch = e.originalEvent ? e.originalEvent.touches[0] : e;
moveX = touch.pageX; moveY = touch.pageY;
if ( (0 != startMoveX || 0 != startMoveY) && yAxis <= moveY ) {
if(isfirstzd == true){ isfirstzd = false;
document.getElementById("yuanpans").style.backgroundImage='url("image/image_zz.png")';
document.getElementById("yuanpan").style.backgroundImage='url("image/image_t'+curId+'.png")';}
var before = getAngle(xAxis, yAxis, startMoveX, startMoveY);
var after = getAngle(xAxis, yAxis, moveX, moveY); var addAngle = 0;
if ( startMoveX <= xAxis && moveX <= xAxis ) {addAngle = before - after;
} else if ( startMoveX > xAxis && moveX > xAxis ) {addAngle = after - before;
}lastAngle = lastAngle + addAngle;
if(!flag){return false; }
uexAudio.play(0);
parentObjz.css({'-webkit-transform':'rotate('+(-lastAngle)+'deg)'});
parentObjs.css({'-webkit-transform':'rotate('+lastAngle+'deg)'});
} else if ( (0 != startMove || 0 != startMoveY) && yAxis > moveY ) {
if(isfirstzd == true){ isfirstzd = false;
document.getElementById("yuanpans").style.backgroundImage='url("image/image_zz.png")';
document.getElementById("yuanpan").style.backgroundImage='url("image/image_t'+curId+'.png")'; }
var before = getAngle(xxis, yAxis, startMoveX, startMoveY);
var after = getAngle(xAxis, yAxis, moveX, moveY); var addAngle = 0;
if ( startMoveX <= xAxis && moveX <= xAxis ) {addAngle = after - before;
} else if ( startMoveX > xAxis && moveX > xAxis ) {addAngle = before - after;
}lastAngle = lastAngle + addAngle;
if(!flag){ return false;}
uexAudio.play(0);
parentObjz.css({'-webkit-transform':'rotate('+(-lastAngle)+'deg)'});
parentObjs.css({'-webkit-transform':'rotate('+lastAngle+'deg)'});
}var xzjd = lastAngle%60;
if(xzjd<30){xzjd = -xzjd;
}else{xzjd = 60 - xzjd; }
var zAngle = (lastAngle + xzjd)%360;
var wz = parseInt(zAngle/60)%6;
if(wz<0){ wz = 6+wz; }zdId = 1 + wz;
document.getElementById("yuanpan").style.backgroundImage='url("image/image_t'+zdId+'.png")';
startMoveX = moveX; startMoveY = moveY;
}).bind('touchend',function(e){flag = false;if(isfirstzd == true){
isfirstzd = false;gofunc();
}else{
var xzjd = lastAngle%60;
if(xzjd<30){ xzjd = -xzjd;
}else{xzjd = 60 - xzjd;}
lastAngle = lastAngle + xzjd;
parentObjz.css({'-webkit-transform':'rotate('+(-lastAngle)+'deg)'});
parentObjs.css({'-webkit-transform':'rotate('+lastAngle+'deg)'});
lastAngle = lastAngle%360;var wz = parseInt(lastAngle/60)%6;
if(wz<0){ wz = 6+wz; }curId = 1 + wz;
document.getElementById("yuanpan").style.backgroundImage='url("image/image_zz.png")';
document.getElementById("yuanpans").style.backgroundImage='url("image/image_t'+curId+'.png")'; }
$(window).unbind('DOMMouseScroll',forbiddenEvent)
.unbind('mousewheel',forbiddenEvent).unbind('touchmove',forbiddenEvent);
});
function gofunc(){
var x = Math.abs(startX - xAxis); var y = Math.abs(startY - yAxis);
var r = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
if(r<(xAxis/2)){ openfunc(curId%6);
}else if(r < xAxis){
var cos = (startX - xAxis) / r;var radina = Math.acos(cos);
var angle = radina*114.59156;
if(startY < yAxis){
if(angle<120){
openZhfw((curId+1)%6);
}else if(angle<240){
openfunc(curId);
}else{
openfunc((curId+5)%6);
}
}else{
if(angle<120){openfunc((curId+2)%6);
}else if(angle<240){openfunc((curId+3)%6);
}else{openfunc((curId+4)%6); }
}
}
}
Wherein:
Gofunc () is to judge that click on is the function of which menu;
GetAngle (x1, y1, x2, y2) is the function of the angle asking rotation according to two point coordinates and centre coordinate thereof;
The relevant treatment function the most also click on screen, sliding and frameing out.
Embodiment of above is merely to illustrate the present invention; and not limitation of the present invention; those of ordinary skill about technical field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; the technical scheme of the most all equivalents falls within scope of the invention, and the scope of patent protection of the present invention should be defined by the claims.

Claims (3)

1. the method for a quick exploitation mobile phone A PP disk menu, it is characterised in that: described method, by introducing yuanpan.js, makes disk picture, then initialization function init (sum) is called, picture is put into corresponding region, writes call back function openfunc, complete exploitation.
The method of a kind of quick exploitation mobile phone A PP disk menu the most according to claim 1, it is characterised in that it is as follows that described method realizes step:
The first step: introduce yuanpan.js in respective page;
Second step: the disk picture made and background picture are put into corresponding position;
3rd step: call function init (sum) and menu number menuSum is set;
4th step: write call back function openfunc(i), wherein parameter i is the sequence number of clicked on menu, completes page development;
5th step: click on disc centre position, triggers call back function, and parameter i received is the sequence number of surface menu;Clicking on other positions on disk, trigger call back function, parameter i received is the sequence number of current location menu.
The method of a kind of quick exploitation mobile phone A PP disk menu the most according to claim 2, it is characterised in that: described yuanpan.js is rotation and the correlation technique of clicking operation process realizing disk.
CN201610098288.XA 2016-02-23 2016-02-23 Method for rapidly developing APP (application) disc menu of mobile phone Pending CN105786327A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610098288.XA CN105786327A (en) 2016-02-23 2016-02-23 Method for rapidly developing APP (application) disc menu of mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610098288.XA CN105786327A (en) 2016-02-23 2016-02-23 Method for rapidly developing APP (application) disc menu of mobile phone

Publications (1)

Publication Number Publication Date
CN105786327A true CN105786327A (en) 2016-07-20

Family

ID=56402742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610098288.XA Pending CN105786327A (en) 2016-02-23 2016-02-23 Method for rapidly developing APP (application) disc menu of mobile phone

Country Status (1)

Country Link
CN (1) CN105786327A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558202A (en) * 2018-12-14 2019-04-02 平安城市建设科技(深圳)有限公司 Original list development approach, device, equipment and storage medium based on small routine

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101166325A (en) * 2006-10-19 2008-04-23 乐金电子(中国)研究开发中心有限公司 Method for setting any image as mobile phone menu background
CN102043626A (en) * 2010-12-23 2011-05-04 中国农业银行股份有限公司 Method and device for encapsulating extjs component, and method and system for generating user interface
CN102073452A (en) * 2010-12-29 2011-05-25 北京锐安科技有限公司 Method for customizing flex right-click menu
CN104536757A (en) * 2014-12-26 2015-04-22 上海斐讯数据通信技术有限公司 Multilevel menu implementation method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101166325A (en) * 2006-10-19 2008-04-23 乐金电子(中国)研究开发中心有限公司 Method for setting any image as mobile phone menu background
CN102043626A (en) * 2010-12-23 2011-05-04 中国农业银行股份有限公司 Method and device for encapsulating extjs component, and method and system for generating user interface
CN102073452A (en) * 2010-12-29 2011-05-25 北京锐安科技有限公司 Method for customizing flex right-click menu
CN104536757A (en) * 2014-12-26 2015-04-22 上海斐讯数据通信技术有限公司 Multilevel menu implementation method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CSS SCRIPT: "Path-style Animated Radial Menu-BloomingMenu.js", 《URL:HTTPS://WWW. CSSSCRIPT. COM/PATH-STYLE-ANIMATED-RADIAL-MENU-BLOOMINGMENU-JS/》 *
JQUERY之家: "适合移动手机使用的js环形菜单特效插件", 《URL:HTTPS://WWW.HTMLEAF.COM/JQUERY/MENU-NAVIGATION/201506081991.HTML》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558202A (en) * 2018-12-14 2019-04-02 平安城市建设科技(深圳)有限公司 Original list development approach, device, equipment and storage medium based on small routine

Similar Documents

Publication Publication Date Title
Chi et al. Research trends and opportunities of augmented reality applications in architecture, engineering, and construction
US5867175A (en) Method and apparatus for scriping animation
US20140089824A1 (en) Systems And Methods For Dynamically Altering A User Interface Based On User Interface Actions
Turbak et al. Events-first programming in APP inventor
Behr et al. Dynamic and interactive aspects of X3DOM
CN109828811B (en) Card object display method and device
TW201001272A (en) Rendering teaching animations on a user-interface display
CN104024983B (en) Interaction models for indirect interaction equipment
US20130063446A1 (en) Scenario Based Animation Library
CN102054217A (en) Entity morphing in metamodel-based tools
CN103259911A (en) Electronic equipment relating method, electronic equipment and multiple-equipment synergy electronic system
CN105630366A (en) Method and apparatus for displaying object information in screen display device
Lee et al. A-mash: providing single-app illusion for multi-app use through user-centric UI mashup
CN105786327A (en) Method for rapidly developing APP (application) disc menu of mobile phone
Holmquist Bits Are Cheap, Atoms Are Expensive: Critiquing the Turn Towards Tangibility in HCI
CN105893023A (en) Data interaction method, data interaction device and intelligent terminal
CN111951405A (en) Method, system and equipment for quickly generating VR teaching resources
CN111626021A (en) Presentation generation method and device
Rumiński et al. Dynamic composition of interactive AR scenes with the CARL language
Kentaro et al. Browser-Based manipulation of virtual objects through MVVM architecture with data binding
CN115129224A (en) Movement control method and device, storage medium and electronic equipment
CN104536678A (en) Display effect regulating method and electronic device
CN102999272A (en) Realization method, realization system and manufacturing method for electronic area sand table
CN102999273A (en) Realization method, realization system and manufacturing method for exhibition of electronic landscape sand table
CN107728841B (en) Multi-point touch method and system based on bid-winning kylin operating system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20160720