Permalink
Browse files

修复目录结构

  • Loading branch information...
yuyu lao
yuyu lao committed Feb 19, 2016
1 parent dd99f8b commit 8efe7d9f751868cf0d7df9b0f732aa5f0b69f024
Showing with 890 additions and 44 deletions.
  1. +11 −2 .gitignore
  2. +1 −0 .idea/.name
  3. +22 −0 .idea/compiler.xml
  4. +3 −0 .idea/copyright/profiles_settings.xml
  5. +6 −0 .idea/encodings.xml
  6. +26 −0 .idea/gradle.xml
  7. +53 −0 .idea/misc.xml
  8. +10 −0 .idea/modules.xml
  9. +12 −0 .idea/runConfigurations.xml
  10. +6 −0 .idea/vcs.xml
  11. +1 −0 app/.gitignore
  12. +28 −0 app/build.gradle
  13. 0 { → app}/proguard-rules.pro
  14. +13 −0 app/src/androidTest/java/com/example/arial/downloaddemo/ApplicationTest.java
  15. +25 −0 app/src/main/AndroidManifest.xml
  16. +166 −0 app/src/main/java/com/example/arial/downloaddemo/MainActivity.java
  17. +35 −0 app/src/main/res/layout/activity_main.xml
  18. +65 −0 app/src/main/res/layout/content_main.xml
  19. +9 −0 app/src/main/res/menu/menu_main.xml
  20. BIN app/src/main/res/mipmap-hdpi/ic_launcher.png
  21. BIN app/src/main/res/mipmap-mdpi/ic_launcher.png
  22. BIN app/src/main/res/mipmap-xhdpi/ic_launcher.png
  23. BIN app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  24. BIN app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  25. +8 −0 app/src/main/res/values-v21/styles.xml
  26. +6 −0 app/src/main/res/values-w820dp/dimens.xml
  27. +6 −0 app/src/main/res/values/colors.xml
  28. +6 −0 app/src/main/res/values/dimens.xml
  29. +4 −0 app/src/main/res/values/strings.xml
  30. +17 −0 app/src/main/res/values/styles.xml
  31. +15 −0 app/src/test/java/com/example/arial/downloaddemo/ExampleUnitTest.java
  32. +15 −42 build.gradle
  33. +3 −0 downloadutil/.gitignore
  34. +26 −0 downloadutil/build.gradle
  35. 0 { → downloadutil}/jcenter.gradle
  36. +17 −0 downloadutil/proguard-rules.pro
  37. 0 { → downloadutil}/src/androidTest/java/com/arialyy/downloadutil/ApplicationTest.java
  38. 0 { → downloadutil}/src/main/AndroidManifest.xml
  39. 0 { → downloadutil}/src/main/java/com/arialyy/downloadutil/DownLoadUtil.java
  40. 0 { → downloadutil}/src/main/java/com/arialyy/downloadutil/DownloadListener.java
  41. 0 { → downloadutil}/src/main/java/com/arialyy/downloadutil/Util.java
  42. 0 { → downloadutil}/src/main/java/com/arialyy/downloadutil/inf/IDownloadListener.java
  43. 0 { → downloadutil}/src/main/res/values/strings.xml
  44. 0 { → downloadutil}/src/test/java/com/arialyy/downloadutil/ExampleUnitTest.java
  45. +18 −0 gradle.properties
  46. BIN gradle/wrapper/gradle-wrapper.jar
  47. +6 −0 gradle/wrapper/gradle-wrapper.properties
  48. +160 −0 gradlew
  49. +90 −0 gradlew.bat
  50. +1 −0 settings.gradle
View
@@ -1,3 +1,12 @@
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
gradle.properties
downloadutil.iml
/captures
/app/build
/downloadutil/build
/downloadutil/gradle.properties
View
@@ -0,0 +1 @@
DownloadDemo
View
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<resourceExtensions />
<wildcardResourcePatterns>
<entry name="!?*.java" />
<entry name="!?*.form" />
<entry name="!?*.class" />
<entry name="!?*.groovy" />
<entry name="!?*.scala" />
<entry name="!?*.flex" />
<entry name="!?*.kt" />
<entry name="!?*.clj" />
<entry name="!?*.aj" />
</wildcardResourcePatterns>
<annotationProcessing>
<profile default="true" name="Default" enabled="false">
<processorPath useClasspath="true" />
</profile>
</annotationProcessing>
</component>
</project>
@@ -0,0 +1,3 @@
<component name="CopyrightManager">
<settings default="" />
</component>
View
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="PROJECT" charset="UTF-8" />
</component>
</project>
View
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="distributionType" value="LOCAL" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleHome" value="D:\Android Studio\gradle\gradle-2.10" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
<option value="$PROJECT_DIR$/downloadutil" />
</set>
</option>
<option name="myModules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
<option value="$PROJECT_DIR$/downloadutil" />
</set>
</option>
</GradleProjectSettings>
</option>
</component>
</project>
View
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EntryPointsManager">
<entry_points version="2.0" />
</component>
<component name="MavenImportPreferences">
<option name="generalSettings">
<MavenGeneralSettings>
<option name="mavenHome" value="Bundled (Maven 3)" />
</MavenGeneralSettings>
</option>
</component>
<component name="NullableNotNullManager">
<option name="myDefaultNullable" value="android.support.annotation.Nullable" />
<option name="myDefaultNotNull" value="android.support.annotation.NonNull" />
<option name="myNullables">
<value>
<list size="4">
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.Nullable" />
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nullable" />
<item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" />
<item index="3" class="java.lang.String" itemvalue="android.support.annotation.Nullable" />
</list>
</value>
</option>
<option name="myNotNulls">
<value>
<list size="4">
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.NotNull" />
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nonnull" />
<item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.NonNull" />
<item index="3" class="java.lang.String" itemvalue="android.support.annotation.NonNull" />
</list>
</value>
</option>
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
<OptionsSetting value="true" id="Checkout" />
<OptionsSetting value="true" id="Update" />
<OptionsSetting value="true" id="Status" />
<OptionsSetting value="true" id="Edit" />
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>
View
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/DownloadDemo.iml" filepath="$PROJECT_DIR$/DownloadDemo.iml" />
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
<module fileurl="file://$PROJECT_DIR$/downloadutil/downloadutil.iml" filepath="$PROJECT_DIR$/downloadutil/downloadutil.iml" />
</modules>
</component>
</project>
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
</set>
</option>
</component>
</project>
View
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
View
@@ -0,0 +1 @@
/build
View
@@ -0,0 +1,28 @@
apply plugin: 'com.android.application'
android {
compileSdkVersion 'Google Inc.:Google APIs:23'
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.arial.downloaddemo"
minSdkVersion 15
targetSdkVersion 23
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:23.+'
compile 'com.android.support:design:23.+'
compile project(':downloadutil')
}
File renamed without changes.
@@ -0,0 +1,13 @@
package com.example.arial.downloaddemo;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
}
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.arial.downloaddemo" >
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Oops, something went wrong.

0 comments on commit 8efe7d9

Please sign in to comment.