GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — * [android] 修正刷新时view不能滑动的Bug · nady2012/SHSwipeRefreshLayout@41800dc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • README.md
  • build.gradle
  • gradle.properties
  • sample
    • build.gradle
    • src/main/java/com/scu/miomin/shswiperefreshlayout
      • MainActivity.java
  • shswiperefresh
    • build.gradle
    • src/main/java/com/scu/miomin/shswiperefresh/core
      • SHSwipeRefreshLayout.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
``` javaScript
4343

44-
compile 'com.miomin:shswiperefreshlayout:1.0'
44+
compile 'com.miomin:shswiperefreshlayout:1.2.0'
4545
```
4646

4747
-------------------
Collapse file

‎build.gradle‎

Copy file name to clipboardExpand all lines: build.gradle
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,16 @@ buildscript {
66
}
77
dependencies {
88
classpath 'com.android.tools.build:gradle:2.2.2'
9-
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
10-
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7'
119

1210
// NOTE: Do not place your application dependencies here; they belong
1311
// in the individual module build.gradle files
1412
}
1513
}
1614

17-
plugins {
18-
id "com.jfrog.bintray" version "1.7"
19-
}
20-
2115
allprojects {
2216
repositories {
2317
jcenter()
18+
maven { url "https://raw.githubusercontent.com/miomin/mvn-repo-ione/master" }
2419
}
2520
}
2621

Collapse file

‎gradle.properties‎

Copy file name to clipboardExpand all lines: gradle.properties
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
# When configured, Gradle will run in incubating parallel mode.
1616
# This option should only be used with decoupled projects. More details, visit
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18-
# org.gradle.parallel=true
18+
# org.gradle.parallel=true
Collapse file

‎sample/build.gradle‎

Copy file name to clipboardExpand all lines: sample/build.gradle
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ dependencies {
2626
compile 'com.android.support:recyclerview-v7:24.0.0'
2727
compile 'com.android.support:design:24.0.0'
2828

29-
compile project(':shswiperefresh')
29+
// compile project(':shswiperefresh')
30+
compile 'com.miomin:shswiperefreshlayout:1.2.0'
3031
}
Collapse file

‎sample/src/main/java/com/scu/miomin/shswiperefreshlayout/MainActivity.java‎

