This repository has been archived by the owner on Apr 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
91 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,10 +19,73 @@ dependencies { | |
|
||
android { | ||
compileSdkVersion 18 | ||
buildToolsVersion "18.0.1" | ||
buildToolsVersion "18.1" | ||
|
||
defaultConfig { | ||
minSdkVersion 8 | ||
targetSdkVersion 18 | ||
} | ||
} | ||
|
||
apply plugin: 'maven' | ||
apply plugin: 'signing' | ||
|
||
version = "0.1.0" | ||
group = "de.timroes.android" | ||
|
||
configurations { | ||
archives { | ||
extendsFrom configurations.default | ||
} | ||
} | ||
|
||
signing { | ||
required { has("release") && gradle.taskGraph.hasTask("uploadArchives") } | ||
sign configurations.archives | ||
} | ||
|
||
uploadArchives { | ||
|
||
configuration = configurations.archives | ||
repositories.mavenDeployer { | ||
|
||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
|
||
repository(url: sonatypeRepo) { | ||
authentication(userName: sonatypeUsername, password: sonatypePassword ) | ||
} | ||
|
||
pom.project { | ||
|
||
name 'EnhancedListView' | ||
packaging 'aar' | ||
description 'ListView with enhanced features for Android' | ||
url 'https://github.com/timroes/EnhancedListView' | ||
|
||
scm { | ||
url 'scm:[email protected]:timroes/EnhancedListView.git' | ||
connection 'scm:[email protected]:timroes/EnhancedListView.git' | ||
developerConnection 'scm:[email protected]:timroes/EnhancedListView.git' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'The Apache Software License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
distribution 'repo' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'timroes' | ||
name 'Tim Roes' | ||
email '[email protected]' | ||
} | ||
} | ||
|
||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,8 @@ | |
import java.util.TreeSet; | ||
|
||
/** | ||
* A {@link android.widget.ListView} offering enhanced features like Swipe To Dismiss and an | ||
* undo functionality. See the documentation on GitHub for more information. | ||
* | ||
* @author Tim Roes <[email protected]> | ||
*/ | ||
|
@@ -523,7 +525,7 @@ public void delete(int position) { | |
if(position < 0 || position >= getCount()) { | ||
throw new IndexOutOfBoundsException(String.format("Tried to delete item %d. #items in list: %d", position, getCount())); | ||
} | ||
View childView = getChildAt(position); | ||
View childView = getChildAt(position - getFirstVisiblePosition()); | ||
View view = null; | ||
if(mSwipingLayout > 0) { | ||
view = childView.findViewById(mSwipingLayout); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters