-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a2bf0a
commit a64457e
Showing
12 changed files
with
201 additions
and
549 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
26 changes: 0 additions & 26 deletions
26
funnellib/src/androidTest/java/jie/com/funnellib/ExampleInstrumentedTest.java
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
funnellib/src/main/java/jie/com/funnellib/CustomLabel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
Oops, something went wrong.