Mobile Computing Systems
Download 10.9 Kb.
|
- Bu sahifa navigatsiya:
- High Five!
- 1. Property Animation (Object)
- 2. View Animation
Lecture 3: Animation & GraphicsTopics: Animation, Graphics, Drawing Date: Jan 31, 2016 References (study these)
High Five!https://youtu.be/uFpoXq73HHY Animation Overview
1. Property Animation (Value)
ValueAnimator anim = ValueAnimator.ofFloat(0f, 40f); anim.setDuration(40); anim.start(); Limitation? 1. Property Animation (Object)
ObjectAnimator anim = ObjectAnimator.ofFloat(myTextView, “textSize”, 10f, 30f); anim.setDuration(5000); anim.start(); Hello World Hello World Hello World Object Variable 2. View Animation
2. View Animation
xml version="1.0" encoding="utf-8"?> <rotate xmlns:android="http://schemas.android.com/apk/res/android" android:fromDegrees="0" android:toDegrees="360" android:toYScale="0.0" android:pivotX="50%" android:pivotY="50%" android:startOffset=“1000" android:duration="10000" /> Download 10.9 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling