Giter VIP home page Giter VIP logo

gravityshake's Introduction

GravityShake

关于

该程序是一个运用手机加速度传感器(Sensor.TYPE_ACCELEROMETER)实现的一个特效程序。
具体来说,是在一张图片(该图片可能还支持手势缩放)上绘制一个或多个小标签(图片),这些小标签能够随手机的晃动(或转动)而左右摆动(有点类似单摆,但是是阻尼摆动,最终静止,感觉更像风铃的那种效果)。
另外,该程序还支持小标签点击事件的监听,即使在底图放大或缩小的情况下。

安装

apk文件夹下附带安装包(未签名)。

编译与运行

本项目开发工具为Eclipse,你可以将source文件夹下的项目导入到eclipse中编译并运行。
如果你使用ant来编译构建项目,你需要在 source/GravityShake 文件夹下建立一个local.properties文件,该文件的内容为

sdk.dir=【Android SDK所在的目录】   

之后,你可以在命令行中定位到GravityShake文件夹,执行ant debug命令来编译该项目。

预览

(由于在模拟器上不好模拟手机晃动,需要用真机测试,录制屏幕又比较麻烦,所以预览效果稍后给出,大家可以先自己安装下应用程序,看看效果。有任何问题请及时反馈给我)

用到的第三方库

关于我

I am here

gravityshake's People

Contributors

likebamboo avatar

Watchers

 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.