android 图表切换,Android 交互式K线图表控件

Features

当前最新版本:0.1.1 (2017.04.17)

支持在 XML 布局文件和代码中设置各个线条颜色、大小配置

支持左滑、右滑加载

支持长按高亮、短按点击、双指缩放事件

支持 fling 滑动

支持 MACD、RSI、KDJ、BOLL 四个指标

支持自定义的指标显示方式附带的程序示例有:默认左滑右滑加载、禁用左滑右滑加载、多个指标共同联动显示、在 Fragment 中使用、带有下拉刷新的需求中使用、横竖屏切换(自动旋转)、简单分时图

Change log

Usagecompile 'com.wordplat:ikvStockChart:0.1.1'

android:layout_width="match_parent"

android:layout_height="match_parent" />final EntrySet entrySet = new EntrySet();

entrySet.addEntry(new Entry(...));

kLineLayout.getKLineView().setEntrySet(entrySet);

kLineLayout.getKLineView().notifyDataSetChanged();

kLineLayout.getKLineView().setKLineHandler(new KLineHandler() {            @Override

public void onLeftRefresh() {

kLineLayout.getKLineView().refreshComplete();

}            @Override

public void onRightRefresh() {

kLineLayout.getKLineView().refreshComplete();

}            @Override

public void onSingleTap(MotionEvent e, float x, float y) {

}            @Override

public void onDoubleTap(MotionEvent e, float x, float y) {

}            @Override

public void onHighlight(Entry entry, int entryIndex, float x, float y) {

}            @Override

public void onCancelHighlight() {

}

});SizeColor sizeColor = kLineLayout.getKLineView().getRender().getSizeColor();

sizeColor.setXXX();

Screenshot

S70413-224859.jpg S70413-224945.jpg S70413-225013.jpg

S70413-225055.jpg S70413-225125.jpg S70413-225235.jpg

S70417-010650.jpg

Dependency

none

License/* * Copyright (C) 2017 WordPlat Open Source Project * *      https://wordplat.com/InteractiveKLineView/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *      http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */

Github: https://github.com/wordplat/ikvStockChart

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值