CN106445554A - Handheld terminal navigation bar redrawing method and device - Google Patents

Handheld terminal navigation bar redrawing method and device Download PDF

Info

Publication number
CN106445554A
CN106445554A CN201610894101.7A CN201610894101A CN106445554A CN 106445554 A CN106445554 A CN 106445554A CN 201610894101 A CN201610894101 A CN 201610894101A CN 106445554 A CN106445554 A CN 106445554A
Authority
CN
China
Prior art keywords
navigation bar
screen
handheld terminal
redraw
redraws
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
CN201610894101.7A
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.)
CHENGDU THUNDERSOFT SOFTWARE TECHNOLOGY Co Ltd
Original Assignee
CHENGDU THUNDERSOFT SOFTWARE TECHNOLOGY 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 CHENGDU THUNDERSOFT SOFTWARE TECHNOLOGY Co Ltd filed Critical CHENGDU THUNDERSOFT SOFTWARE TECHNOLOGY Co Ltd
Priority to CN201610894101.7A priority Critical patent/CN106445554A/en
Publication of CN106445554A publication Critical patent/CN106445554A/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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • 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 handheld terminal navigation bar redrawing method. A handheld terminal is provided with a physical keyboard and comprises the following steps that the current rotating direction of a screen of the handheld terminal is detected; navigation bar redrawing parameters are calculated according to the rotating direction of the screen of the handheld terminal; navigation bar redrawing is carried out through the redrawing parameters. According to the handheld terminal navigation bar redrawing method, the navigation bar of a FeaturePhone carrying an Android operating system is redrawn, the FeaturePhone can support a transverse screen scheme, and the flexible and convenient mobile navigation bar is provided.

Description

