Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DataBinding] to Support DataBing, remove final #108

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,7 @@ gradleinfo.properties
# Ignore Gradle GUI config
gradle-app.setting
manifest-merger-release-report.txt
*.apk
*.apk
/gradlew
/gradlew.bat
/gradle
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
buildToolsVersion "25.0.0"

defaultConfig {
applicationId "com.andview.example"
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.android.tools.build:gradle:2.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
Binary file removed gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 0 additions & 6 deletions gradle/wrapper/gradle-wrapper.properties

This file was deleted.

164 changes: 0 additions & 164 deletions gradlew

This file was deleted.

90 changes: 0 additions & 90 deletions gradlew.bat

This file was deleted.

7 changes: 5 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'

group='com.github.Humilton'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
buildToolsVersion "25.0.0"
resourcePrefix "XRefreshView"
defaultConfig {
minSdkVersion 10
Expand All @@ -24,7 +27,6 @@ dependencies {
// compile 'com.android.support:recyclerview-v7:23.3.0'
compile 'com.android.support:recyclerview-v7:23.0.1'
compile 'com.android.support:support-v4:23.0.1'

}

//for upload jar
Expand All @@ -34,6 +36,7 @@ buildscript {
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
}
}
apply from: 'gradle-jcenter-push.gradle'
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,12 @@ public void stopLoading(final boolean hideFooter) {
mState = XRefreshViewState.STATE_FINISHED;
}

public void stopLoadingQuietly(final boolean hideFooter) {
mIsLoadingMore = false;
mHideFooter = hideFooter;
mState = XRefreshViewState.STATE_FINISHED;
}

private boolean mRefreshAdapter = false;

private boolean isOnRecyclerViewBottom() {
Expand Down
14 changes: 14 additions & 0 deletions library/src/main/java/com/andview/refreshview/XRefreshView.java
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,20 @@ public void setCustomFooterView(View footerView) {
}
}

public void stopLoadMoreQuietly() {
mState = XRefreshViewState.STATE_FINISHED;

if (needAddFooterView()) {
if (mPullLoading) {
mStopingRefresh = true;
mPullLoading = false;
mRunnable.isStopLoadMore = true;
}
}

mContentView.stopLoadingQuietly(true);
}

/**
* implements this interface to get refresh/load more event.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public boolean isEmpty() {
public abstract void onBindViewHolder(VH holder, int position, boolean isItem);

@Override
public final void onBindViewHolder(VH holder, int position) {
public void onBindViewHolder(VH holder, int position) {
int start = getStart();
if (!isHeader(position) && !isFooter(position)) {
onBindViewHolder(holder, position - start, true);
Expand Down