Code Monkey home page Code Monkey logo

financialcustomerview's Introduction

FinancialCustomerView

  • 本项目会对金融交易软件中存在的各种View进行模仿绘制
  • 提供详细的实现思路
  • 收集整理相关算法、文档以及专业资料
  • 开源实现的金融自定View,已经核对过指标算法数据
  • 开源库已成功接入外汇、数字货币KView
  • 开源库不依赖第三方,继承系统View实现

实现思路及资料

算法以及Java版实现

Usage

  1. Add the following to your project level build.gradle:

     allprojects {
     	repositories {
     		jcenter()
     	}
     }
    
  2. Add this to your app build.gradle:

     implementation 'com.wgyscsf:financialLib:0.0.2'
    
  3. 在布局文件中引入需要使用的自定义View(wgyscsf.financiallib.view.fund.FundViewwgyscsf.financiallib.view.kview.KView)

  4. 个性化设置,like this

       /**
              * 定制,所有的画笔以及其它属性都已经暴露出来,有了更加大的定时灵活性。更多参数可以直接查看源码...
              */
             //常规set、get...
             mFundView.getBrokenPaint().setColor(getResources().getColor(R.color.colorAccent));//设置折现颜色
             mFundView.getInnerXPaint().setStrokeWidth(1);//设置内部x轴虚线的宽度,px
             mFundView.getBrokenPaint().setStrokeWidth(1);
             //链式调用
             mFundView
                     .setBasePaddingTop(140)
                     .setBasePaddingLeft(50)
                     .setBasePaddingRight(40)
                     .setBasePaddingBottom(30)
                     .setLoadingText("正在加载,马上就来...");
    
  5. 适配数据:需要将原始数据转换为本库需要的数据格式

  6. 加载数据进行显示

Demo

已成功模拟基金走势图、模拟K线走势、接入火币数字货币API(科学上网)、接入外汇API

效果图

基金收益折线图wgyscsf.financiallib.view.fund.FundView

KViewwgyscsf.financiallib.view.kview.KView

2-w180 2-w180 2-w180 2-w180

2-w180 2-w180 2-w180 2-w180

外汇类Demo gif:http://o71uhokgf.bkt.clouddn.com/forex.gif

数字货币类Demo gif:http://o71uhokgf.bkt.clouddn.com/huobi.gif

计划

  1. onFling滑动效果
  2. view上箭头标记最大值最小值
  3. 入场动画
  4. 成交量

financialcustomerview's People

Contributors

scsfwgy avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.