Skip to content

Commit 413877a

Browse files
committed
1、fix bugs
2、add setEmptyHint , getEmptyHint method
1 parent 225b70e commit 413877a

File tree

8 files changed

+143
-128
lines changed

8 files changed

+143
-128
lines changed

RadarViewDemo/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 23
5-
buildToolsVersion "23.0.1"
4+
compileSdkVersion 25
5+
buildToolsVersion '25.0.0'
66

77
defaultConfig {
88
applicationId "rorbin.q.radarviewdemo"
99
minSdkVersion 14
10-
targetSdkVersion 23
10+
targetSdkVersion 25
1111
versionCode 1
1212
versionName "1.0"
1313
}
@@ -22,6 +22,6 @@ android {
2222
dependencies {
2323
compile fileTree(include: ['*.jar'], dir: 'libs')
2424
testCompile 'junit:junit:4.12'
25-
compile 'com.android.support:appcompat-v7:23.4.0'
25+
compile 'com.android.support:appcompat-v7:25.2.0'
2626
compile project(':radarviewlib')
2727
}

RadarViewDemo/src/main/java/rorbin/q/radarviewdemo/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ protected void onCreate(Bundle savedInstanceState) {
2222
super.onCreate(savedInstanceState);
2323
setContentView(R.layout.activity_main);
2424
mRadarView = (RadarView) findViewById(R.id.radarView);
25-
25+
mRadarView.setEmptyHint("无数据");
2626
List<Integer> layerColor = new ArrayList<>();
2727
Collections.addAll(layerColor, 0x3300bcd4, 0x3303a9f4, 0x335677fc, 0x333f51b5, 0x33673ab7);
2828
mRadarView.setLayerColor(layerColor);
Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:app="http://schemas.android.com/apk/res-auto"
34
xmlns:tools="http://schemas.android.com/tools"
45
android:layout_width="match_parent"
56
android:layout_height="match_parent"
6-
xmlns:app="http://schemas.android.com/apk/res-auto"
7+
android:background="#666666"
78
android:paddingBottom="@dimen/activity_vertical_margin"
89
android:paddingLeft="@dimen/activity_horizontal_margin"
910
android:paddingRight="@dimen/activity_horizontal_margin"
1011
android:paddingTop="@dimen/activity_vertical_margin"
11-
android:background="#666666"
1212
tools:context="rorbin.q.radarviewdemo.MainActivity">
1313

1414
<rorbin.q.radarview.RadarView
1515
android:id="@+id/radarView"
1616
android:layout_width="match_parent"
17-
android:layout_height="match_parent"
18-
/>
19-
<TextView
20-
android:id="@+id/tv"
21-
android:layout_width="match_parent"
22-
android:layout_height="match_parent"
23-
/>
17+
android:layout_height="match_parent" />
2418
</RelativeLayout>

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.2.3'
8+
classpath 'com.android.tools.build:gradle:2.3.0'
99
classpath 'com.novoda:bintray-release:0.4.0'
1010
// NOTE: Do not place your application dependencies here; they belong
1111
// in the individual module build.gradle files

radarviewlib/build.gradle

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ apply plugin: 'com.android.library'
22
apply plugin: 'com.novoda.bintray-release'
33

44
android {
5-
compileSdkVersion 23
6-
buildToolsVersion "23.0.1"
5+
compileSdkVersion 25
6+
buildToolsVersion '25.0.0'
77

88
defaultConfig {
99
minSdkVersion 14
10-
targetSdkVersion 23
10+
targetSdkVersion 25
1111
versionCode 1
1212
versionName "1.0"
1313
}
@@ -23,13 +23,12 @@ publish {
2323
userOrg = 'qstumn'
2424
groupId = 'q.rorbin'
2525
artifactId = 'RadarView'
26-
publishVersion = '1.0.1'
26+
publishVersion = '1.0.2'
2727
desc = 'this is a can rotate radar chart for android'
2828
website = 'https://github.com/qstumn/RadarView'
2929
}
3030

3131
dependencies {
3232
compile fileTree(dir: 'libs', include: ['*.jar'])
3333
testCompile 'junit:junit:4.12'
34-
compile 'com.android.support:appcompat-v7:23.4.0'
3534
}
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
package="rorbin.q.radarview">
33

4-
<application
5-
android:allowBackup="true"
6-
android:label="@string/app_name"
7-
android:supportsRtl="true">
4+
<application />
85

9-
</application>
106

117
</manifest>

0 commit comments

Comments
 (0)