This repository has been archived by the owner on Apr 19, 2021. It is now read-only.
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
0 parents
commit 5401cfc
Showing
34 changed files
with
1,857 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#Android generated | ||
bin | ||
gen | ||
lint.xml | ||
|
||
#Eclipse | ||
.project | ||
.classpath | ||
.settings | ||
.checkstyle | ||
|
||
#IntelliJ IDEA | ||
.idea | ||
*.iml | ||
*.ipr | ||
*.iws | ||
classes | ||
gen-external-apklibs | ||
|
||
#Maven | ||
target | ||
release.properties | ||
pom.xml.* | ||
|
||
#Ant | ||
build.xml | ||
ant.properties | ||
local.properties | ||
proguard.cfg | ||
proguard-project.txt | ||
|
||
#Other | ||
.DS_Store | ||
tmp | ||
project.properties | ||
*.properties |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.andraskindler.quickscroll" | ||
android:versionCode="2" | ||
android:versionName="0.8.1" > | ||
|
||
<uses-sdk | ||
android:minSdkVersion="8" | ||
android:targetSdkVersion="17" /> | ||
|
||
</manifest> |
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 |
---|---|---|
@@ -0,0 +1,100 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>com.andraskindler.quickscroll</groupId> | ||
<artifactId>quickscroll</artifactId> | ||
<version>0.9.9-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
|
||
<parent> | ||
<groupId>org.sonatype.oss</groupId> | ||
<artifactId>oss-parent</artifactId> | ||
<version>7</version> | ||
</parent> | ||
|
||
<name>QuickScroll</name> | ||
<description>Bringing extended scrolling features to Android's native ListView and ExpandableListView.</description> | ||
<url>https://github.com/andraskindler/quickscroll</url> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<access.token /> | ||
<client.id /> | ||
</properties> | ||
|
||
<scm> | ||
<url>https://github.com/andraskindler/quickscroll</url> | ||
<connection>scm:git:https://github.com/andraskindler/quickscroll.git</connection> | ||
<developerConnection>scm:git:git@github.com:andraskindler/quickscroll.git</developerConnection> | ||
<tag>HEAD</tag> | ||
</scm> | ||
|
||
<issueManagement> | ||
<system>GitHub Issues</system> | ||
<url>https://github.com/andraskindler/quickscroll/issues</url> | ||
</issueManagement> | ||
|
||
<licenses> | ||
<license> | ||
<name>Apache 2.0</name> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
</license> | ||
</licenses> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.google.android</groupId> | ||
<artifactId>android</artifactId> | ||
<version>4.2.2_r2</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-release-plugin</artifactId> | ||
<version>2.2.1</version> | ||
<executions> | ||
<execution> | ||
<id>default</id> | ||
<goals> | ||
<goal>perform</goal> | ||
</goals> | ||
<configuration> | ||
<pomFileName>checkout/pom.xml</pomFileName> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-source-plugin</artifactId> | ||
<version>2.2.1</version> | ||
<executions> | ||
<execution> | ||
<id>attach-sources</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>jar-no-fork</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<version>2.9.1</version> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<developers> | ||
<developer> | ||
<name>Andras Kindler</name> | ||
<email>andraskindler@gmail.com</email> | ||
<url>https://github.com/andraskindler</url> | ||
</developer> | ||
</developers> | ||
</project> |
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package com.andraskindler.quickscroll; | ||
|
||
import android.content.Context; | ||
import android.graphics.Canvas; | ||
import android.graphics.Color; | ||
import android.graphics.Paint; | ||
import android.graphics.Path; | ||
import android.util.AttributeSet; | ||
import android.view.View; | ||
|
||
public class Pin extends View { | ||
|
||
private static final int mPinColor = Color.argb(224, 66, 66, 66); | ||
private Paint mPaint; | ||
private Path mPath; | ||
|
||
public Pin(Context context) { | ||
super(context); | ||
init(); | ||
} | ||
|
||
public Pin(Context context, AttributeSet attrs) { | ||
super(context, attrs); | ||
init(); | ||
} | ||
|
||
public Pin(Context context, AttributeSet attrs, int defStyle) { | ||
super(context, attrs, defStyle); | ||
init(); | ||
} | ||
|
||
public void setColor(int color) { | ||
mPaint.setColor(color); | ||
} | ||
|
||
private void init() { | ||
mPath = new Path(); | ||
mPaint = new Paint(); | ||
mPaint.setAntiAlias(true); | ||
mPaint.setStyle(Paint.Style.FILL); | ||
setColor(mPinColor); | ||
} | ||
|
||
@Override | ||
protected void onLayout(boolean changed, int left, int top, int right, int bottom) { | ||
if (changed) { | ||
mPath.reset(); | ||
mPath.moveTo(0, getHeight()); | ||
mPath.lineTo(getWidth(), getHeight() / 2); | ||
mPath.lineTo(0, 0); | ||
mPath.close(); | ||
} | ||
super.onLayout(changed, left, top, right, bottom); | ||
} | ||
|
||
@Override | ||
protected void onDraw(Canvas canvas) { | ||
canvas.drawPath(mPath, mPaint); | ||
super.onDraw(canvas); | ||
} | ||
|
||
} |
Oops, something went wrong.