Copy file name to clipboardExpand all lines: sample/src/main/java/com/scu/miomin/shswiperefreshlayout/MainActivity.java
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ private void initRecyclerView() {
4040
recyclerView = (RecyclerView) findViewById(R.id.recyclerView);
4141
recyclerView.setLayoutManager(new LinearLayoutManager(this));
4242
recyclerView.setAdapter(new HomeAdapter(this, mDatas));
43-
// 设置item动画
4443
recyclerView.setItemAnimator(new DefaultItemAnimator());
4544
recyclerView.addItemDecoration(new DividerRVDecoration(this,
4645
DividerRVDecoration.VERTICAL_LIST));
Collapse file

‎shswiperefresh/build.gradle‎

Copy file name to clipboard
+17-87Lines changed: 17 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
apply plugin: 'com.android.library'
2-
apply plugin: 'com.github.dcendents.android-maven'
3-
apply plugin: 'com.jfrog.bintray'
2+
apply plugin: 'maven'
43

54
android {
65
compileSdkVersion 24
76
buildToolsVersion "23.0.3"
8-
resourcePrefix "miomin93"
97

108
defaultConfig {
119
minSdkVersion 14
1210
targetSdkVersion 24
13-
versionCode 1
14-
versionName "1.0.1"
11+
versionCode 3
12+
versionName "1.2.0"
1513
}
1614
buildTypes {
1715
release {
@@ -27,90 +25,22 @@ dependencies {
2725
compile 'com.android.support:appcompat-v7:24.0.0'
2826
}
2927

30-
version = "1.0.1"
31-
32-
def siteUrl = 'https://github.com/miomin/SHSwipeRefreshLayout' // 项目主页。
33-
def gitUrl = '[email protected]:miomin/SHSwipeRefreshLayout.git' // Git仓库的url。
34-
35-
group = "com.miomin"
36-
37-
install {
38-
repositories.mavenInstaller {
39-
// 生成pom.xml和参数
40-
pom {
41-
project {
42-
packaging 'aar'
43-
name 'SHSwipeRefreshLayout For Android'// 可选,项目名称。
44-
description 'The Android build the framework of pull to refresh.'// 可选,项目描述。
45-
url siteUrl // 项目主页,这里是引用上面定义好。
46-
47-
// 软件开源协议
48-
licenses {
49-
license {
50-
name 'The Apache Software License, Version 2.0'
51-
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
52-
}
53-
}
28+
ext {
29+
PUBLISH_GROUP_ID = 'com.miomin'
30+
PUBLISH_ARTIFACT_ID = 'shswiperefreshlayout'
31+
PUBLISH_VERSION = android.defaultConfig.versionName
32+
}
5433

55-
//填写开发者基本信息
56-
developers {
57-
developer {
58-
id 'miomin93' // 开发者的id。
59-
name 'miomin93' // 开发者名字。
60-
email '[email protected]' // 开发者邮箱。
61-
}
62-
}
34+
uploadArchives {
35+
repositories.mavenDeployer {
36+
Properties properties = new Properties()
37+
properties.load(project.rootProject.file('local.properties').newDataInputStream())
6338

64-
// SCM
65-
scm {
66-
connection gitUrl // Git仓库地址。
67-
developerConnection gitUrl // Git仓库地址。
68-
url siteUrl // 项目主页。
69-
}
70-
}
39+
repository(url: "file://${properties.getProperty("aar.deployPath")}")
40+
pom.project {
41+
groupId project.PUBLISH_GROUP_ID
42+
artifactId project.PUBLISH_ARTIFACT_ID
43+
version project.PUBLISH_VERSION
7144
}
7245
}
7346
}
74-
75-
// 生成jar包的task
76-
task sourcesJar(type: Jar) {
77-
from android.sourceSets.main.java.srcDirs
78-
classifier = 'sources'
79-
}
80-
81-
// 生成jarDoc的task
82-
task javadoc(type: Javadoc) {
83-
source = android.sourceSets.main.java.srcDirs
84-
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
85-
// destinationDir = file("../javadoc/")
86-
failOnError false // 忽略注释语法错误,如果用jdk1.8你的注释写的不规范就编译不过。
87-
}
88-
89-
// 生成javaDoc的jar
90-
task javadocJar(type: Jar, dependsOn: javadoc) {
91-
classifier = 'javadoc'
92-
from javadoc.destinationDir
93-
}
94-
95-
artifacts {
96-
archives javadocJar
97-
archives sourcesJar
98-
}
99-
100-
// 这里是读取Bintray相关的信息
101-
Properties properties = new Properties()
102-
properties.load(project.rootProject.file('local.properties').newDataInputStream())
103-
bintray {
104-
user = properties.getProperty("bintray.user") // Bintray的用户名。
105-
key = properties.getProperty("bintray.apikey") // Bintray的ApiKey。
106-
107-
configurations = ['archives']
108-
pkg {
109-
repo = "maven" // 上传到maven库。
110-
name = "shswipeRefreshLayout" // 发布到Bintray上的项目名字
111-
websiteUrl = siteUrl
112-
vcsUrl = gitUrl
113-
licenses = ["Apache-2.0"]
114-
publish = true // 是否是公开项目。
115-
}
116-
}
Collapse file

‎shswiperefresh/src/main/java/com/scu/miomin/shswiperefresh/core/SHSwipeRefreshLayout.java‎

Copy file name to clipboardExpand all lines: shswiperefresh/src/main/java/com/scu/miomin/shswiperefresh/core/SHSwipeRefreshLayout.java
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,7 @@ public boolean onInterceptTouchEvent(MotionEvent ev) {
233233
if ((!mPullRefreshEnable && !mPullLoadEnable)) {
234234
return false;
235235
}
236-
if (mRefreshing) {
237-
return true;
238-
}
236+
239237
return super.onInterceptTouchEvent(ev);
240238
}
241239

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.