diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd45b12 --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +*.iml +.gradle +/local.properties +/.idea/caches/build_file_checksums.ser +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +.DS_Store +/build +/captures +.externalNativeBuild diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..30aa626 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..76a4349 --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..3801c33 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/数据库/voice/.idea/runConfigurations.xml b/.idea/runConfigurations.xml similarity index 100% rename from 数据库/voice/.idea/runConfigurations.xml rename to .idea/runConfigurations.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/FunctionRealize/Record/.gitignore b/FunctionRealize/Record/.gitignore new file mode 100644 index 0000000..fd45b12 --- /dev/null +++ b/FunctionRealize/Record/.gitignore @@ -0,0 +1,11 @@ +*.iml +.gradle +/local.properties +/.idea/caches/build_file_checksums.ser +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +.DS_Store +/build +/captures +.externalNativeBuild diff --git a/FunctionRealize/Record/.idea/codeStyles/Project.xml b/FunctionRealize/Record/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..30aa626 --- /dev/null +++ b/FunctionRealize/Record/.idea/codeStyles/Project.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/数据库/voice/.idea/gradle.xml b/FunctionRealize/Record/.idea/gradle.xml similarity index 100% rename from 数据库/voice/.idea/gradle.xml rename to FunctionRealize/Record/.idea/gradle.xml diff --git a/数据库/voice/.idea/misc.xml b/FunctionRealize/Record/.idea/misc.xml similarity index 96% rename from 数据库/voice/.idea/misc.xml rename to FunctionRealize/Record/.idea/misc.xml index e0d5b93..b0c7b20 100644 --- a/数据库/voice/.idea/misc.xml +++ b/FunctionRealize/Record/.idea/misc.xml @@ -29,7 +29,7 @@ - + diff --git a/FunctionRealize/Record/.idea/runConfigurations.xml b/FunctionRealize/Record/.idea/runConfigurations.xml new file mode 100644 index 0000000..7f68460 --- /dev/null +++ b/FunctionRealize/Record/.idea/runConfigurations.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/数据库/voice/app/.gitignore b/FunctionRealize/Record/app/.gitignore similarity index 100% rename from 数据库/voice/app/.gitignore rename to FunctionRealize/Record/app/.gitignore diff --git a/FunctionRealize/Record/app/build.gradle b/FunctionRealize/Record/app/build.gradle new file mode 100644 index 0000000..f736938 --- /dev/null +++ b/FunctionRealize/Record/app/build.gradle @@ -0,0 +1,29 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 28 + defaultConfig { + applicationId "com.record" + minSdkVersion 20 + targetSdkVersion 28 + versionCode 1 + versionName "1.0" + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation 'com.android.support:appcompat-v7:28.0.0' + implementation 'com.android.support.constraint:constraint-layout:1.1.3' + implementation 'com.android.support:design:28.0.0' + testImplementation 'junit:junit:4.12' + androidTestImplementation 'com.android.support.test:runner:1.0.2' + androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' +} diff --git a/数据库/voice/app/proguard-rules.pro b/FunctionRealize/Record/app/proguard-rules.pro similarity index 100% rename from 数据库/voice/app/proguard-rules.pro rename to FunctionRealize/Record/app/proguard-rules.pro diff --git a/FunctionRealize/Record/app/src/androidTest/java/com/record/ExampleInstrumentedTest.java b/FunctionRealize/Record/app/src/androidTest/java/com/record/ExampleInstrumentedTest.java new file mode 100644 index 0000000..7f787aa --- /dev/null +++ b/FunctionRealize/Record/app/src/androidTest/java/com/record/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package com.record; + +import android.content.Context; +import android.support.test.InstrumentationRegistry; +import android.support.test.runner.AndroidJUnit4; + +import org.junit.Test; +import org.junit.runner.RunWith; + +import static org.junit.Assert.*; + +/** + * Instrumented test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getTargetContext(); + + assertEquals("com.record", appContext.getPackageName()); + } +} diff --git a/FunctionRealize/Record/app/src/main/AndroidManifest.xml b/FunctionRealize/Record/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..13f15fe --- /dev/null +++ b/FunctionRealize/Record/app/src/main/AndroidManifest.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/FunctionRealize/Record/app/src/main/java/com/record/MainActivity.java b/FunctionRealize/Record/app/src/main/java/com/record/MainActivity.java new file mode 100644 index 0000000..83803d5 --- /dev/null +++ b/FunctionRealize/Record/app/src/main/java/com/record/MainActivity.java @@ -0,0 +1,27 @@ +package com.record; + +import android.annotation.TargetApi; +import android.os.Build; +import android.os.Bundle; +import android.os.Handler; +import android.os.Message; +import android.support.annotation.RequiresApi; +import android.support.design.widget.FloatingActionButton; +import android.support.design.widget.Snackbar; +import android.support.v7.app.AppCompatActivity; +import android.support.v7.widget.Toolbar; +import android.view.View; +import android.media.MediaPlayer; +import android.media.MediaRecorder; +import android.os.Environment; +import android.util.Log; +import android.view.MotionEvent; +import android.view.Window; +import android.widget.Button; +import android.widget.Toast; +import android.widget.ListView; +import java.io.File; +import java.util.concurrent.ExecutorService; + +public class MainActivity extends AppCompatActivity { +} \ No newline at end of file diff --git a/FunctionRealize/Record/app/src/main/java/com/record/MyButtonListener.java b/FunctionRealize/Record/app/src/main/java/com/record/MyButtonListener.java new file mode 100644 index 0000000..ee1bc6a --- /dev/null +++ b/FunctionRealize/Record/app/src/main/java/com/record/MyButtonListener.java @@ -0,0 +1,16 @@ +package com.record; + +import android.view.MotionEvent; +import android.view.View; + class MyButtonListener implements View.OnLongClickListener,View.OnTouchListener{ + @Override + public boolean onTouch(View v, MotionEvent event) { + return false; + } + + @Override + public boolean onLongClick(View v) { + return true; + } + } + diff --git a/数据库/voice/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/FunctionRealize/Record/app/src/main/res/drawable-v24/ic_launcher_foreground.xml similarity index 100% rename from 数据库/voice/app/src/main/res/drawable-v24/ic_launcher_foreground.xml rename to FunctionRealize/Record/app/src/main/res/drawable-v24/ic_launcher_foreground.xml diff --git a/FunctionRealize/Record/app/src/main/res/drawable/ic_launcher_background.xml b/FunctionRealize/Record/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..2408e30 --- /dev/null +++ b/FunctionRealize/Record/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/FunctionRealize/Record/app/src/main/res/layout/activity_main.xml b/FunctionRealize/Record/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..12f116e --- /dev/null +++ b/FunctionRealize/Record/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + +