├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── styles.xml │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ └── layout │ │ │ │ ├── activity_main.xml │ │ │ │ └── content_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── name │ │ │ └── quanke │ │ │ └── app │ │ │ └── libs │ │ │ └── emptylayoutsimple │ │ │ └── MainActivity.java │ ├── test │ │ └── java │ │ │ └── name │ │ │ └── quanke │ │ │ └── app │ │ │ └── libs │ │ │ └── emptylayoutsimple │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── name │ │ └── quanke │ │ └── app │ │ └── libs │ │ └── emptylayoutsimple │ │ └── ApplicationTest.java ├── proguard-rules.pro ├── build.gradle └── app.iml ├── emptylayout ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable-hdpi │ │ │ │ ├── ic_empty.png │ │ │ │ ├── ic_error.png │ │ │ │ ├── ic_loading.png │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-mdpi │ │ │ │ ├── ic_empty.png │ │ │ │ ├── ic_error.png │ │ │ │ ├── ic_loading.png │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-xhdpi │ │ │ │ ├── ic_empty.png │ │ │ │ ├── ic_error.png │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_loading.png │ │ │ ├── values │ │ │ │ └── strings.xml │ │ │ └── layout │ │ │ │ ├── view_empty.xml │ │ │ │ ├── view_error.xml │ │ │ │ └── view_loading.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── name │ │ │ └── quanke │ │ │ └── app │ │ │ └── libs │ │ │ └── emptylayout │ │ │ └── EmptyLayout.java │ ├── test │ │ └── java │ │ │ └── name │ │ │ └── quanke │ │ │ └── app │ │ │ └── libs │ │ │ └── emptylayout │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── name │ │ └── quanke │ │ └── app │ │ └── libs │ │ └── emptylayout │ │ └── ApplicationTest.java ├── proguard-rules.pro ├── build.gradle ├── gradle.properties ├── bintray.gradle └── emptylayout.iml ├── settings.gradle ├── screenshots ├── data.png ├── empty.png ├── error.png └── loading.png ├── aar ├── emptylayout-debug.aar └── emptylayout-release.aar ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── local.properties ├── .gitignore ├── gradle.properties ├── EmptyLayout.iml ├── EmptyLayoutSimple.iml ├── gradlew.bat ├── README.md ├── gradlew └── LICENSE /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /emptylayout/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':emptylayout' 2 | -------------------------------------------------------------------------------- /screenshots/data.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/screenshots/data.png -------------------------------------------------------------------------------- /screenshots/empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/screenshots/empty.png -------------------------------------------------------------------------------- /screenshots/error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/screenshots/error.png -------------------------------------------------------------------------------- /screenshots/loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/screenshots/loading.png -------------------------------------------------------------------------------- /aar/emptylayout-debug.aar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/aar/emptylayout-debug.aar -------------------------------------------------------------------------------- /aar/emptylayout-release.aar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/aar/emptylayout-release.aar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /emptylayout/src/main/res/drawable-hdpi/ic_empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/emptylayout/src/main/res/drawable-hdpi/ic_empty.png -------------------------------------------------------------------------------- /emptylayout/src/main/res/drawable-hdpi/ic_error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/emptylayout/src/main/res/drawable-hdpi/ic_error.png -------------------------------------------------------------------------------- /emptylayout/src/main/res/drawable-mdpi/ic_empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/emptylayout/src/main/res/drawable-mdpi/ic_empty.png -------------------------------------------------------------------------------- /emptylayout/src/main/res/drawable-mdpi/ic_error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/emptylayout/src/main/res/drawable-mdpi/ic_error.png -------------------------------------------------------------------------------- /emptylayout/src/main/res/drawable-hdpi/ic_loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/emptylayout/src/main/res/drawable-hdpi/ic_loading.png -------------------------------------------------------------------------------- /emptylayout/src/main/res/drawable-mdpi/ic_loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/emptylayout/src/main/res/drawable-mdpi/ic_loading.png -------------------------------------------------------------------------------- /emptylayout/src/main/res/drawable-xhdpi/ic_empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/emptylayout/src/main/res/drawable-xhdpi/ic_empty.png -------------------------------------------------------------------------------- /emptylayout/src/main/res/drawable-xhdpi/ic_error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/emptylayout/src/main/res/drawable-xhdpi/ic_error.png -------------------------------------------------------------------------------- /emptylayout/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/emptylayout/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /emptylayout/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/emptylayout/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /emptylayout/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/emptylayout/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /emptylayout/src/main/res/drawable-xhdpi/ic_loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quanke/AndroidEmptyLayout/HEAD/emptylayout/src/main/res/drawable-xhdpi/ic_loading.png -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | EmptyLayoutSimple 3 | Settings 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed May 04 15:11:25 CST 2016 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-2.10-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 16dp 6 | 7 | -------------------------------------------------------------------------------- /emptylayout/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | > 2 | 3 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /emptylayout/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | EmptyLayout 3 | 啥也没有 4 | 请等一等啦ლ(╹◡╹ლ) 5 | 哎呀!发生了一些错误 6 | 7 | 重试 8 | 取消 9 | 重试 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /emptylayout/src/test/java/name/quanke/app/libs/emptylayout/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package name.quanke.app.libs.emptylayout; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /app/src/test/java/name/quanke/app/libs/emptylayoutsimple/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package name.quanke.app.libs.emptylayoutsimple; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /emptylayout/src/androidTest/java/name/quanke/app/libs/emptylayout/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package name.quanke.app.libs.emptylayout; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/androidTest/java/name/quanke/app/libs/emptylayoutsimple/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package name.quanke.app.libs.emptylayoutsimple; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /local.properties: -------------------------------------------------------------------------------- 1 | ## This file is automatically generated by Android Studio. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked into Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | # 7 | # Location of the SDK. This is only used by Gradle. 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | #Fri Dec 11 16:57:33 CST 2015 11 | sdk.dir=/home/quanke/soft/android-sdk-linux 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | 15 | # Gradle files 16 | .gradle/ 17 | build/ 18 | 19 | # Local configuration file (sdk path, etc) 20 | local.properties 21 | 22 | # Proguard folder generated by Eclipse 23 | proguard/ 24 | 25 | # Log Files 26 | *.log 27 | 28 | # Android Studio Navigation editor temp files 29 | .navigation/ 30 | 31 | # Android Studio captures folder 32 | captures/ 33 | /.idea 34 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in D:\sdk\android-sdk-windows/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /emptylayout/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in D:\sdk\android-sdk-windows/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 |