├── line-chart-view ├── .gitignore ├── src │ ├── main │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── org │ │ │ └── hogel │ │ │ └── android │ │ │ └── linechartview │ │ │ ├── DateLineChartView.java │ │ │ ├── LineChartStyle.java │ │ │ └── LineChartView.java │ └── test │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── org │ │ └── hogel │ │ └── android │ │ └── linechartview │ │ ├── ViewTestBase.java │ │ └── LineChartViewTest.java ├── proguard-rules.pro └── build.gradle ├── line-chart-view-demo ├── .gitignore ├── src │ └── main │ │ ├── res │ │ ├── drawable-hdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xhdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xxhdpi │ │ │ └── ic_launcher.png │ │ ├── values │ │ │ ├── strings.xml │ │ │ ├── styles.xml │ │ │ └── dimens.xml │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ └── layout │ │ │ ├── activity_date_chart.xml │ │ │ ├── activity_main.xml │ │ │ └── activity_chart.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── org │ │ └── hogel │ │ └── android │ │ └── linechartviewdemo │ │ ├── MainActivity.java │ │ ├── LineChartActivity.java │ │ └── DateLineChartActivity.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── line-chart-view.png ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .travis.yml ├── .gitignore ├── gradle.properties ├── LICENSE ├── release.rb ├── README.md ├── gradlew.bat ├── gradle-mvn-push.gradle └── gradlew /line-chart-view/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /line-chart-view-demo/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':line-chart-view', ':line-chart-view-demo' 2 | -------------------------------------------------------------------------------- /line-chart-view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogelog/line-chart-view/HEAD/line-chart-view.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogelog/line-chart-view/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /line-chart-view-demo/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogelog/line-chart-view/HEAD/line-chart-view-demo/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /line-chart-view-demo/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogelog/line-chart-view/HEAD/line-chart-view-demo/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /line-chart-view-demo/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogelog/line-chart-view/HEAD/line-chart-view-demo/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /line-chart-view-demo/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogelog/line-chart-view/HEAD/line-chart-view-demo/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /line-chart-view-demo/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | LineChartDemo 5 | Settings 6 | 7 | 8 | -------------------------------------------------------------------------------- /line-chart-view/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 7 | 8 | -------------------------------------------------------------------------------- /line-chart-view-demo/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /line-chart-view-demo/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Jan 07 10:46:18 JST 2016 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-bin.zip 7 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: android 2 | jdk: oraclejdk8 3 | android: 4 | components: 5 | - tools 6 | - build-tools-23.0.2 7 | - extra-android-support 8 | - extra-android-m2repository 9 | - android-19 10 | licenses: 11 | - '.+' 12 | script: 13 | - ./gradlew clean assemble check 14 | -------------------------------------------------------------------------------- /line-chart-view/src/test/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 7 | 8 | 12 | 13 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | 15 | # Gradle files 16 | .gradle/ 17 | build/ 18 | 19 | # Local configuration file (sdk path, etc) 20 | local.properties 21 | 22 | # Proguard folder generated by Eclipse 23 | proguard/ 24 | 25 | .DS_Store 26 | .idea 27 | *.iml 28 | -------------------------------------------------------------------------------- /line-chart-view-demo/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | VERSION_NAME=0.2.1-SNAPSHOT 2 | VERSION_CODE=9 3 | GROUP=org.hogel 4 | 5 | 6 | POM_NAME=LineChartView 7 | POM_ARTIFACT_ID=line-chart-view 8 | POM_PACKAGING=jar 9 | 10 | POM_DESCRIPTION=Android Library to line chart view 11 | POM_URL=https://github.com/hogelog/line-chart-view 12 | POM_SCM_URL=https://github.com/hogelog/line-chart-view 13 | POM_SCM_CONNECTION=scm:git@github.com:hogelog/line-chart-view.git 14 | POM_SCM_DEV_CONNECTION=scm:git@github.com:hogelog/line-chart-view.git 15 | POM_LICENCE_NAME=The MIT License (MIT) 16 | POM_LICENCE_URL=http://opensource.org/licenses/MIT 17 | POM_LICENCE_DIST=repo 18 | POM_DEVELOPER_ID=hogelog 19 | POM_DEVELOPER_NAME=Sunao Komuro 20 | -------------------------------------------------------------------------------- /line-chart-view/src/test/java/org/hogel/android/linechartview/ViewTestBase.java: -------------------------------------------------------------------------------- 1 | package org.hogel.android.linechartview; 2 | 3 | import android.app.Activity; 4 | import org.junit.After; 5 | import org.junit.Before; 6 | import org.junit.runner.RunWith; 7 | import org.robolectric.Robolectric; 8 | import org.robolectric.RobolectricGradleTestRunner; 9 | 10 | @RunWith(RobolectricGradleTestRunner.class) 11 | public abstract class ViewTestBase { 12 | Activity activity; 13 | 14 | @Before 15 | public void setUp() throws Exception { 16 | activity = Robolectric.setupActivity(Activity.class); 17 | } 18 | 19 | @After 20 | public void tearDown() throws Exception { 21 | 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /line-chart-view/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /opt/android-sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /line-chart-view-demo/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /opt/android-sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /line-chart-view-demo/src/main/res/layout/activity_date_chart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 13 | 14 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /line-chart-view-demo/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /line-chart-view-demo/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 19 5 | buildToolsVersion '23.0.2' 6 | 7 | defaultConfig { 8 | applicationId "org.hogel.android.linechartviewdemo" 9 | minSdkVersion 9 10 | targetSdkVersion 19 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | 15 | compileOptions { 16 | sourceCompatibility JavaVersion.VERSION_1_7 17 | targetCompatibility JavaVersion.VERSION_1_7 18 | } 19 | buildTypes { 20 | release { 21 | minifyEnabled false 22 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 23 | } 24 | } 25 | } 26 | 27 | dependencies { 28 | compile fileTree(dir: 'libs', include: ['*.jar']) 29 | compile 'com.android.support:appcompat-v7:19.1.0' 30 | compile 'com.google.guava:guava:17.0' 31 | compile project(':line-chart-view') 32 | } 33 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 hogelog 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /line-chart-view-demo/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 11 | 12 |