Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 426a4cd

Browse files
author
wanjian
committed
no message
1 parent 70a287b commit 426a4cd

File tree

7 files changed

+56
-34
lines changed

7 files changed

+56
-34
lines changed

‎.idea/misc.xml‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎app/build.gradle‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apply plugin: 'com.android.application'
22

33
android {
44
compileSdkVersion 26
5+
buildToolsVersion "26.0.1"
56
defaultConfig {
67
applicationId "com.wanjian.view.demo"
78
minSdkVersion 14
@@ -18,10 +19,10 @@ android {
1819
}
1920

2021
dependencies {
21-
implementation fileTree(include: ['*.jar'], dir: 'libs')
22-
implementation 'com.android.support:appcompat-v7:26.1.0'
23-
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
24-
implementation project(':lib')
22+
compile fileTree(include: ['*.jar'], dir: 'libs')
23+
compile 'com.android.support:appcompat-v7:26.1.0'
24+
// compile 'com.android.support.test.espresso:espresso-core:3.0.1'
25+
compile project(':lib')
2526

2627
compile 'com.android.support:recyclerview-v7:26.1.0'
2728

‎build.gradle‎

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,29 @@
33
buildscript {
44

55
repositories {
6-
google()
76
jcenter()
7+
8+
maven {
9+
url 'https://maven.google.com/'
10+
name 'Google'
11+
}
812
}
913
dependencies {
10-
classpath 'com.android.tools.build:gradle:3.0.1'
11-
12-
14+
classpath 'com.android.tools.build:gradle:2.2.2'
15+
classpath 'com.novoda:bintray-release:0.3.4'
1316
// NOTE: Do not place your application dependencies here; they belong
1417
// in the individual module build.gradle files
1518
}
1619
}
1720

1821
allprojects {
1922
repositories {
20-
google()
2123
jcenter()
24+
25+
maven {
26+
url 'https://maven.google.com/'
27+
name 'Google'
28+
}
2229
}
2330
}
2431

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#Mon Jan 29 19:15:23 CST 2018
1+
#Fri Feb 02 22:16:34 CST 2018
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
7+

‎lib/build.gradle‎

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,53 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'com.novoda.bintray-release'//添加
23

34
android {
45
compileSdkVersion 26
5-
6-
7-
6+
buildToolsVersion "26.0.1"
87
defaultConfig {
98
minSdkVersion 14
109
targetSdkVersion 26
1110
versionCode 1
1211
versionName "1.0"
13-
14-
1512
}
16-
1713
buildTypes {
1814
release {
1915
minifyEnabled false
2016
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2117
}
2218
}
2319

20+
lintOptions {
21+
abortOnError false
22+
}
23+
24+
}
25+
buildscript {
26+
repositories {
27+
jcenter()
28+
}
29+
dependencies {
30+
classpath 'com.android.tools.build:gradle:3.0.1'
31+
classpath 'com.novoda:bintray-release:0.8.0'
32+
}
2433
}
2534

2635
dependencies {
27-
implementation fileTree(dir: 'libs', include: ['*.jar'])
28-
29-
implementation 'com.android.support:appcompat-v7:26.1.0'
30-
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
36+
compile fileTree(dir: 'libs', include: ['*.jar'])
3137
compile 'com.android.support:recyclerview-v7:26.1.0'
3238
}
39+
40+
41+
// clean -- build --- generatePomFileForReleasePublication---publishReleasePublicationToMabenLocal---bintrayUpload---publishing
42+
publish {
43+
groupId = 'com.wanjian'
44+
artifactId = 'expandable-recyclerview'
45+
publishVersion = '0.0.1'
46+
desc = ''
47+
website = 'https://github.com/android-notes/expandable-recyclerview'
48+
49+
bintrayUser = 'wanjian' // 账户名
50+
bintrayKey = '' // 就是API key
51+
dryRun = false
52+
53+
}

‎lib/src/main/java/com/wanjian/view/NestedAdapter.java‎

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,9 @@ int getSafeChildCount(int groupIndex) {
140140
return count;
141141
}
142142

143-
/**
143+
/*
144144
* update group item only,do not update child which belong to this group
145145
*
146-
* @param groupIndex
147146
*/
148147
public void notifyGroupItemChanged(int groupIndex) {
149148
int position = realGroupItemPosition(groupIndex);
@@ -154,10 +153,9 @@ public void notifyGroupItemChanged(int groupIndex) {
154153
}
155154

156155

157-
/**
156+
/*
158157
* update group,include child which belong to this group
159158
*
160-
* @param groupIndex
161159
*/
162160
public void notifyGroupChanged(int groupIndex) {
163161
int from = realGroupItemPosition(groupIndex);
@@ -169,23 +167,18 @@ public void notifyGroupChanged(int groupIndex) {
169167
notifyItemRangeChanged(from, count + 1);
170168
}
171169

172-
/**
170+
/*
173171
* update one child only
174172
*
175-
* @param groupIndex
176-
* @param childIndex
177173
*/
178174
public final void notifyChildItemChanged(int groupIndex, int childIndex) {
179175

180176
notifyChildItemRangeChanged(groupIndex, childIndex, 1);
181177
}
182178

183-
/**
179+
/*
184180
* only update children which belong to this group,from childIndex to childIndex+itemCount,
185181
*
186-
* @param groupIndex
187-
* @param childIndex
188-
* @param itemCount
189182
*/
190183
public final void notifyChildItemRangeChanged(int groupIndex, int childIndex, int itemCount) {
191184
if (itemCount <= 0) {

‎lib/src/main/java/com/wanjian/view/NestedAdapterDivider.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
/**
1212
* Created by wanjian on 2018年1月30日.
13-
* <br/>
1413
* <p>
1514
* 分隔条。支持为 {@link NestedAdapter}添加头部,尾部,group间,child间,group和child间添加自定义divider
1615
*

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /