Skip to content

Commit

Permalink
1、修复添加多组数据时,各组数据内容长度不同时的显示错误问题
Browse files Browse the repository at this point in the history
2、修复初始顶点角度偏斜的问题
3、修复数据区即使达到最大值也无法充满整个雷达图的问题
4、顶点描述现在支持多种方式的图片+文字混排
5、添加给各顶点设置自己独立的最大值功能
6、添加设置中心描述文字功能
  • Loading branch information
rorbin committed Oct 11, 2017
1 parent d77f547 commit 5ad8135
Show file tree
Hide file tree
Showing 16 changed files with 331 additions and 169 deletions.
1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

22 changes: 0 additions & 22 deletions .idea/compiler.xml

This file was deleted.

3 changes: 0 additions & 3 deletions .idea/copyright/profiles_settings.xml

This file was deleted.

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

This file was deleted.

25 changes: 0 additions & 25 deletions .idea/gradle.xml

This file was deleted.

46 changes: 0 additions & 46 deletions .idea/misc.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/modules.xml

This file was deleted.

12 changes: 0 additions & 12 deletions .idea/runConfigurations.xml

This file was deleted.

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

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package rorbin.q.radarviewdemo;

import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
Expand Down Expand Up @@ -29,9 +30,16 @@ protected void onCreate(Bundle savedInstanceState) {
List<String> vertexText = new ArrayList<>();
Collections.addAll(vertexText, "力量", "敏捷", "速度", "智力", "精神", "耐力", "体力", "魔力", "意志", "幸运");
mRadarView.setVertexText(vertexText);
List<Integer> res = new ArrayList<>();
Collections.addAll(res, R.mipmap.ic_launcher, R.mipmap.ic_launcher, R.mipmap.ic_launcher,
R.mipmap.ic_launcher, R.mipmap.ic_launcher, R.mipmap.ic_launcher,
R.mipmap.ic_launcher, R.mipmap.ic_launcher, R.mipmap.ic_launcher, R.mipmap.ic_launcher);
mRadarView.setVertexIconResid(res);
List<Float> values = new ArrayList<>();
Collections.addAll(values, 3f, 6f, 2f, 7f, 5f, 1f, 4f, 3f, 8f, 5f);
RadarData data = new RadarData(values);
data.setValueTextEnable(true);
data.setVauleTextColor(Color.WHITE);
List<Float> values2 = new ArrayList<>();
Collections.addAll(values2, 7f, 1f, 4f, 2f, 8f, 3f, 9f, 6f, 5f, 3f);
RadarData data2 = new RadarData(values2);
Expand Down
5 changes: 4 additions & 1 deletion RadarViewDemo/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@
<rorbin.q.radarview.RadarView
android:id="@+id/radarView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
app:vertex_icon_size="30dp"
app:vertex_text_offset="30dp"
app:vertex_icon_position="top"
android:layout_height="match_parent"/>
</RelativeLayout>
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.novoda:bintray-release:0.4.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
2 changes: 1 addition & 1 deletion radarviewlib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'com.novoda.bintray-release'

android {
compileSdkVersion 25
buildToolsVersion '25.0.0'
buildToolsVersion '25.0.3'

defaultConfig {
minSdkVersion 14
Expand Down
Loading

0 comments on commit 5ad8135

Please sign in to comment.