首页>代码>android客户端专业股票k线图>/KChartView-master/kchart/Example/src/main/java/com/github/tifezh/kchart/chart/KChartView.java
package com.github.tifezh.kchart.chart;

import android.content.Context;
import android.util.AttributeSet;

import com.github.tifezh.kchartlib.chart.BaseKChart;
import com.github.tifezh.kchartlib.chart.draw.BOLLDraw;
import com.github.tifezh.kchartlib.chart.draw.KDJDraw;
import com.github.tifezh.kchartlib.chart.draw.MACDDraw;
import com.github.tifezh.kchartlib.chart.draw.MainDraw;
import com.github.tifezh.kchartlib.chart.draw.RSIDraw;

/**
 * k线图
 * Created by tian on 2016/5/20.
 */
public class KChartView extends BaseKChart {

    public KChartView(Context context) {
        this(context, null);
    }

    public KChartView(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public KChartView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        addChildDraw("MACD", new MACDDraw(getContext()));
        addChildDraw("KDJ", new KDJDraw(getContext()));
        addChildDraw("RSI", new RSIDraw(getContext()));
        addChildDraw("BOLL", new BOLLDraw(getContext()));
        setMainDraw(new MainDraw(getContext()));
    }

    @Override
    public void onLeftSide() {

    }

    @Override
    public void onRightSide() {

    }
}
最近下载更多
lizeng206  LV1 2022年11月16日
windygzf  LV1 2022年1月3日
sianhxyeiangu  LV14 2020年6月14日
没骨气的鱼  LV4 2020年6月6日
花花滑滑画画瓜瓜  LV9 2020年1月9日
陈大美女  LV1 2020年1月2日
13964652858  LV1 2019年5月8日
zyl891027  LV1 2019年1月12日
凌乱18181  LV2 2018年12月7日
xinghunbuxiu  LV1 2018年11月19日
最近浏览更多
wxb666  LV3 3月13日
davidlee2015  LV6 1月12日
yyyyyyzh  LV8 2023年6月11日
ljg1011 2023年2月24日
暂无贡献等级
123aaab 2023年2月12日
暂无贡献等级
快乐的程序员  LV25 2023年1月21日
lizeng206  LV1 2022年11月16日
GZW012345  LV8 2022年5月23日
sfgj22  LV1 2022年5月17日
bingpine  LV6 2022年5月10日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友