Giter VIP home page Giter VIP logo

animation-lab's Introduction

title type duration creator
Simple animation
lab
1:30
name city
Yuliya Kaleda
NYC

Simple Animation Lab

Introduction

Note: This can should done independently.

In this lab, you will be building an animated wish list using your knowledge of view and layout animation. The app should have an edit text where a user can type in his/her wish. After clicking the button "add a wish", the wish should get animated and then be added to the wish list on top of other wishes. The app does not have to look the same, but it needs to have the same functionality.

Hint: when adding a new text view to the list make sure to specify the position 0.

Exercise

Requirements

  • contain an edit text (to type in a wish), button (to add a wish), text view (the place where the wish will get animated) and a view group (wish list)
  • edit text should be no more than one line
  • text view should get animated (use alpha and rotate types of animation)
  • a new wish should be added to the top of the list
  • input field should get cleared after a wish is added to the list

Bonus:

  • add functionality to remove a wish from the list

Starter code

Take a look at the starter-code. The only class to work with is MainActivity. Add the views and take care of an event listener on the button. In the project, you can find a folder anim/ with one file animation.xml for you to take care of the animation set. In the file activity_main.xml add the views. Do not forget about a view group where you will store all the wishes.

You have a choice of coding layout animation in the xml file or in java class.

Deliverable

Here is a gif that shows view and layout animation:

animation-lab's People

Contributors

roberrera avatar jamesdavis-ga avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.