Skip to content

Commit

Permalink
完成初步功能
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay-huangjie committed Feb 22, 2019
1 parent 5a2bf0a commit a64457e
Show file tree
Hide file tree
Showing 12 changed files with 201 additions and 549 deletions.
2 changes: 1 addition & 1 deletion .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
compile project(path: ':funnellib')
implementation project(path: ':funnellib')
}
6 changes: 4 additions & 2 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<jie.com.funnellib.FunnelView
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_height="wrap_content"
android:id="@+id/funnel"
android:paddingLeft="10dp"
android:paddingTop="10dp"
android:background="#e4ebe8"
/>

</LinearLayout>

This file was deleted.

21 changes: 21 additions & 0 deletions funnellib/src/main/java/jie/com/funnellib/CustomLabel.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package jie.com.funnellib;

import android.graphics.Canvas;
import android.graphics.Paint;

/**
* Created by hj on 2019/2/22.
* 说明:开放自定义描述绘制画笔
*/
public interface CustomLabel {
/**
* 循环绘制线后面的文字
* @param canvas 画布
* @param mPaintLabel 画笔
* @param labelX 文字开始X坐标
* @param labelY 文字开始Y坐标
* @param index 绘制下标
* 注意:绘制顺序是从下往上绘制!!!
*/
void drawText(Canvas canvas, Paint mPaintLabel,float labelX, float labelY,int index);
}
Loading

0 comments on commit a64457e

Please sign in to comment.