A kind of handheld terminal navigation bar redraws method and device
Technical field
The present invention relates to terminal display field, redraw method and device particularly to a kind of handheld terminal navigation bar.
Background technology
Android's is open due to it, obtains the favor of a large amount of developers, in recent years, feature phone(Work( Can mobile phone)Carry the sight line that Android operation system progresses into people again.The navigation bar of traditional Andorid mobile phone is permissible Arbitrarily rotate, mobile phone either Rotate Left, or Rotate Right, the navigation bar of mobile phone is all located at the right side of screen, convenient use Family is operated, and flexibility is good.
But, the FeaturePhone of carrying Android operation system is due to its particularity it is impossible to support the spirit of navigation bar Live and move, be still the rule following function machine, so transverse screen scheme do not supported by Android FeaturePhone mobile phone, only prop up Hold portrait layout.
Content of the invention
The invention reside in overcome the above-mentioned deficiency of prior art, provide a kind of can flexibly, easily mobile navigation hurdle Method and device is redrawn based on the handheld terminal navigation bar on defect ground.
In order to realize foregoing invention purpose, the technical solution used in the present invention is:
A kind of handheld terminal navigation bar redraws method, and described handheld terminal has physical keyboard, comprises the following steps:
Detect presently described screen of handheld terminal direction of rotation;
Navigation bar is calculated according to described screen of handheld terminal direction of rotation and redraws parameter;
Using described redraw parameter and carry out navigation bar redraw.
When further, on the left of described physical keyboard rotates to screen, redraw navigation bar on the left of screen.
When further, on the right side of described physical keyboard rotates to screen, redraw navigation bar on the right side of screen.
When further, above described physical keyboard rotates to screen, redraw navigation bar above screen.
When further, below described physical keyboard rotates to screen, redraw navigation bar below screen.
Present invention simultaneously provides a kind of handheld terminal navigation bar redraws device, including detector unit, for detecting current institute State screen of handheld terminal direction of rotation;
Computing unit, connects described detector unit, redraws for calculating navigation bar according to described screen of handheld terminal direction of rotation Parameter;
Redraw unit, connect described computing unit, for using described redraw parameter and carry out navigation bar redraw.
When further, on the left of described physical keyboard rotates to screen, redraw navigation bar on the left of screen.
When further, on the right side of described physical keyboard rotates to screen, redraw navigation bar on the right side of screen.
When further, above described physical keyboard rotates to screen, redraw navigation bar above screen.
When further, below described physical keyboard rotates to screen, redraw navigation bar below screen.
Compared with prior art, beneficial effects of the present invention
The handheld terminal navigation bar of the present invention redraws method and passes through leading to the FeaturePhone carrying Android operation system Boat hurdle is redrawn so as to transverse screen scheme can be supported, provide flexibly, easily mobile navigation hurdle.
Brief description
The handheld terminal navigation bar that Fig. 1 show the present invention redraws method flow diagram.
The handheld terminal navigation bar that Fig. 2 show the present invention redraws schematic diagram.
The handheld terminal navigation bar that Fig. 3 show the present invention redraws apparatus module block diagram.
Specific embodiment
With reference to specific embodiment, the present invention is described in further detail.But this should not be interpreted as the present invention The scope of above-mentioned theme is only limitted to below example, all models belonging to the present invention based on the technology that present invention is realized Enclose.
Embodiment 1:
The handheld terminal navigation bar that Fig. 1 show the present invention redraws method flow diagram, and described handheld terminal has physical keyboard, bag Include following steps:
Detect presently described screen of handheld terminal direction of rotation;
Navigation bar is calculated according to described screen of handheld terminal direction of rotation and redraws parameter;
Using described redraw parameter and carry out navigation bar redraw.
The handheld terminal navigation bar of the present invention redraws method to be passed through to the FeaturePhone carrying Android operation system Navigation bar redrawn so as to transverse screen scheme can be supported, provide flexibly, easily mobile navigation hurdle.
When in a detailed embodiment, on the left of described physical keyboard rotates to screen, redraw on the left of screen and lead Boat hurdle.
When in a detailed embodiment, on the right side of described physical keyboard rotates to screen, redraw on the right side of screen and lead Boat hurdle.
When in a detailed embodiment, above described physical keyboard rotates to screen, redraw above screen and lead Boat hurdle.
When in a detailed embodiment, below described physical keyboard rotates to screen, redraw below screen and lead Boat hurdle.
Specifically, the gravity sensing sensor in mobile phone can judge to shield according to the direction of the rotation of screen and the anglec of rotation Curtain the need of horizontal/vertical screen switching, when need drawn when, the position of corresponding calculating navigation bar, highly, width, will be up-to-date Layout is plotted on screen, obtains schematic diagram as shown in Figure 2.
In actual applications, comprise the steps:
1. the preparatory stage:Horizontal/vertical screen switches, and layout changes, and system can call the function of WindowManagerService PerformLayoutAndPlaceSurfacesLocked refreshes screen, proceeds by drafting.
2. calculation stages:The member function beginLayoutLw of PhoneWindowManager class is called to calculate each The size of window, content area serve as a contrast size when serving as a contrast size and visibility region.In function beginLayoutLw method according to rotation The angle turning goes to calculate the position of navigation bar.In this approach, increased the strategy that the right side turn 90 degrees, turn 90 degrees on the screen right side When, the position of navigation bar is put into the screen leftmost side.
3. ending phase:When the size, content area side lining size and the visibility region that complete position calculation and window After side lining size calculates, update layout, continuing executing with performLayoutAndPlaceSurfacesLocked method will be up-to-date State be plotted on screen.
Present invention simultaneously provides a kind of handheld terminal navigation bar redraws device, as shown in figure 3, including detector unit 1, it is used for Detect presently described screen of handheld terminal direction of rotation;
Computing unit 2, connects described detector unit 1, for calculating navigation bar weight according to described screen of handheld terminal direction of rotation Paint parameter;
Redraw unit 3, connect described calculate single, 2, for using described redraw parameter and carry out navigation bar redraw.
When in a detailed embodiment, on the left of described physical keyboard rotates to screen, redraw on the left of screen and lead Boat hurdle.
When in a detailed embodiment, on the right side of described physical keyboard rotates to screen, redraw on the right side of screen and lead Boat hurdle.
When in a detailed embodiment, above described physical keyboard rotates to screen, redraw above screen and lead Boat hurdle.
When in a detailed embodiment, below described physical keyboard rotates to screen, redraw below screen and lead Boat hurdle.
If the function described in the present embodiment method is realized and as independent product pin using in the form of SFU software functional unit When selling or using, can be stored in a computing device read/write memory medium.Based on such understanding, the embodiment of the present invention Partly being embodied in the form of software product of part that prior art is contributed or this technical scheme, this is soft Part product is stored in a storage medium, including some instructions with so that a computing device(Can be personal computer, Server, mobile computing device or network equipment etc.)The all or part step of execution each embodiment methods described of the present invention Suddenly.And aforesaid storage medium includes:USB flash disk, portable hard drive, read-only storage(ROM, Read-Only Memory), deposit at random Access to memory(RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
Above in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail, but the present invention has been not restricted to State embodiment, in the case of the spirit and scope without departing from claims hereof, those skilled in the art can make Go out various modifications or retrofit.

Claims (10)

1. a kind of handheld terminal navigation bar redraws method, and described handheld terminal has physical keyboard it is characterised in that including following Step:
Detect presently described screen of handheld terminal direction of rotation;
Navigation bar is calculated according to described screen of handheld terminal direction of rotation and redraws parameter;
Using described redraw parameter and carry out navigation bar redraw.
2. handheld terminal navigation bar according to claim 1 redraws method it is characterised in that working as described physical keyboard rotation During on the left of screen, redraw navigation bar on the right side of screen.
3. handheld terminal navigation bar according to claim 1 redraws method it is characterised in that working as described physical keyboard rotation During on the right side of screen, redraw navigation bar on the left of screen.
4. handheld terminal navigation bar according to claim 1 redraws method it is characterised in that working as described physical keyboard rotation During to above screen, redraw navigation bar below screen.
5. handheld terminal navigation bar according to claim 1 redraws method it is characterised in that working as described physical keyboard rotation During to screen, redraw navigation bar above screen.
6. a kind of handheld terminal navigation bar redraws device it is characterised in that including detector unit, presently described hand-held for detecting Terminal screen direction of rotation;
Computing unit, connects described detector unit, redraws for calculating navigation bar according to described screen of handheld terminal direction of rotation Parameter;
Redraw unit, connect described computing unit, for using described redraw parameter and carry out navigation bar redraw.
7. handheld terminal navigation bar according to claim 6 redraws method it is characterised in that working as described physical keyboard rotation During on the left of screen, redraw navigation bar on the left of screen.
8. handheld terminal navigation bar according to claim 6 redraws method it is characterised in that working as described physical keyboard rotation During on the right side of screen, redraw navigation bar on the right side of screen.
9. handheld terminal navigation bar according to claim 6 redraws method it is characterised in that working as described physical keyboard rotation During to above screen, redraw navigation bar above screen.
10. handheld terminal navigation bar according to claim 6 redraws method it is characterised in that when described secondary or physical bond spirals When going to below screen, redraw navigation bar below screen.
CN201610894101.7A 2016-10-13 2016-10-13 Handheld terminal navigation bar redrawing method and device Pending CN106445554A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610894101.7A CN106445554A (en) 2016-10-13 2016-10-13 Handheld terminal navigation bar redrawing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610894101.7A CN106445554A (en) 2016-10-13 2016-10-13 Handheld terminal navigation bar redrawing method and device

Publications (1)

Publication Number Publication Date
CN106445554A true CN106445554A (en) 2017-02-22

Family

ID=58174950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610894101.7A Pending CN106445554A (en) 2016-10-13 2016-10-13 Handheld terminal navigation bar redrawing method and device

Country Status (1)

Country Link
CN (1) CN106445554A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622162A (en) * 2011-02-01 2012-08-01 上海晨兴希姆通电子科技有限公司 Levelness adjustment device and method of mobile phone interface
CN103970397A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Rotary screen interface display method and rotary screen interface display device
CN104902078A (en) * 2015-04-29 2015-09-09 深圳市万普拉斯科技有限公司 Mobile terminal, control method and system of screen rotation in mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622162A (en) * 2011-02-01 2012-08-01 上海晨兴希姆通电子科技有限公司 Levelness adjustment device and method of mobile phone interface
CN103970397A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Rotary screen interface display method and rotary screen interface display device
CN104902078A (en) * 2015-04-29 2015-09-09 深圳市万普拉斯科技有限公司 Mobile terminal, control method and system of screen rotation in mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ADMIN: "虚拟按键的一些定制 - 产品定制", 《HTTP://ASYSBANG.COM/FORUM.PHP?MOD=VIEWTHREAD&TID=587》 *

Similar Documents

Publication Publication Date Title
US20220156996A1 (en) Display of a live scene and auxiliary object
US9881287B1 (en) Dual interface mobile payment register
US20180232122A1 (en) Tilting to scroll
CN110147192A (en) Interface operation method, device, electronic equipment and storage medium
CN110251936B (en) Method and device for controlling virtual camera in game and storage medium
JP6308214B2 (en) Display control device, display control method, and recording medium
US20110261048A1 (en) Electronic device and method for displaying three dimensional image
KR20130073621A (en) Method for controlling flexible display in portable terminal and apparatus thereof
JP2008033695A5 (en)
US20180247124A1 (en) Electronic apparatus and method for controlling thereof
CN103765367B (en) Message processing device and information processing method
CN105224203A (en) Remote controller apparatus and control method thereof
CN106406708A (en) A display method and a mobile terminal
CN107580126B (en) A kind of air navigation aid and mobile terminal
US10872455B2 (en) Method and portable electronic device for changing graphics processing resolution according to scenario
KR20170043076A (en) Electronic device and method for processing gesture thereof
CN106528064A (en) Display method and system for operation interface help information
CN106445554A (en) Handheld terminal navigation bar redrawing method and device
JP2008301987A5 (en)
CN103809954A (en) Method and device for realizing interface element selection
CN114299809B (en) Direction information display method, display device, electronic apparatus, and readable storage medium
CN110502166B (en) Interactive control deployment method and device
CN107567612A (en) Digital pen relative to computing device incidence angle
CN109189244B (en) Terminal display method and device, terminal and readable storage medium
CN106055204A (en) Information display method and apparatus

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: 20170222

RJ01 Rejection of invention patent application after publication