├── app ├── .gitignore ├── src │ └── main │ │ ├── res │ │ ├── .DS_Store │ │ ├── raw │ │ │ ├── hzk16k │ │ │ ├── hzk16s │ │ │ ├── click_0.mp3 │ │ │ ├── click_1.mp3 │ │ │ └── click_2.mp3 │ │ ├── values │ │ │ ├── strings.xml │ │ │ ├── colors.xml │ │ │ ├── dimens.xml │ │ │ ├── styles.xml │ │ │ └── attrs.xml │ │ ├── mipmap-xxhdpi │ │ │ ├── dot.png │ │ │ ├── chicken.png │ │ │ ├── dot_back.png │ │ │ └── ic_launcher.png │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ └── layout │ │ │ └── activity_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── com │ │ └── reikyz │ │ └── flipdot │ │ ├── utils │ │ ├── BitmapUtils.java │ │ └── FontUtils.java │ │ ├── MainActivity.java │ │ └── view │ │ └── FlipDotView.java ├── build.gradle └── proguard-rules.pro ├── settings.gradle ├── .DS_Store ├── 2016-09-01_17_43_11.gif ├── README.md ├── .gitignore ├── gradle.properties ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReikyZ/FlipDot/HEAD/.DS_Store -------------------------------------------------------------------------------- /2016-09-01_17_43_11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReikyZ/FlipDot/HEAD/2016-09-01_17_43_11.gif -------------------------------------------------------------------------------- /app/src/main/res/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReikyZ/FlipDot/HEAD/app/src/main/res/.DS_Store -------------------------------------------------------------------------------- /app/src/main/res/raw/hzk16k: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReikyZ/FlipDot/HEAD/app/src/main/res/raw/hzk16k -------------------------------------------------------------------------------- /app/src/main/res/raw/hzk16s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReikyZ/FlipDot/HEAD/app/src/main/res/raw/hzk16s -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # FlipDot 2 | intro 3 | http://www.jianshu.com/p/4fcbb593f427 4 | 5 | ![](2016-09-01_17_43_11.gif) 6 | -------------------------------------------------------------------------------- /app/src/main/res/raw/click_0.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReikyZ/FlipDot/HEAD/app/src/main/res/raw/click_0.mp3 -------------------------------------------------------------------------------- /app/src/main/res/raw/click_1.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReikyZ/FlipDot/HEAD/app/src/main/res/raw/click_1.mp3 -------------------------------------------------------------------------------- /app/src/main/res/raw/click_2.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReikyZ/FlipDot/HEAD/app/src/main/res/raw/click_2.mp3 -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | FlipDot 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/dot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReikyZ/FlipDot/HEAD/app/src/main/res/mipmap-xxhdpi/dot.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReikyZ/FlipDot/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReikyZ/FlipDot/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/chicken.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReikyZ/FlipDot/HEAD/app/src/main/res/mipmap-xxhdpi/chicken.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/dot_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReikyZ/FlipDot/HEAD/app/src/main/res/mipmap-xxhdpi/dot_back.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReikyZ/FlipDot/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReikyZ/FlipDot/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ReikyZ/FlipDot/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 24 5 | buildToolsVersion "24.0.0" 6 | 7 | defaultConfig { 8 | applicationId "com.reikyz.flipdot" 9 | minSdkVersion 15 10 | targetSdkVersion 24 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | testCompile 'junit:junit:4.12' 25 | compile 'com.android.support:appcompat-v7:24.1.0' 26 | } 27 | -------------------------------------------------------------------------------- /app/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 /Users/reikyZ/Library/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 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Created by .ignore support plugin (hsz.mobi) 2 | ### Android template 3 | # Built application files 4 | *.apk 5 | *.ap_ 6 | 7 | # Files for the ART/Dalvik VM 8 | *.dex 9 | 10 | # Java class files 11 | *.class 12 | 13 | # Generated files 14 | bin/ 15 | gen/ 16 | out/ 17 | 18 | # Gradle files 19 | .gradle/ 20 | build/ 21 | 22 | # Local configuration file (sdk path, etc) 23 | local.properties 24 | 25 | # Proguard folder generated by Eclipse 26 | proguard/ 27 | 28 | # Log Files 29 | *.log 30 | 31 | # Android Studio Navigation editor temp files 32 | .navigation/ 33 | 34 | # Android Studio captures folder 35 | captures/ 36 | 37 | # Intellij 38 | *.iml 39 | .idea/workspace.xml 40 | 41 | # Keystore files 42 | *.jks 43 | 44 | /app/build/ 45 | /app/src/androidTest/ 46 | /app/src/test/ 47 | /gradle/ 48 | /.idea/ 49 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 14 | 15 | 27 | 28 | 32 | 33 | 34 | 39 | 40 |