Sketchware

Sketchware

  • Docs
  • Community
  • Blog

›Components

The Basics

  • Getting Started
  • Creating a New Project
  • Designing Your App
  • Programming Your App
  • Adding Components
  • Adding Resources

Firebase

  • Getting Started
  • Linking Android App
  • Project Settings
  • Setting Database Rules
  • Enabling Login Methods
  • Enabling Firebase Storage

AdMob

  • Getting Started
  • Creating Ad Unit
  • Sketchware AdMob Settings

Publishing

  • Getting Started
  • Creating a Service Account
  • First Time Publishing

Components

  • Intent
  • SharedPreference
  • Calendar
  • Vibrator
  • Timer
  • Dialog
  • MediaPlayer
  • SoundPool
  • ObjectAnimator
  • Camera
  • FilePicker
  • Gyroscope
  • Firebase DB
  • Firebase Auth
  • Firebase Storage

ObjectAnimator

ObjectAnimator component is used to animate widgets.

Example

Rotating an image to create a loading icon.

example



Blocks

set target

Set the view to animate.

set target

TypeExplanationRequired
ObjectAnimatorObjectAnimator ComponentYes
ViewView to animateYes

set property

Set the property to animate.

set property

TypeExplanationRequired
ObjectAnimatorObjectAnimator ComponentYes
PropertyProperties: rotation, translationX, translationY, alpha, scaleX, scaleYYes

set value

Set the value to animate to.

set value

TypeExplanationRequired
ObjectAnimatorObjectAnimator ComponentYes
NumberValue to animate toNo

set values from to

Set the value to animate from and to.

set values from to

TypeExplanationRequired
ObjectAnimatorObjectAnimator ComponentYes
NumberValue to animate fromNo
NumberValue to animate toNo

set duration

Set the duration for the animation.

set duration

TypeExplanationRequired
ObjectAnimatorObjectAnimator ComponentYes
NumberDuration of the animationNo

set repeat mode

Two different repeat modes:

  1. RESTART - restarts the animation from beginning again when it is finished.
  2. REVERSE - restarts the animation from end to beginning when it is finished.

set repeat mode

TypeExplanationRequired
ObjectAnimatorObjectAnimator ComponentYes
Repeat ModeModes: RESTART, REVERSEYes

set repeat count

Set the number of times the animation should repeat.

set repeat count

TypeExplanationRequired
ObjectAnimatorObjectAnimator ComponentYes
NumberNumber of times to repeat the animationNo

set interpolator

Set the interpolator for the animation, which affects the way animation behaves.

set interpolator

TypeExplanationRequired
ObjectAnimatorObjectAnimator ComponentYes
InterpolatorInterpolators: Linear, Accelerate, Decelerate, AccelerateDecelerate, BounceYes

start

Start the animation.

start

TypeExplanationRequired
ObjectAnimatorObjectAnimator ComponentYes

cancel

Cancel the animation.

cancel

TypeExplanationRequired
ObjectAnimatorObjectAnimator ComponentYes

is running

True if animation is currently running.

is running

TypeExplanationRequired
ObjectAnimatorObjectAnimator ComponentYes

Events

onAnimationStart

Triggered when animation starts.

onAnimationEnd

Triggered when animation finishes.

onAnimationCancel

Triggered when animation is cancelled.

← SoundPoolCamera →
  • Example
  • Blocks
    • set target
    • set property
    • set value
    • set values from to
    • set duration
    • set repeat mode
    • set repeat count
    • set interpolator
    • start
    • cancel
    • is running
  • Events
    • onAnimationStart
    • onAnimationEnd
    • onAnimationCancel
Sketchware
Docs
Getting Started
Community
FacebookSlack
More
BlogMedium
Copyright © 2018 Sketchware