-
Notifications
You must be signed in to change notification settings - Fork 120
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
57 changed files
with
118 additions
and
143 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# android-kline | ||
|
||
**基于MPAndroidChart的专业K线图** | ||
**基于MPAndroidChart的K线图** | ||
|
||
## 简介 | ||
|
||
|
@@ -15,17 +15,8 @@ android-kline是Android平台的金融图表库,包括**分时图**和**K线 | |
|
||
![demo](art/new_chart.gif) | ||
|
||
也可以[点击这里下载](https://github.com/gzw19931217/android-kline/raw/master/art/app-debug.apk) | ||
也可以[点击这里下载](https://github.com/VinsonGuo/android-kline/raw/master/art/app-debug.apk) | ||
|
||
## What's new | ||
|
||
- 增加了MACD、KDJ指标的显示和切换 | ||
- 增加了五日的分时图 | ||
- 优化图表的缩放,可以进行放大和缩小操作(之前只支持在初始状态下的放大操作) | ||
- 拼接图表的缩放功能(之前如果一个手指在K线图,另一个手指在交易量图的时候,图表是不可以缩放的) | ||
- 全屏模式的示例 | ||
- 分时图增加涨跌幅的坐标,并且涨跌幅为0%时竖直居中显示 | ||
- K线图增加最大/最小值的显示 | ||
|
||
## 配置 | ||
|
||
|
@@ -39,7 +30,7 @@ android-kline是Android平台的金融图表库,包括**分时图**和**K线 | |
} | ||
} | ||
dependencies { | ||
compile com.github.gzw19931217:android-kline:1.0.2' | ||
compile com.github.VinsonGuo:android-kline:2.0.0-alpha' | ||
} | ||
``` | ||
|
||
|
@@ -56,15 +47,15 @@ mTimeLineView.initData(hisData); // 初始化图表数据 | |
**xml** | ||
|
||
```xml | ||
<com.guoziwei.klinelib.chart.KLineView | ||
<com.vinsonguo.klinelib.chart.KLineView | ||
android:id="@+id/kline" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"/> | ||
``` | ||
|
||
|
||
```xml | ||
<com.guoziwei.klinelib.chart.TimeLineView | ||
<com.vinsonguo.klinelib.chart.TimeLineView | ||
android:id="@+id/timeline" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"/> | ||
|
@@ -105,20 +96,16 @@ mTimeLineView.initData(hisData); // 初始化图表数据 | |
|
||
**个性化**:如果需要配置颜色,可以到colors.xml中重写颜色的值。 | ||
|
||
## 反馈 | ||
|
||
欢迎各位提issues和PRs! | ||
|
||
**联系方式** | ||
|
||
_qq群: 629878453_ | ||
_qq群: 494309361_ | ||
|
||
_email: [email protected]_ | ||
|
||
|
||
## License | ||
|
||
Copyright gzw19931217 <[email protected]> | ||
Copyright VinsonGuo | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
|
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
2 changes: 1 addition & 1 deletion
2
...oziwei/kline/ExampleInstrumentedTest.java → ...songuo/kline/ExampleInstrumentedTest.java
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
2 changes: 1 addition & 1 deletion
2
...oziwei/kline/FullScreenChartActivity.java → ...songuo/kline/FullScreenChartActivity.java
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
2 changes: 1 addition & 1 deletion
2
...java/com/guoziwei/kline/MainActivity.java → ...ava/com/vinsonguo/kline/MainActivity.java
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
2 changes: 1 addition & 1 deletion
2
...c/main/java/com/guoziwei/kline/Model.java → .../main/java/com/vinsonguo/kline/Model.java
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.guoziwei.kline; | ||
package com.vinsonguo.kline; | ||
|
||
/** | ||
* Created by dell on 2017/11/23. | ||
|
2 changes: 1 addition & 1 deletion
2
...wei/kline/SimpleFragmentPagerAdapter.java → ...guo/kline/SimpleFragmentPagerAdapter.java
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
8 changes: 4 additions & 4 deletions
8
...rc/main/java/com/guoziwei/kline/Util.java → ...c/main/java/com/vinsonguo/kline/Util.java
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
2 changes: 1 addition & 1 deletion
2
...java/com/guoziwei/kline/model/KModel.java → ...ava/com/vinsonguo/kline/model/KModel.java
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
2 changes: 1 addition & 1 deletion
2
...a/com/guoziwei/kline/model/LineModel.java → .../com/vinsonguo/kline/model/LineModel.java
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
2 changes: 1 addition & 1 deletion
2
...ei/kline/view/NoTouchScrollViewpager.java → ...uo/kline/view/NoTouchScrollViewpager.java
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
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
2 changes: 1 addition & 1 deletion
2
...a/com/guoziwei/kline/ExampleUnitTest.java → .../com/vinsonguo/kline/ExampleUnitTest.java
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.guoziwei.kline; | ||
package com.vinsonguo.kline; | ||
|
||
import org.junit.Test; | ||
|
||
|
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
...wei/klinelib/ExampleInstrumentedTest.java → ...guo/klinelib/ExampleInstrumentedTest.java
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.guoziwei.klinelib"/> | ||
package="com.vinsonguo.klinelib"/> |
2 changes: 1 addition & 1 deletion
2
...iwei/klinelib/chart/AppCombinedChart.java → ...nguo/klinelib/chart/AppCombinedChart.java
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
2 changes: 1 addition & 1 deletion
2
...nelib/chart/AppCombinedChartRenderer.java → ...nelib/chart/AppCombinedChartRenderer.java
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.guoziwei.klinelib.chart; | ||
package com.vinsonguo.klinelib.chart; | ||
|
||
import android.graphics.Canvas; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...guoziwei/klinelib/chart/AppLineChart.java → ...insonguo/klinelib/chart/AppLineChart.java
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
2 changes: 1 addition & 1 deletion
2
.../klinelib/chart/AppLineChartRenderer.java → .../klinelib/chart/AppLineChartRenderer.java
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
2 changes: 1 addition & 1 deletion
2
...i/klinelib/chart/BubbleChartRenderer.java → ...o/klinelib/chart/BubbleChartRenderer.java
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
2 changes: 1 addition & 1 deletion
2
...nelib/chart/CandleStickChartRenderer.java → ...nelib/chart/CandleStickChartRenderer.java
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
4 changes: 2 additions & 2 deletions
4
...uoziwei/klinelib/chart/ChartInfoView.java → ...nsonguo/klinelib/chart/ChartInfoView.java
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
2 changes: 1 addition & 1 deletion
2
.../klinelib/chart/ChartInfoViewHandler.java → .../klinelib/chart/ChartInfoViewHandler.java
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
2 changes: 1 addition & 1 deletion
2
...elib/chart/ColorContentYAxisRenderer.java → ...elib/chart/ColorContentYAxisRenderer.java
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
2 changes: 1 addition & 1 deletion
2
...lib/chart/CoupleChartGestureListener.java → ...lib/chart/CoupleChartGestureListener.java
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.guoziwei.klinelib.chart; | ||
package com.vinsonguo.klinelib.chart; | ||
|
||
|
||
import android.graphics.Matrix; | ||
|
Oops, something went wrong.