Skip to content

Commit

Permalink
发布3.0.3版本
Browse files Browse the repository at this point in the history
  • Loading branch information
xuexiangjys committed Dec 15, 2020
1 parent 6b4a89b commit 2b80ca6
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 25 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ allprojects {
dependencies {
...
// XPage
implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.0.2'
annotationProcessor 'com.github.xuexiangjys.XPage:xpage-compiler:3.0.2'
implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.0.3'
annotationProcessor 'com.github.xuexiangjys.XPage:xpage-compiler:3.0.3'
// ButterKnife的sdk
implementation 'com.jakewharton:butterknife:10.1.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'
Expand Down Expand Up @@ -108,8 +108,8 @@ apply plugin: 'kotlin-kapt'
dependencies {
...
//XPage
implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.0.2'
kapt 'com.github.xuexiangjys.XPage:xpage-compiler:3.0.2'
implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.0.3'
kapt 'com.github.xuexiangjys.XPage:xpage-compiler:3.0.3'
//ButterKnife的sdk
implementation 'com.jakewharton:butterknife:10.1.0'
kapt 'com.jakewharton:butterknife-compiler:10.1.0'
Expand Down
18 changes: 18 additions & 0 deletions app/src/main/res/layout/fragment_test_edittext.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,24 @@
android:layout_marginTop="16dp" />


<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp" />


<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp" />


<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp" />


</LinearLayout>


Expand Down
8 changes: 4 additions & 4 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ allprojects {
dependencies {
...
// XPage
implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.0.2'
annotationProcessor 'com.github.xuexiangjys.XPage:xpage-compiler:3.0.2'
implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.0.3'
annotationProcessor 'com.github.xuexiangjys.XPage:xpage-compiler:3.0.3'
// ButterKnife的sdk
implementation 'com.jakewharton:butterknife:10.1.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'
Expand Down Expand Up @@ -77,8 +77,8 @@ apply plugin: 'kotlin-kapt'
dependencies {
...
//XPage
implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.0.2'
kapt 'com.github.xuexiangjys.XPage:xpage-compiler:3.0.2'
implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.0.3'
kapt 'com.github.xuexiangjys.XPage:xpage-compiler:3.0.3'
//ButterKnife的sdk
implementation 'com.jakewharton:butterknife:10.1.0'
kapt 'com.jakewharton:butterknife-compiler:10.1.0'
Expand Down
20 changes: 3 additions & 17 deletions xpage-lib/src/main/java/com/xuexiang/xpage/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,23 +186,9 @@ private static boolean isTouchView(View view, MotionEvent event) {
if (view == null || event == null) {
return false;
}
int[] location = new int[2];
view.getLocationOnScreen(location);
int left = location[0];
int top = location[1];
int right = left + view.getMeasuredWidth();
int bottom = top + view.getMeasuredHeight();
return event.getY() >= top && event.getY() <= bottom && event.getX() >= left
&& event.getX() <= right;
}

/**
* 输入键盘是否在显示
*
* @param activity 应用窗口
*/
public static boolean isSoftInputShow(Activity activity) {
return activity != null && isSoftInputShow(activity.getWindow());
Rect rect = new Rect();
view.getGlobalVisibleRect(rect);
return rect.contains((int) event.getX(), (int) event.getY());
}

/**
Expand Down

0 comments on commit 2b80ca6

Please sign in to comment.