diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..a1e84f2b1c11f77677746fa3b3c3b3e178f75608 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +*.iml +.gradle +/local.properties +/.idea/workspace.xml +/.idea/libraries +.DS_Store +/build +/captures +/.idea diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..796b96d1c402326528b4ba3c12ee9d92d0e212e9 --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..bad2d9484bb2b3f5188e426b05184d7ebf238a0a --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,27 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 24 + buildToolsVersion "24.0.3" + + defaultConfig { + applicationId "com.chaychan.powerfulviewlibrary" + minSdkVersion 16 + targetSdkVersion 24 + versionCode 1 + versionName "1.0" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + compile fileTree(include: ['*.jar'], dir: 'libs') + testCompile 'junit:junit:4.12' + compile 'com.android.support:appcompat-v7:24.2.1' + compile project(':viewlib') +} diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000000000000000000000000000000000000..dcdbb045b9ac4ccad077a146200f197f0cdc1ac4 --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,17 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in G:\SDK\AndroidStudioSDK/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/app/src/androidTest/java/com/chaychan/powerfulviewlibrary/ApplicationTest.java b/app/src/androidTest/java/com/chaychan/powerfulviewlibrary/ApplicationTest.java new file mode 100644 index 0000000000000000000000000000000000000000..6198e147bb4a1c013746ba15d050949f714bbbf0 --- /dev/null +++ b/app/src/androidTest/java/com/chaychan/powerfulviewlibrary/ApplicationTest.java @@ -0,0 +1,13 @@ +package com.chaychan.powerfulviewlibrary; + +import android.app.Application; +import android.test.ApplicationTestCase; + +/** + * Testing Fundamentals + */ +public class ApplicationTest extends ApplicationTestCase { + public ApplicationTest() { + super(Application.class); + } +} \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..ceeb08828edc368a916fc4d68589c196c52d5cc9 --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/chaychan/powerfulviewlibrary/MainActivity.java b/app/src/main/java/com/chaychan/powerfulviewlibrary/MainActivity.java new file mode 100644 index 0000000000000000000000000000000000000000..ce5b3933a9f7c92f2ea5b663a3aab1a800c1c6cd --- /dev/null +++ b/app/src/main/java/com/chaychan/powerfulviewlibrary/MainActivity.java @@ -0,0 +1,26 @@ +package com.chaychan.powerfulviewlibrary; + +import android.os.Bundle; +import android.support.v7.app.AppCompatActivity; +import android.view.View; + +import com.chaychan.viewlib.PowerfulEditText; + +public class MainActivity extends AppCompatActivity { + + private PowerfulEditText petUsername; + private PowerfulEditText petPwd; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + petUsername = (PowerfulEditText) findViewById(R.id.pet_username); + petPwd = (PowerfulEditText) findViewById(R.id.pet_pwd); + } + + public void submit(View view){ + String str = petUsername.getText().toString().trim(); + } +} diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000000000000000000000000000000000000..489f6a1c4958e500d2650f726e35722b907d5c68 --- /dev/null +++ b/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,35 @@ + + + + + + + +