├── FlipDigitLib ├── ic_launcher-web.png ├── res │ ├── values │ │ ├── strings.xml │ │ ├── dimens.xml │ │ └── styles.xml │ ├── drawable │ │ ├── digit_0_lower.png │ │ ├── digit_0_upper.png │ │ ├── digit_1_lower.png │ │ ├── digit_1_upper.png │ │ ├── digit_2_lower.png │ │ ├── digit_2_upper.png │ │ ├── digit_3_lower.png │ │ ├── digit_3_upper.png │ │ ├── digit_4_lower.png │ │ ├── digit_4_upper.png │ │ ├── digit_5_lower.png │ │ ├── digit_5_upper.png │ │ ├── digit_6_lower.png │ │ ├── digit_6_upper.png │ │ ├── digit_7_lower.png │ │ ├── digit_7_upper.png │ │ ├── digit_8_lower.png │ │ ├── digit_8_upper.png │ │ ├── digit_9_lower.png │ │ ├── digit_9_upper.png │ │ └── ic_launcher.png │ ├── drawable-hdpi │ │ └── ic_launcher.png │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ ├── drawable-xxhdpi │ │ └── ic_launcher.png │ ├── anim │ │ ├── flip_point_from_middle.xml │ │ └── flip_point_to_middle.xml │ ├── values-v11 │ │ └── styles.xml │ ├── values-v14 │ │ └── styles.xml │ └── layout │ │ ├── view_flipmeter_spinner.xml │ │ └── widget_flipmeter.xml ├── libs │ └── android-support-v4.jar ├── .settings │ └── org.eclipse.jdt.core.prefs ├── AndroidManifest.xml ├── project.properties ├── proguard-project.txt └── src │ └── com │ └── vinayrraj │ └── flipdigit │ └── lib │ ├── FlipmeterSpinner.java │ ├── Flipmeter.java │ └── FlipDigit.java ├── FlipDigitExample ├── device-2013-10-18-152520.png ├── libs │ └── android-support-v4.jar ├── res │ ├── drawable │ │ └── ic_launcher.png │ ├── drawable-hdpi │ │ └── ic_launcher.png │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ ├── drawable-xxhdpi │ │ └── ic_launcher.png │ ├── values-sw600dp │ │ └── dimens.xml │ ├── values │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml │ ├── menu │ │ └── sample.xml │ ├── values-sw720dp-land │ │ └── dimens.xml │ ├── values-v11 │ │ └── styles.xml │ ├── values-v14 │ │ └── styles.xml │ └── layout │ │ └── activity_sample.xml ├── .settings │ └── org.eclipse.jdt.core.prefs ├── project.properties ├── proguard-project.txt ├── AndroidManifest.xml └── src │ └── com │ └── vinayrraj │ └── flipdigitexample │ └── SampleActivity.java ├── README.md ├── .gitignore └── LICENSE /FlipDigitLib/ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/ic_launcher-web.png -------------------------------------------------------------------------------- /FlipDigitLib/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | FlipDigit Lib 4 | 5 | 6 | -------------------------------------------------------------------------------- /FlipDigitLib/libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/libs/android-support-v4.jar -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/digit_0_lower.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/digit_0_lower.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/digit_0_upper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/digit_0_upper.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/digit_1_lower.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/digit_1_lower.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/digit_1_upper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/digit_1_upper.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/digit_2_lower.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/digit_2_lower.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/digit_2_upper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/digit_2_upper.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/digit_3_lower.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/digit_3_lower.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/digit_3_upper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/digit_3_upper.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/digit_4_lower.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/digit_4_lower.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/digit_4_upper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/digit_4_upper.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/digit_5_lower.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/digit_5_lower.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/digit_5_upper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/digit_5_upper.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/digit_6_lower.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/digit_6_lower.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/digit_6_upper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/digit_6_upper.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/digit_7_lower.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/digit_7_lower.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/digit_7_upper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/digit_7_upper.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/digit_8_lower.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/digit_8_lower.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/digit_8_upper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/digit_8_upper.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/digit_9_lower.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/digit_9_lower.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/digit_9_upper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/digit_9_upper.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable/ic_launcher.png -------------------------------------------------------------------------------- /FlipDigitExample/device-2013-10-18-152520.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitExample/device-2013-10-18-152520.png -------------------------------------------------------------------------------- /FlipDigitExample/libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitExample/libs/android-support-v4.jar -------------------------------------------------------------------------------- /FlipDigitExample/res/drawable/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitExample/res/drawable/ic_launcher.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /FlipDigitLib/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitLib/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /FlipDigitExample/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitExample/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /FlipDigitExample/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitExample/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /FlipDigitExample/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vinayrraj/Android-FlipDigitView/HEAD/FlipDigitExample/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /FlipDigitLib/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 150 6 | 7 | -------------------------------------------------------------------------------- /FlipDigitLib/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 3 | org.eclipse.jdt.core.compiler.compliance=1.6 4 | org.eclipse.jdt.core.compiler.source=1.6 5 | -------------------------------------------------------------------------------- /FlipDigitExample/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 3 | org.eclipse.jdt.core.compiler.compliance=1.6 4 | org.eclipse.jdt.core.compiler.source=1.6 5 | -------------------------------------------------------------------------------- /FlipDigitExample/res/values-sw600dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /FlipDigitExample/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16dp 5 | 16dp 6 | 7 | 8 | -------------------------------------------------------------------------------- /FlipDigitExample/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | FlipDigit Example 5 | Settings 6 | Hello world! 7 | 8 | 9 | -------------------------------------------------------------------------------- /FlipDigitExample/res/menu/sample.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /FlipDigitExample/res/values-sw720dp-land/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 128dp 8 | 9 | 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Android-FlipDigitView 2 | ===================== 3 | 4 | The FlipDigitView is simulating an analog flip display (like those for the departure time on the airport). Please open a Github issue, if you think anything is missing or wrong. 5 | 6 | Video: http://youtu.be/d6-M2nN2Gzg 7 | 8 | ![Alt text](FlipDigitExample/device-2013-10-18-152520.png "Screen Shot") 9 | -------------------------------------------------------------------------------- /FlipDigitLib/res/anim/flip_point_from_middle.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | -------------------------------------------------------------------------------- /FlipDigitLib/res/anim/flip_point_to_middle.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | -------------------------------------------------------------------------------- /FlipDigitLib/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /FlipDigitExample/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # files for the dex VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # generated files 12 | bin/ 13 | gen/ 14 | 15 | # Local configuration file (sdk path, etc) 16 | local.properties 17 | 18 | # Eclipse project files 19 | .classpath 20 | .project 21 | 22 | # Proguard folder generated by Eclipse 23 | proguard/ 24 | 25 | # Intellij project files 26 | *.iml 27 | *.ipr 28 | *.iws 29 | .idea/ 30 | -------------------------------------------------------------------------------- /FlipDigitLib/res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /FlipDigitExample/res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /FlipDigitLib/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 9 | 10 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /FlipDigitLib/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-18 15 | android.library=true 16 | -------------------------------------------------------------------------------- /FlipDigitExample/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-18 15 | android.library.reference.1=../FlipDigitLib 16 | -------------------------------------------------------------------------------- /FlipDigitLib/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 14 | 15 | 16 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /FlipDigitExample/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 14 | 15 | 16 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /FlipDigitLib/proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /FlipDigitExample/proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /FlipDigitExample/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 16 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /FlipDigitExample/src/com/vinayrraj/flipdigitexample/SampleActivity.java: -------------------------------------------------------------------------------- 1 | package com.vinayrraj.flipdigitexample; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.view.View; 6 | import android.view.View.OnClickListener; 7 | import android.widget.EditText; 8 | 9 | import com.vinayrraj.flipdigit.lib.Flipmeter; 10 | 11 | public class SampleActivity extends Activity { 12 | 13 | private final int value = 000000; 14 | private Flipmeter flipMeter = null; 15 | 16 | @Override 17 | protected void onCreate(Bundle savedInstanceState) { 18 | super.onCreate(savedInstanceState); 19 | setContentView(R.layout.activity_sample); 20 | 21 | flipMeter = (Flipmeter) findViewById(R.id.Flipmeter); 22 | 23 | final EditText text = (EditText) findViewById(R.id.edittext); 24 | final View button = findViewById(R.id.button); 25 | 26 | button.setOnClickListener(new OnClickListener() { 27 | 28 | @Override 29 | public void onClick(View arg0) { 30 | 31 | try { 32 | flipMeter.setValue(Integer.parseInt(text.getText().toString().trim()), true); 33 | text.setText(""); 34 | } catch (Exception e) { 35 | e.printStackTrace(); 36 | } 37 | 38 | } 39 | }); 40 | 41 | flipMeter.setValue(value, true); 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /FlipDigitLib/res/layout/view_flipmeter_spinner.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 13 | 14 | 20 | 21 | 26 | 27 | 33 | 34 | -------------------------------------------------------------------------------- /FlipDigitExample/res/layout/activity_sample.xml: -------------------------------------------------------------------------------- 1 | 11 | 12 | 18 | 19 | 26 | 27 |