Skip to content
This repository has been archived by the owner on Nov 7, 2020. It is now read-only.

[abandoned] Layer for Pebble apps that slide a line of text up to reveal the next one.

License

Notifications You must be signed in to change notification settings

smallstoneapps/sliding-text-layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sliding Text Layer

A Layer for your Pebble apps that lets you vertically scroll a line of text.

As of January 2017, this library is officially abandoned.


Installation

You must be using Pebble SDK 3.12 or newer to use this library.

To install the package to your app, use the pebble tool:

pebble package install @smallstoneapps/sliding-text-layer

Usage

  1. Include the header file in your code.

    #include <@smallstoneapps/sliding-text-layer/sliding-text-layer.h>
    
  2. Create a new SlidingTextLayer.

    SlidingTextLayer* stl = sliding_text_layer_create(GRect(0, 60, 144, 24));
    
  3. Set the initial text for the layer.

    sliding_text_layer_set_text(stl, "Line 1");
    
  4. When you want to animate to the next line of text.

    sliding_text_layer_set_next_text(stl, "Line 2");
    sliding_text_layer_animate_down(stl);
    

About

[abandoned] Layer for Pebble apps that slide a line of text up to reveal the next one.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published