Skip to content

Ability to specify how many pixel a text should shift in Label tickering #1266

@ghost

Description

Original issue 1267 created by codenameone on 2015-01-08T07:51:58.000Z:

Delay time in Label tickering can be set but not the amount of pixel the text should shift.

Currently the "shiftText += 2" and "shiftText -= 2" under animate() method in Label class is set to shift constantly by 2 pixel which makes tickering extremely slow on high dpi displays and slow on low dpi displays.

If the value of shiftText can be set based on displayWidth, it will make tickering speed consistent across different screens.

What steps will reproduce the problem?

  1. Create a Label with text and set setTickerEnabled(true) and setEndsWith3Points(false).
  2. Start the tickering with startTicker(10, true).
  3. Run the app on simulator using iPhone3gs_OS7 skin, then change to iPhone6_Plus skin and watch the tickering speed as it become very slow despite using the same delay.

What is the expected output? What do you see instead?
I expect the tickering speed to be consistent across different devices, most importantly... faster on high dpi devices.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions