EnchantedCharactersView

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

Лицензия

Лицензия

Категории

Категории

Ant Компиляция и сборка
Группа

Группа

tw.lifehackers
Идентификатор

Идентификатор

enchantedcharactersview
Последняя версия

Последняя версия

1.1
Дата

Дата

Тип

Тип

aar
Описание

Описание

EnchantedCharactersView
A single line text view. When new text is set, old characters that can be reused shifts to the new position.
Ссылка на сайт

Ссылка на сайт

https://github.com/landicefu/EnchantedCharactersView
Система контроля версий

Система контроля версий

https://github.com/landicefu/EnchantedCharactersView

Скачать enchantedcharactersview

Как подключить последнюю версию

<!-- 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"]

Зависимости

runtime (1)

Идентификатор библиотеки Тип Версия
org.jetbrains.kotlin : kotlin-stdlib-jdk7 jar 1.3.50

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
1.1
1.0