### Implement JumpingBeans for Android TextView Animation in Java Source: https://github.com/frakbot/jumpingbeans/blob/master/README.md This Java code snippet illustrates how to initialize and use the `JumpingBeans` library to create animated text effects on `TextView` components. It provides examples for appending jumping dots and animating a specific text range, showcasing the `Builder` pattern for customization. ```Java // Append jumping dots final TextView textView1 = (TextView) findViewById(R.id.jumping_text_1); jumpingBeans1 = JumpingBeans.with(textView1) .appendJumpingDots() .build(); // Make the first word's letters jump final TextView textView2 = (TextView) findViewById(R.id.jumping_text_2); jumpingBeans2 = JumpingBeans.with(textView2) .makeTextJump(0, textView2.getText().toString().indexOf(' ')) .setIsWave(false) .setLoopDuration(1000) // ms .build(); ``` -------------------------------- ### JumpingBeans Android Library API Reference Source: https://github.com/frakbot/jumpingbeans/blob/master/README.md This API documentation details the core classes and methods of the JumpingBeans library, including the `JumpingBeans` class and its `Builder`. It covers initialization, configuration options for text animation, and the essential `stopJumping()` method for resource management. ```APIDOC JumpingBeans: .with(textView: TextView): Builder Description: Initializes the JumpingBeans builder for a given TextView. .stopJumping(): void Description: Stops all ongoing animations and cleans up resources. Must be called when the TextView is no longer in use (e.g., Activity/Fragment paused or detached). JumpingBeans.Builder: .appendJumpingDots(): Builder Description: Configures the animation to append and animate three jumping dots (Hangouts-style) at the end of the TextView's text. .makeTextJump(start: int, end: int): Builder Description: Configures the animation to make a specified subsection of the TextView's text jump. start: The starting index of the text section to animate. end: The ending index (exclusive) of the text section to animate. .setIsWave(isWave: boolean): Builder Description: Sets whether the jumping animation should be a wave effect (true) or a single block jump (false). isWave: True for wave effect, false for block jump. .setLoopDuration(durationMs: int): Builder Description: Sets the duration of one complete animation loop in milliseconds. durationMs: The loop duration in milliseconds. .setWavePerCharDelay(delayMs: int): Builder Description: Sets the delay between each character's jump in a wave animation, in milliseconds. delayMs: The per-character delay in milliseconds. .setAnimatedDutyCycle(dutyCycle: float): Builder Description: Sets the proportion of the loop duration during which the animation is active (0.0 to 1.0). dutyCycle: The duty cycle as a float. .build(): JumpingBeans Description: Creates and returns a new JumpingBeans object with the configured animation properties. ``` -------------------------------- ### Configure Gradle JCenter Repository for Android Projects Source: https://github.com/frakbot/jumpingbeans/blob/master/README.md This Groovy snippet demonstrates how to ensure the JCenter repository is declared in your root `build.gradle` file. Including `jcenter()` in `allprojects.repositories` is a prerequisite for resolving dependencies like JumpingBeans from this repository. ```Groovy allprojects { repositories { jcenter() } } ``` -------------------------------- ### Add JumpingBeans Library Dependency to Android Module Source: https://github.com/frakbot/jumpingbeans/blob/master/README.md This Groovy snippet shows how to add the JumpingBeans library as a compile-time dependency to your Android module's `build.gradle` file. This step makes the library's classes and methods available for use in your project. ```Groovy dependencies { compile 'net.frakbot:jumpingbeans:1.3.0' } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.