EnchantedCharactersView

A single line text view. When new text is set, old characters that can be reused shifts to the new position.

License

License

Categories

Categories

Ant Build Tools
GroupId

GroupId

tw.lifehackers
ArtifactId

ArtifactId

enchantedcharactersview
Last Version

Last Version

1.1
Release Date

Release Date

Type

Type

aar
Description

Description

EnchantedCharactersView
A single line text view. When new text is set, old characters that can be reused shifts to the new position.
Project URL

Project URL

https://github.com/landicefu/EnchantedCharactersView
Source Code Management

Source Code Management

https://github.com/landicefu/EnchantedCharactersView

Download enchantedcharactersview

How to add to project

<!-- https://jarcasting.com/artifacts/tw.lifehackers/enchantedcharactersview/ -->
<dependency>
    <groupId>tw.lifehackers</groupId>
    <artifactId>enchantedcharactersview</artifactId>
    <version>1.1</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/tw.lifehackers/enchantedcharactersview/
implementation 'tw.lifehackers:enchantedcharactersview:1.1'
// https://jarcasting.com/artifacts/tw.lifehackers/enchantedcharactersview/
implementation ("tw.lifehackers:enchantedcharactersview:1.1")
'tw.lifehackers:enchantedcharactersview:aar:1.1'
<dependency org="tw.lifehackers" name="enchantedcharactersview" rev="1.1">
  <artifact name="enchantedcharactersview" type="aar" />
</dependency>
@Grapes(
@Grab(group='tw.lifehackers', module='enchantedcharactersview', version='1.1')
)
libraryDependencies += "tw.lifehackers" % "enchantedcharactersview" % "1.1"
[tw.lifehackers/enchantedcharactersview "1.1"]

Dependencies

runtime (1)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jdk7 jar 1.3.50

Project Modules

There are no modules declared in this project.

EnchantedCharactersView

A single line text view. When new text is set, old characters that can be reused shifts to the new position.

Latest Version

V1.1 has been released.

  • You can now use interpolators to make the animation more vivid.

Usage

Add dependency to your gradle:

implementation 'tw.lifehackers:enchantedcharactersview:1.1'

Add the view to your xml file and change the text in your code.

    <tw.lifehackers.widget.EnchantedCharactersView
            android:id="@+id/enchantedCharactersView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:fadeInForNonMovingChar="true"
            app:typeface="Adlanta.otf"
            app:text="January"
            app:textColor="@android:color/black"
            app:textSize="48sp"
            app:gravity="center_horizontal"/>
Attribute Type Description
text string Default text to show
textColor color The color of the text
textSize dimension The size of the text
typeface string filepath to the typeface file under asset folder
fadeInForNonMovingChar boolean Make the characters fade in when it's not available from last text
animationSteps int Number of steps between start and end. (The larger the longer one animation takes)
gravity enum The gravity of the text

Versions

Version
1.1
1.0