├── src ├── main │ ├── res │ │ ├── values │ │ │ ├── colors.xml │ │ │ ├── strings.xml │ │ │ ├── styles.xml │ │ │ └── attrs.xml │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ └── layout │ │ │ ├── activity_bezier_view.xml │ │ │ ├── layout_pager.xml │ │ │ ├── activity_pager.xml │ │ │ ├── activity_bezier_evaluator.xml │ │ │ └── activity_fullscreen.xml │ ├── java │ │ └── cn │ │ │ └── gavinliu │ │ │ └── beautifulofbezier │ │ │ ├── BezierViewActivity.java │ │ │ ├── FullscreenActivity.java │ │ │ ├── BezierEvaluator.java │ │ │ ├── BezierView.java │ │ │ ├── BezierEvaluatorActivity.java │ │ │ ├── DropPagerIndicatorActivity.java │ │ │ └── DropPagerIndicator.java │ └── AndroidManifest.xml └── androidTest │ └── java │ └── cn │ └── gavinliu │ └── beautifulofbezier │ └── ApplicationTest.java ├── Readme.md ├── .gitignore └── proguard-rules.pro /src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #66000000 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gavinliu/BeautifulOfBezier/HEAD/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gavinliu/BeautifulOfBezier/HEAD/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gavinliu/BeautifulOfBezier/HEAD/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gavinliu/BeautifulOfBezier/HEAD/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | # BeautifulOfBezier 2 | 3 | [Android - Animation 贝塞尔曲线之美](http://gavinliu.cn/2015/03/30/Android-Animation-%E8%B4%9D%E5%A1%9E%E5%B0%94%E6%9B%B2%E7%BA%BF%E4%B9%8B%E7%BE%8E/) 博客Demo 4 | -------------------------------------------------------------------------------- /src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | BeautifulOfBezier 3 | 4 | Dummy Button 5 | DUMMY\nCONTENT 6 | 7 | -------------------------------------------------------------------------------- /src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | #Android generated 2 | bin 3 | gen 4 | gen* 5 | 6 | #Eclipse 7 | .project 8 | .classpath 9 | .settings 10 | 11 | #IntelliJ IDEA 12 | .idea 13 | *.iml 14 | *.ipr 15 | *.iws 16 | out 17 | 18 | #Maven 19 | target 20 | release.properties 21 | pom.xml.* 22 | 23 | #Ant 24 | build.xml 25 | local.properties 26 | proguard.cfg 27 | 28 | #Gradle 29 | .gradle 30 | build 31 | 32 | #OSX 33 | .DS_Store 34 | 35 | #Personal Files 36 | signing. 37 | -------------------------------------------------------------------------------- /src/main/res/layout/activity_bezier_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /src/androidTest/java/cn/gavinliu/beautifulofbezier/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package cn.gavinliu.beautifulofbezier; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /src/main/res/layout/layout_pager.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | -------------------------------------------------------------------------------- /src/main/java/cn/gavinliu/beautifulofbezier/BezierViewActivity.java: -------------------------------------------------------------------------------- 1 | package cn.gavinliu.beautifulofbezier; 2 | 3 | import android.os.Bundle; 4 | import android.support.v7.app.ActionBarActivity; 5 | 6 | /** 7 | * Created by gavin on 15-4-2. 8 | */ 9 | public class BezierViewActivity extends ActionBarActivity { 10 | 11 | @Override 12 | protected void onCreate(Bundle savedInstanceState) { 13 | super.onCreate(savedInstanceState); 14 | setContentView(R.layout.activity_bezier_view); 15 | 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/res/layout/activity_pager.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 12 | 16 | 17 | -------------------------------------------------------------------------------- /proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/gavin/Develop/android-sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /src/main/res/layout/activity_bezier_evaluator.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 18 | 19 | -------------------------------------------------------------------------------- /src/main/java/cn/gavinliu/beautifulofbezier/FullscreenActivity.java: -------------------------------------------------------------------------------- 1 | package cn.gavinliu.beautifulofbezier; 2 | 3 | import android.content.Intent; 4 | import android.os.Bundle; 5 | import android.support.v7.app.ActionBarActivity; 6 | import android.view.View; 7 | 8 | public class FullscreenActivity extends ActionBarActivity { 9 | 10 | @Override 11 | protected void onCreate(Bundle savedInstanceState) { 12 | super.onCreate(savedInstanceState); 13 | setContentView(R.layout.activity_fullscreen); 14 | 15 | } 16 | 17 | public void onBezierView(View view) { 18 | Intent intent = new Intent(this, BezierViewActivity.class); 19 | startActivity(intent); 20 | } 21 | 22 | public void onDropPagerIndicator(View view) { 23 | Intent intent = new Intent(this, DropPagerIndicatorActivity.class); 24 | startActivity(intent); 25 | } 26 | 27 | public void onBezierEvaluator(View view) { 28 | Intent intent = new Intent(this, BezierEvaluatorActivity.class); 29 | startActivity(intent); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/res/layout/activity_fullscreen.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 |