├── settings.gradle ├── captures ├── layout_default.png └── layout_waitview.png ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── sample ├── src │ └── main │ │ ├── res │ │ ├── drawable-xxhdpi │ │ │ ├── tx_image.png │ │ │ ├── ic_launcher.png │ │ │ ├── icon_history.png │ │ │ ├── grzy_icon_mark.png │ │ │ ├── grzy_icon_night.png │ │ │ ├── grzy_icon_rate.png │ │ │ ├── icon_edit_info.png │ │ │ ├── icon_share_app.png │ │ │ ├── grzy_icon_feedback.png │ │ │ ├── grzy_icon_like_normal.png │ │ │ ├── icon_mine_book_gray.png │ │ │ ├── icon_mine_topic_gray.png │ │ │ ├── grzy_icon_wallet_normal.png │ │ │ ├── grzy_icon_article_public.png │ │ │ └── grzy_icon_article_secret.png │ │ ├── values │ │ │ ├── dimens.xml │ │ │ ├── styles.xml │ │ │ ├── colors.xml │ │ │ └── strings.xml │ │ ├── drawable │ │ │ ├── shap_line.xml │ │ │ ├── selector_press_bg.xml │ │ │ └── selector_press_bg_dark.xml │ │ ├── color │ │ │ └── selector_color_text1_night.xml │ │ └── layout │ │ │ └── activity_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── cn │ │ └── imkarl │ │ └── waitview │ │ └── sample │ │ └── MainActivity.java ├── build.gradle └── proguard-rules.pro ├── library ├── src │ └── main │ │ ├── res │ │ └── values │ │ │ └── strings.xml │ │ ├── java │ │ └── cn │ │ │ └── imkarl │ │ │ └── waitview │ │ │ ├── OnWaitViewFilter.java │ │ │ ├── FilterType.java │ │ │ ├── SimpleOnWaitViewFilter.java │ │ │ ├── WaitView.java │ │ │ └── WaitViewController.java │ │ └── AndroidManifest.xml ├── build.gradle └── proguard-rules.pro ├── .gitignore ├── gradle.properties ├── README.md ├── gradlew.bat ├── gradlew └── LICENSE /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':sample', ':library' 2 | -------------------------------------------------------------------------------- /captures/layout_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imkarl/WaitView/HEAD/captures/layout_default.png -------------------------------------------------------------------------------- /captures/layout_waitview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imkarl/WaitView/HEAD/captures/layout_waitview.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imkarl/WaitView/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xxhdpi/tx_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imkarl/WaitView/HEAD/sample/src/main/res/drawable-xxhdpi/tx_image.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imkarl/WaitView/HEAD/sample/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xxhdpi/icon_history.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imkarl/WaitView/HEAD/sample/src/main/res/drawable-xxhdpi/icon_history.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xxhdpi/grzy_icon_mark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imkarl/WaitView/HEAD/sample/src/main/res/drawable-xxhdpi/grzy_icon_mark.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xxhdpi/grzy_icon_night.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imkarl/WaitView/HEAD/sample/src/main/res/drawable-xxhdpi/grzy_icon_night.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xxhdpi/grzy_icon_rate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imkarl/WaitView/HEAD/sample/src/main/res/drawable-xxhdpi/grzy_icon_rate.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xxhdpi/icon_edit_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imkarl/WaitView/HEAD/sample/src/main/res/drawable-xxhdpi/icon_edit_info.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xxhdpi/icon_share_app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imkarl/WaitView/HEAD/sample/src/main/res/drawable-xxhdpi/icon_share_app.png -------------------------------------------------------------------------------- /sample/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 45.0dip 4 | -------------------------------------------------------------------------------- /library/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | WaitView 3 | 4 | 5 | -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xxhdpi/grzy_icon_feedback.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imkarl/WaitView/HEAD/sample/src/main/res/drawable-xxhdpi/grzy_icon_feedback.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xxhdpi/grzy_icon_like_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imkarl/WaitView/HEAD/sample/src/main/res/drawable-xxhdpi/grzy_icon_like_normal.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xxhdpi/icon_mine_book_gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imkarl/WaitView/HEAD/sample/src/main/res/drawable-xxhdpi/icon_mine_book_gray.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xxhdpi/icon_mine_topic_gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imkarl/WaitView/HEAD/sample/src/main/res/drawable-xxhdpi/icon_mine_topic_gray.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xxhdpi/grzy_icon_wallet_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imkarl/WaitView/HEAD/sample/src/main/res/drawable-xxhdpi/grzy_icon_wallet_normal.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xxhdpi/grzy_icon_article_public.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imkarl/WaitView/HEAD/sample/src/main/res/drawable-xxhdpi/grzy_icon_article_public.png -------------------------------------------------------------------------------- /sample/src/main/res/drawable-xxhdpi/grzy_icon_article_secret.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/imkarl/WaitView/HEAD/sample/src/main/res/drawable-xxhdpi/grzy_icon_article_secret.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed May 03 11:41:27 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-3.3-all.zip 7 | -------------------------------------------------------------------------------- /library/src/main/java/cn/imkarl/waitview/OnWaitViewFilter.java: -------------------------------------------------------------------------------- 1 | package cn.imkarl.waitview; 2 | 3 | import android.view.View; 4 | 5 | /** 6 | * WaitView过滤器 7 | * @version imkarl 2017-05 8 | */ 9 | public interface OnWaitViewFilter { 10 | FilterType onFilter(View view); 11 | } 12 | -------------------------------------------------------------------------------- /sample/src/main/res/drawable/shap_line.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /library/src/main/java/cn/imkarl/waitview/FilterType.java: -------------------------------------------------------------------------------- 1 | package cn.imkarl.waitview; 2 | 3 | /** 4 | * 过滤类型 5 | * @version imkarl 2017-05 6 | */ 7 | public enum FilterType { 8 | /** 显示等待状态 */ 9 | WaitView, 10 | /** 查找子View */ 11 | Childs, 12 | /** 忽略 */ 13 | Ignored 14 | } 15 | -------------------------------------------------------------------------------- /sample/src/main/res/color/selector_color_text1_night.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /sample/src/main/res/drawable/selector_press_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /sample/src/main/res/drawable/selector_press_bg_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /library/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /sample/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /library/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 25 5 | buildToolsVersion "25.0.2" 6 | 7 | defaultConfig { 8 | minSdkVersion 14 9 | targetSdkVersion 25 10 | versionCode 1 11 | versionName "1.0" 12 | 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | provided 'com.android.support:support-annotations:25.3.1' 24 | } -------------------------------------------------------------------------------- /sample/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | #ffcfcfcf 8 | #ffffffff 9 | #fff4f4f4 10 | #ff919191 11 | #ff666666 12 | #ffd5d5d5 13 | #ff2f2f2f 14 | 15 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the ART/Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | out/ 15 | 16 | # Gradle files 17 | .gradle/ 18 | build/ 19 | 20 | # Local configuration file (sdk path, etc) 21 | local.properties 22 | 23 | # Proguard folder generated by Eclipse 24 | proguard/ 25 | 26 | # Log Files 27 | *.log 28 | 29 | # Android Studio Navigation editor temp files 30 | .navigation/ 31 | 32 | # Intellij 33 | *.iml 34 | .idea/ 35 | 36 | # Keystore files 37 | *.jks 38 | 39 | .DS_Store 40 | .externalNativeBuild 41 | -------------------------------------------------------------------------------- /sample/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 25 5 | buildToolsVersion "25.0.2" 6 | defaultConfig { 7 | applicationId "cn.imkarl.waitview.sample" 8 | minSdkVersion 14 9 | targetSdkVersion 25 10 | versionCode 1 11 | versionName "1.0" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | compile 'com.android.support:appcompat-v7:25.3.1' 23 | compile 'com.makeramen:roundedimageview:2.3.0' 24 | compile project(':library') 25 | } 26 | -------------------------------------------------------------------------------- /sample/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /sample/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | WaitView Sample 3 | 登录 / 注册 4 | 公开文章 5 | 私密文章 6 | 收藏的文章 7 | 喜欢的文章 8 | 我的专题 9 | 我的文集 10 | 我的钱包 11 | 夜间模式 12 | 还没有阅读记录 13 | 分享简书 14 | 意见反馈 15 | 给简书评分 16 | 浏览记录 17 | 18 | -------------------------------------------------------------------------------- /library/src/main/java/cn/imkarl/waitview/SimpleOnWaitViewFilter.java: -------------------------------------------------------------------------------- 1 | package cn.imkarl.waitview; 2 | 3 | import android.view.View; 4 | import android.view.ViewGroup; 5 | 6 | /** 7 | * WaitView过滤器 8 | * @version imkarl 2017-05 9 | */ 10 | public class SimpleOnWaitViewFilter implements OnWaitViewFilter { 11 | public FilterType onFilter(View view) { 12 | if (view == null) { 13 | return FilterType.Ignored; 14 | } 15 | // 过滤不可见的 16 | if (view.getVisibility() != View.VISIBLE) { 17 | return FilterType.Ignored; 18 | } 19 | // 过滤android.view.View 20 | if (View.class.equals(view.getClass())) { 21 | return FilterType.Ignored; 22 | } 23 | 24 | if (view instanceof ViewGroup) { 25 | return FilterType.Childs; 26 | } else { 27 | return FilterType.WaitView; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /library/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 /Users/imkarl/Library/Android/sdk/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 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -------------------------------------------------------------------------------- /sample/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 /Users/imkarl/Library/Android/sdk/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 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -------------------------------------------------------------------------------- /sample/src/main/java/cn/imkarl/waitview/sample/MainActivity.java: -------------------------------------------------------------------------------- 1 | package cn.imkarl.waitview.sample; 2 | 3 | import android.support.v7.app.AppCompatActivity; 4 | import android.os.Bundle; 5 | import android.view.Gravity; 6 | import android.view.View; 7 | import android.view.ViewGroup; 8 | import android.widget.Button; 9 | import android.widget.FrameLayout; 10 | 11 | import cn.imkarl.waitview.WaitViewController; 12 | 13 | public class MainActivity extends AppCompatActivity implements View.OnClickListener { 14 | 15 | private View mRootView; 16 | private boolean mShowWaitView = false; 17 | 18 | @Override 19 | protected void onCreate(Bundle savedInstanceState) { 20 | super.onCreate(savedInstanceState); 21 | setContentView(R.layout.activity_main); 22 | 23 | mRootView = findViewById(R.id.layout_root); 24 | 25 | Button toogleButton = new Button(this); 26 | toogleButton.setText("切换"); 27 | toogleButton.setOnClickListener(this); 28 | FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, 29 | ViewGroup.LayoutParams.WRAP_CONTENT, Gravity.RIGHT); 30 | addContentView(toogleButton, params); 31 | } 32 | 33 | @Override 34 | public void onClick(View v) { 35 | if (mShowWaitView) { 36 | // 移除 37 | WaitViewController.from(mRootView).removeChilds(); 38 | } else { 39 | // 显示 40 | WaitViewController.from(mRootView).renderChilds(); 41 | } 42 | mShowWaitView = !mShowWaitView; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WaitView 2 | 显示等待加载状态的View 3 | 4 | [![](https://jitpack.io/v/imkarl/WaitView.svg)](https://jitpack.io/#imkarl/WaitView) 5 | 6 | 7 | # Introduce 8 | 9 | - 第二张图为`等待加载的状态` 10 | 11 | 默认状态 . 等待加载的状态 12 | 13 | 14 | # Features 15 | 16 | - `简单高效` 一行代码搞定所有控件的状态切换、恢复 17 | - `兼容性强` 支持所有系统控件、自定义控件 18 | - `可定制性` 自定义渲染规则,按需配置 19 | 20 | 21 | # Usage 22 | 23 | **Step 1.** Add the JitPack repository to your build file 24 | ``` 25 | allprojects { 26 | repositories { 27 | ... 28 | maven { url 'https://jitpack.io' } 29 | } 30 | } 31 | ``` 32 | 33 | **Step 2.** Add the dependency 34 | ``` 35 | compile 'com.github.ImKarl:WaitView:{latestVersion}' 36 | ``` 37 | 38 | 39 | # Sample 40 | 41 | - 渲染 42 | 43 | ``` 44 | 单个View 45 | WaitViewController.from(mRootView).render(); 46 | 47 | 所有子View 48 | WaitViewController.from(mRootView).renderChilds(); 49 | ``` 50 | 51 | 52 | - 移除 53 | 54 | ``` 55 | 单个View 56 | WaitViewController.from(mRootView).remove(); 57 | 58 | 所有子View 59 | WaitViewController.from(mRootView).removeChilds(); 60 | ``` 61 | 62 | 63 | - 额外的可配置项 64 | 65 | ``` 66 | WaitViewController controller = WaitViewController.from(mRootView); 67 | 68 | 颜色:@ColorInt 69 | controller.color(color); 70 | 71 | 透明度:@IntRange(from=0, to=255) 72 | controller.alpha(alpha); 73 | 74 | 圆角半径:@Dimension 75 | controller.radius(radius); 76 | 77 | 绘制区域:如 new Rect(0, 0, view.getWidth(), view.getHeight()) 78 | controller.drawRect(rect); 79 | controller.drawRect(width, height); 80 | 81 | 过滤器:如 new SimpleOnWaitViewFilter() 82 | controller.filter(filter); 83 | ``` 84 | 85 | 86 | - 更详细的案例 87 | 88 | 请查看 [sample](https://github.com/ImKarl/WaitView/blob/master/sample/src/main/java/cn/imkarl/waitview/sample/MainActivity.java) 89 | -------------------------------------------------------------------------------- /library/src/main/java/cn/imkarl/waitview/WaitView.java: -------------------------------------------------------------------------------- 1 | package cn.imkarl.waitview; 2 | 3 | import android.graphics.Canvas; 4 | import android.graphics.Paint; 5 | import android.graphics.RectF; 6 | import android.support.annotation.ColorInt; 7 | import android.support.annotation.Dimension; 8 | import android.support.annotation.IntRange; 9 | import android.support.annotation.NonNull; 10 | import android.view.View; 11 | 12 | /** 13 | * 显示等待状态的View 14 | * @version imkarl 2017-05 15 | */ 16 | class WaitView extends View { 17 | 18 | @ColorInt private int mColor; 19 | @Dimension private int mRadius; 20 | @IntRange(from=0, to=255) private int mAlpha; 21 | private RectF mDrawRect; 22 | 23 | private WaitViewController mController; 24 | private Paint mPaint; 25 | 26 | public WaitView(@NonNull WaitViewController controller) { 27 | super(controller.getContext()); 28 | mController = controller; 29 | mPaint = new Paint(); 30 | mPaint.setAntiAlias(true); 31 | } 32 | 33 | @Override 34 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { 35 | super.setMeasuredDimension((int)mDrawRect.width(), (int)mDrawRect.height()); 36 | } 37 | 38 | @Override 39 | protected void onDraw(Canvas canvas) { 40 | super.onDraw(canvas); 41 | 42 | mPaint.setColor(mColor); 43 | mPaint.setAlpha(mAlpha); 44 | canvas.drawRoundRect(mDrawRect, mRadius, mRadius, mPaint); 45 | } 46 | 47 | WaitViewController getController() { 48 | return mController; 49 | } 50 | 51 | 52 | public WaitView color(@ColorInt int color) { 53 | mColor = color; 54 | return this; 55 | } 56 | public WaitView radius(@Dimension int radius) { 57 | mRadius = radius; 58 | return this; 59 | } 60 | public WaitView alpha(@IntRange(from=0, to=255) int alpha) { 61 | mAlpha = alpha; 62 | return this; 63 | } 64 | public WaitView drawRect(RectF drawRect) { 65 | mDrawRect = drawRect; 66 | return this; 67 | } 68 | 69 | } 70 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # Attempt to set APP_HOME 46 | # Resolve links: $0 may be a link 47 | PRG="$0" 48 | # Need this for relative symlinks. 49 | while [ -h "$PRG" ] ; do 50 | ls=`ls -ld "$PRG"` 51 | link=`expr "$ls" : '.*-> \(.*\)$'` 52 | if expr "$link" : '/.*' > /dev/null; then 53 | PRG="$link" 54 | else 55 | PRG=`dirname "$PRG"`"/$link" 56 | fi 57 | done 58 | SAVED="`pwd`" 59 | cd "`dirname \"$PRG\"`/" >/dev/null 60 | APP_HOME="`pwd -P`" 61 | cd "$SAVED" >/dev/null 62 | 63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 64 | 65 | # Determine the Java command to use to start the JVM. 66 | if [ -n "$JAVA_HOME" ] ; then 67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 68 | # IBM's JDK on AIX uses strange locations for the executables 69 | JAVACMD="$JAVA_HOME/jre/sh/java" 70 | else 71 | JAVACMD="$JAVA_HOME/bin/java" 72 | fi 73 | if [ ! -x "$JAVACMD" ] ; then 74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 75 | 76 | Please set the JAVA_HOME variable in your environment to match the 77 | location of your Java installation." 78 | fi 79 | else 80 | JAVACMD="java" 81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 82 | 83 | Please set the JAVA_HOME variable in your environment to match the 84 | location of your Java installation." 85 | fi 86 | 87 | # Increase the maximum file descriptors if we can. 88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 89 | MAX_FD_LIMIT=`ulimit -H -n` 90 | if [ $? -eq 0 ] ; then 91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 92 | MAX_FD="$MAX_FD_LIMIT" 93 | fi 94 | ulimit -n $MAX_FD 95 | if [ $? -ne 0 ] ; then 96 | warn "Could not set maximum file descriptor limit: $MAX_FD" 97 | fi 98 | else 99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 100 | fi 101 | fi 102 | 103 | # For Darwin, add options to specify how the application appears in the dock 104 | if $darwin; then 105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 106 | fi 107 | 108 | # For Cygwin, switch paths to Windows format before running java 109 | if $cygwin ; then 110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 112 | JAVACMD=`cygpath --unix "$JAVACMD"` 113 | 114 | # We build the pattern for arguments to be converted via cygpath 115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 116 | SEP="" 117 | for dir in $ROOTDIRSRAW ; do 118 | ROOTDIRS="$ROOTDIRS$SEP$dir" 119 | SEP="|" 120 | done 121 | OURCYGPATTERN="(^($ROOTDIRS))" 122 | # Add a user-defined pattern to the cygpath arguments 123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 125 | fi 126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 127 | i=0 128 | for arg in "$@" ; do 129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 131 | 132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 134 | else 135 | eval `echo args$i`="\"$arg\"" 136 | fi 137 | i=$((i+1)) 138 | done 139 | case $i in 140 | (0) set -- ;; 141 | (1) set -- "$args0" ;; 142 | (2) set -- "$args0" "$args1" ;; 143 | (3) set -- "$args0" "$args1" "$args2" ;; 144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 150 | esac 151 | fi 152 | 153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 154 | function splitJvmOpts() { 155 | JVM_OPTS=("$@") 156 | } 157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 159 | 160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 161 | -------------------------------------------------------------------------------- /library/src/main/java/cn/imkarl/waitview/WaitViewController.java: -------------------------------------------------------------------------------- 1 | package cn.imkarl.waitview; 2 | 3 | import android.content.Context; 4 | import android.graphics.Color; 5 | import android.graphics.RectF; 6 | import android.support.annotation.ColorInt; 7 | import android.support.annotation.Dimension; 8 | import android.support.annotation.IntRange; 9 | import android.util.DisplayMetrics; 10 | import android.view.View; 11 | import android.view.ViewGroup; 12 | import android.view.WindowManager; 13 | 14 | /** 15 | * 显示等待View的控制器 16 | * @version imkarl 2017-05 17 | */ 18 | public class WaitViewController { 19 | 20 | public static WaitViewController from(View view) { 21 | if (view instanceof WaitView) { 22 | return ((WaitView) view).getController(); 23 | } 24 | 25 | int width = view.getWidth(); 26 | int height = view.getHeight(); 27 | if (width == 0) { 28 | int spec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED); 29 | view.measure(spec, spec); 30 | width = view.getMeasuredWidth(); 31 | height = view.getMeasuredHeight(); 32 | } 33 | 34 | RectF drawRect = new RectF(0, 0, width-view.getPaddingLeft()-view.getPaddingRight(), height-view.getPaddingTop()-view.getPaddingBottom()); 35 | WaitViewController controller = (WaitViewController) view.getTag(R.id.ta_waitview); 36 | if (controller == null) { 37 | controller = new WaitViewController(view, drawRect); 38 | view.setTag(R.id.ta_waitview, controller); 39 | } 40 | return controller; 41 | } 42 | 43 | private static final OnWaitViewFilter DEFAULT_WAITVIEW_FILTER = new SimpleOnWaitViewFilter(); 44 | 45 | private final View mWrapperView; 46 | private OnWaitViewFilter mOnWaitViewFilter = DEFAULT_WAITVIEW_FILTER; 47 | 48 | @ColorInt private int mColor = Color.parseColor("#E9E9E9"); 49 | @Dimension private int mRadius; 50 | @IntRange(from=0, to=255) private int mAlpha = 255; 51 | private RectF mDrawRect; 52 | 53 | private WaitView mWaitView; 54 | 55 | private WaitViewController(View view, RectF drawRect) { 56 | this.mWrapperView = view; 57 | this.mDrawRect = drawRect; 58 | mRadius = dp2px(view.getContext(), 4); 59 | } 60 | 61 | public WaitViewController color(@ColorInt int color) { 62 | mColor = color; 63 | return this; 64 | } 65 | public WaitViewController radius(@Dimension int radius) { 66 | mRadius = radius; 67 | return this; 68 | } 69 | public WaitViewController alpha(@IntRange(from=0, to=255) int alpha) { 70 | mAlpha = alpha; 71 | return this; 72 | } 73 | public WaitViewController drawRect(RectF drawRect) { 74 | mDrawRect = drawRect; 75 | return this; 76 | } 77 | public WaitViewController drawRect(int width, int height) { 78 | mDrawRect = new RectF(0, 0, width, height); 79 | return this; 80 | } 81 | public WaitViewController filter(OnWaitViewFilter filter) { 82 | mOnWaitViewFilter = filter; 83 | return this; 84 | } 85 | 86 | Context getContext() { 87 | return mWrapperView.getContext(); 88 | } 89 | 90 | 91 | public View render() { 92 | if (mWaitView == null) { 93 | ViewGroup parent = (ViewGroup) mWrapperView.getParent(); 94 | mWaitView = new WaitView(this); 95 | mWaitView.setId(mWrapperView.getId()); 96 | mWaitView.color(mColor).radius(mRadius).alpha(mAlpha).drawRect(mDrawRect); 97 | ViewGroup.LayoutParams params = mWrapperView.getLayoutParams(); 98 | int index = parent.indexOfChild(mWrapperView); 99 | parent.removeView(mWrapperView); 100 | parent.addView(mWaitView, index, params); 101 | } else { 102 | mWaitView.color(mColor).radius(mRadius).alpha(mAlpha).drawRect(mDrawRect); 103 | } 104 | return mWaitView; 105 | } 106 | public void renderChilds() { 107 | render(mWrapperView); 108 | } 109 | private void render(View view) { 110 | FilterType filterType = mOnWaitViewFilter.onFilter(view); 111 | switch (filterType) { 112 | case Ignored: 113 | break; 114 | 115 | case Childs: 116 | if (view instanceof ViewGroup) { 117 | ViewGroup viewGroup = (ViewGroup) view; 118 | final int count = viewGroup.getChildCount(); 119 | for (int i = 0; i < count; i++) { 120 | View childView = viewGroup.getChildAt(i); 121 | render(childView); 122 | } 123 | } 124 | break; 125 | 126 | case WaitView: 127 | WaitViewController.from(view).render(); 128 | break; 129 | } 130 | } 131 | 132 | public void remove() { 133 | if (mWaitView == null) { 134 | return; 135 | } 136 | 137 | ViewGroup parent = (ViewGroup) mWaitView.getParent(); 138 | ViewGroup.LayoutParams params = mWaitView.getLayoutParams(); 139 | int index = parent.indexOfChild(mWaitView); 140 | parent.removeView(mWaitView); 141 | parent.addView(mWrapperView, index, params); 142 | mWaitView = null; 143 | } 144 | public void removeChilds() { 145 | remove(mWrapperView); 146 | } 147 | private void remove(View view) { 148 | FilterType filterType = mOnWaitViewFilter.onFilter(view); 149 | switch (filterType) { 150 | case Ignored: 151 | break; 152 | 153 | case Childs: 154 | if (view instanceof ViewGroup) { 155 | ViewGroup viewGroup = (ViewGroup) view; 156 | final int count = viewGroup.getChildCount(); 157 | for (int i = 0; i < count; i++) { 158 | View childView = viewGroup.getChildAt(i); 159 | remove(childView); 160 | } 161 | } 162 | break; 163 | 164 | case WaitView: 165 | WaitViewController.from(view).remove(); 166 | break; 167 | } 168 | } 169 | 170 | 171 | private static int dp2px(Context context, float dp) { 172 | DisplayMetrics dm = new DisplayMetrics(); 173 | WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); 174 | wm.getDefaultDisplay().getMetrics(dm); 175 | 176 | return (int) (dp * dm.density + 0.5f); 177 | } 178 | 179 | } 180 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU LESSER GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | 9 | This version of the GNU Lesser General Public License incorporates 10 | the terms and conditions of version 3 of the GNU General Public 11 | License, supplemented by the additional permissions listed below. 12 | 13 | 0. Additional Definitions. 14 | 15 | As used herein, "this License" refers to version 3 of the GNU Lesser 16 | General Public License, and the "GNU GPL" refers to version 3 of the GNU 17 | General Public License. 18 | 19 | "The Library" refers to a covered work governed by this License, 20 | other than an Application or a Combined Work as defined below. 21 | 22 | An "Application" is any work that makes use of an interface provided 23 | by the Library, but which is not otherwise based on the Library. 24 | Defining a subclass of a class defined by the Library is deemed a mode 25 | of using an interface provided by the Library. 26 | 27 | A "Combined Work" is a work produced by combining or linking an 28 | Application with the Library. The particular version of the Library 29 | with which the Combined Work was made is also called the "Linked 30 | Version". 31 | 32 | The "Minimal Corresponding Source" for a Combined Work means the 33 | Corresponding Source for the Combined Work, excluding any source code 34 | for portions of the Combined Work that, considered in isolation, are 35 | based on the Application, and not on the Linked Version. 36 | 37 | The "Corresponding Application Code" for a Combined Work means the 38 | object code and/or source code for the Application, including any data 39 | and utility programs needed for reproducing the Combined Work from the 40 | Application, but excluding the System Libraries of the Combined Work. 41 | 42 | 1. Exception to Section 3 of the GNU GPL. 43 | 44 | You may convey a covered work under sections 3 and 4 of this License 45 | without being bound by section 3 of the GNU GPL. 46 | 47 | 2. Conveying Modified Versions. 48 | 49 | If you modify a copy of the Library, and, in your modifications, a 50 | facility refers to a function or data to be supplied by an Application 51 | that uses the facility (other than as an argument passed when the 52 | facility is invoked), then you may convey a copy of the modified 53 | version: 54 | 55 | a) under this License, provided that you make a good faith effort to 56 | ensure that, in the event an Application does not supply the 57 | function or data, the facility still operates, and performs 58 | whatever part of its purpose remains meaningful, or 59 | 60 | b) under the GNU GPL, with none of the additional permissions of 61 | this License applicable to that copy. 62 | 63 | 3. Object Code Incorporating Material from Library Header Files. 64 | 65 | The object code form of an Application may incorporate material from 66 | a header file that is part of the Library. You may convey such object 67 | code under terms of your choice, provided that, if the incorporated 68 | material is not limited to numerical parameters, data structure 69 | layouts and accessors, or small macros, inline functions and templates 70 | (ten or fewer lines in length), you do both of the following: 71 | 72 | a) Give prominent notice with each copy of the object code that the 73 | Library is used in it and that the Library and its use are 74 | covered by this License. 75 | 76 | b) Accompany the object code with a copy of the GNU GPL and this license 77 | document. 78 | 79 | 4. Combined Works. 80 | 81 | You may convey a Combined Work under terms of your choice that, 82 | taken together, effectively do not restrict modification of the 83 | portions of the Library contained in the Combined Work and reverse 84 | engineering for debugging such modifications, if you also do each of 85 | the following: 86 | 87 | a) Give prominent notice with each copy of the Combined Work that 88 | the Library is used in it and that the Library and its use are 89 | covered by this License. 90 | 91 | b) Accompany the Combined Work with a copy of the GNU GPL and this license 92 | document. 93 | 94 | c) For a Combined Work that displays copyright notices during 95 | execution, include the copyright notice for the Library among 96 | these notices, as well as a reference directing the user to the 97 | copies of the GNU GPL and this license document. 98 | 99 | d) Do one of the following: 100 | 101 | 0) Convey the Minimal Corresponding Source under the terms of this 102 | License, and the Corresponding Application Code in a form 103 | suitable for, and under terms that permit, the user to 104 | recombine or relink the Application with a modified version of 105 | the Linked Version to produce a modified Combined Work, in the 106 | manner specified by section 6 of the GNU GPL for conveying 107 | Corresponding Source. 108 | 109 | 1) Use a suitable shared library mechanism for linking with the 110 | Library. A suitable mechanism is one that (a) uses at run time 111 | a copy of the Library already present on the user's computer 112 | system, and (b) will operate properly with a modified version 113 | of the Library that is interface-compatible with the Linked 114 | Version. 115 | 116 | e) Provide Installation Information, but only if you would otherwise 117 | be required to provide such information under section 6 of the 118 | GNU GPL, and only to the extent that such information is 119 | necessary to install and execute a modified version of the 120 | Combined Work produced by recombining or relinking the 121 | Application with a modified version of the Linked Version. (If 122 | you use option 4d0, the Installation Information must accompany 123 | the Minimal Corresponding Source and Corresponding Application 124 | Code. If you use option 4d1, you must provide the Installation 125 | Information in the manner specified by section 6 of the GNU GPL 126 | for conveying Corresponding Source.) 127 | 128 | 5. Combined Libraries. 129 | 130 | You may place library facilities that are a work based on the 131 | Library side by side in a single library together with other library 132 | facilities that are not Applications and are not covered by this 133 | License, and convey such a combined library under terms of your 134 | choice, if you do both of the following: 135 | 136 | a) Accompany the combined library with a copy of the same work based 137 | on the Library, uncombined with any other library facilities, 138 | conveyed under the terms of this License. 139 | 140 | b) Give prominent notice with the combined library that part of it 141 | is a work based on the Library, and explaining where to find the 142 | accompanying uncombined form of the same work. 143 | 144 | 6. Revised Versions of the GNU Lesser General Public License. 145 | 146 | The Free Software Foundation may publish revised and/or new versions 147 | of the GNU Lesser General Public License from time to time. Such new 148 | versions will be similar in spirit to the present version, but may 149 | differ in detail to address new problems or concerns. 150 | 151 | Each version is given a distinguishing version number. If the 152 | Library as you received it specifies that a certain numbered version 153 | of the GNU Lesser General Public License "or any later version" 154 | applies to it, you have the option of following the terms and 155 | conditions either of that published version or of any later version 156 | published by the Free Software Foundation. If the Library as you 157 | received it does not specify a version number of the GNU Lesser 158 | General Public License, you may choose any version of the GNU Lesser 159 | General Public License ever published by the Free Software Foundation. 160 | 161 | If the Library as you received it specifies that a proxy can decide 162 | whether future versions of the GNU Lesser General Public License shall 163 | apply, that proxy's public statement of acceptance of any version is 164 | permanent authorization for you to choose that version for the 165 | Library. 166 | -------------------------------------------------------------------------------- /sample/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 15 | 16 | 24 | 25 | 30 | 31 | 39 | 40 | 44 | 45 | 55 | 56 | 64 | 65 | 66 | 81 | 82 | 92 | 93 | 94 | 95 | 99 | 100 | 109 | 110 | 115 | 116 | 131 | 132 | 144 | 145 | 146 | 151 | 152 | 167 | 168 | 180 | 181 | 182 | 187 | 188 | 203 | 204 | 216 | 217 | 218 | 223 | 224 | 239 | 240 | 252 | 253 | 254 | 259 | 260 | 275 | 276 | 288 | 289 | 290 | 295 | 296 | 311 | 312 | 324 | 325 | 326 | 331 | 332 | 347 | 348 | 349 | 350 | 354 | 355 | 364 | 365 | 371 | 372 | 387 | 388 | 397 | 398 | 399 | 404 | 405 | 420 | 421 | 422 | 423 | 426 | 427 | 436 | 437 | 442 | 443 | 458 | 459 | 460 | 465 | 466 | 481 | 482 | 483 | 488 | 489 | 504 | 505 | 506 | 507 | 510 | 511 | 512 | --------------------------------------------------------------------------------