如何将GraphView集成到我的项目中?

sca*_*and 6 integration android android-graphview

所以我正在寻找我的应用程序的图形解决方案,我偶然发现了GraphView.

我正在环顾github和源文件,我似乎无法找到集成指南.也许它就在我面前,但我无法在任何地方看到它.

我以前从未将别人的代码集成到我自己的代码中,所以如果有人能给我一个关于如何将GraphView与我当前项目集成的快速概述,我将非常感激.

Luk*_*rog 7

选项1:

  1. 从这里得到图书馆的罐子.
  2. 将该jar复制到/libs项目中要使用的文件夹中GraphView.
  3. 用它.

选项2:

  1. 获取项目github使用git:

    • 使用git bash移动到您喜欢的目录
    • 从...执行 git git clone git://github.com/jjoe64/GraphView.git graphView
    • in Eclipse File- > Import...- > Android- /Existing Android Code Into Project(用于Browse导航到graphView上一步收藏文件夹中的文件夹)
    • 右键单击将使用GraphView- > Properties- > Android- >底部(Library区域)用于Add...选择的项目GraphView
    • 用它


bst*_*r55 5

GraphView已添加到Maven Central,因此Android Studio集成现在变得更加容易.只需将以下内容添加到build.gradle文件中,即可下载.jar.

dependencies {
    'com.jjoe64:graphview:3.1.3'
}
Run Code Online (Sandbox Code Playgroud)