├── app ├── .gitignore ├── src │ ├── main │ │ ├── ic_launcher-web.png │ │ ├── res │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── values │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ │ ├── layout │ │ │ │ ├── activity_main.xml │ │ │ │ ├── activity_textview.xml │ │ │ │ └── activity_edittext.xml │ │ │ └── drawable │ │ │ │ └── ic_launcher_background.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── parfoismeng │ │ │ │ └── decimaltextview │ │ │ │ ├── MyApp.java │ │ │ │ └── activity │ │ │ │ ├── MainActivity.java │ │ │ │ ├── EditTextActivity.java │ │ │ │ └── TextViewActivity.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── parfoismeng │ │ │ └── decimaltextview │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── parfoismeng │ │ └── decimaltextview │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── decimaltextviewlib ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ └── values │ │ │ │ ├── strings.xml │ │ │ │ └── attrs.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── parfoismeng │ │ │ └── decimaltextviewlib │ │ │ ├── listener │ │ │ └── OnDecimalUpperListener.java │ │ │ └── widget │ │ │ ├── DecimalTextView.java │ │ │ └── DecimalEditText.java │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── parfoismeng │ │ │ └── decimaltextviewlib │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── parfoismeng │ │ └── decimaltextviewlib │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── screenshots ├── demo1.gif ├── demo2.gif └── qrcode.png ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradle.properties ├── .gitignore ├── gradlew.bat ├── README.md ├── gradlew └── LICENSE /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /decimaltextviewlib/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':decimaltextviewlib' 2 | -------------------------------------------------------------------------------- /screenshots/demo1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParfoisMeng/DecimalTextView/HEAD/screenshots/demo1.gif -------------------------------------------------------------------------------- /screenshots/demo2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParfoisMeng/DecimalTextView/HEAD/screenshots/demo2.gif -------------------------------------------------------------------------------- /screenshots/qrcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParfoisMeng/DecimalTextView/HEAD/screenshots/qrcode.png -------------------------------------------------------------------------------- /app/src/main/ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParfoisMeng/DecimalTextView/HEAD/app/src/main/ic_launcher-web.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParfoisMeng/DecimalTextView/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /decimaltextviewlib/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | DecimalTextViewLib 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParfoisMeng/DecimalTextView/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParfoisMeng/DecimalTextView/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ParfoisMeng/DecimalTextView/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /decimaltextviewlib/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | DecimalTextView 3 | 4 | ¥ 5 | 数量: 6 | 任意字符串都可以 7 | 8 | 9 | -------------------------------------------------------------------------------- /decimaltextviewlib/src/main/java/com/parfoismeng/decimaltextviewlib/listener/OnDecimalUpperListener.java: -------------------------------------------------------------------------------- 1 | package com.parfoismeng.decimaltextviewlib.listener; 2 | 3 | /** 4 | * 数字上限监听 5 | */ 6 | public interface OnDecimalUpperListener { 7 | void onDecimalUpper(); 8 | } -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Nov 13 17:35:37 CST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/test/java/com/parfoismeng/decimaltextview/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.parfoismeng.decimaltextview; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /decimaltextviewlib/src/test/java/com/parfoismeng/decimaltextviewlib/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.parfoismeng.decimaltextviewlib; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /app/src/main/java/com/parfoismeng/decimaltextview/MyApp.java: -------------------------------------------------------------------------------- 1 | package com.parfoismeng.decimaltextview; 2 | 3 | import android.app.Application; 4 | 5 | /** 6 | *
 7 |  *     author : parfoismeng
 8 |  *     e-mail : youshi520000@163.com
 9 |  *     time   : 2017/11/13
10 |  *     desc   : do_
11 |  *     version: 1.0
12 |  * 
13 | */ 14 | public class MyApp extends Application { 15 | /** 16 | * Application对象 17 | */ 18 | private MyApp mInstance; 19 | 20 | public MyApp getInstance() { 21 | return mInstance; 22 | } 23 | 24 | @Override 25 | public void onCreate() { 26 | super.onCreate(); 27 | mInstance = this; 28 | } 29 | 30 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 |