-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before anyone freaks out, all these changes are under-the-hood, meaning that you probably won't even notice them at all. The biggest difference is raising the minSdkVersion from 9 to 14. Recently android bumped this number interally as there are basically no devices running lower than 14 anymore. Sorry but you are just wasting your time if you are trying to support anything lower than 14 now. The next biggest change is updating the project to the new AndroidX libraries, which changes some imports and nothing else really. The third biggest change is fixing a few bugs in the code that cause values to be drawn even if there are none, which results in your app crashing. Surprisingly, these checks already existed in a few of the newer chart types, but most lacked this simple check. Other than those three changes, nothing else is functionally different. Well, saving to gallery works on all charts in the example app now, and you can quickly see the code for each example in the menus. The only real potential "breaking" change is that charts are now saved as PNGs by default instead of JPGs if you go the route of not specifying as a JPG. You may want to double check your file sizes as PNGs can be larger than low quality JPGs. I still have more plans for simplifying the API and fixing other issues with the project, for the small few that closely pay attention to individual commits: there's going to be more soon.
- Loading branch information
Showing
140 changed files
with
4,397 additions
and
3,771 deletions.
There are no files selected for viewing
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,71 +1,66 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.xxmassdeveloper.mpchartexample" | ||
android:versionCode="55" | ||
android:versionName="3.0.2" > | ||
package="com.xxmassdeveloper.mpchartexample"> | ||
|
||
<uses-sdk | ||
android:minSdkVersion="16" | ||
android:targetSdkVersion="25" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:allowBackup="false" | ||
android:hardwareAccelerated="true" | ||
android:icon="@drawable/ic_launcher" | ||
android:icon="@drawable/ic_launcher" | ||
android:label="@string/app_name" | ||
android:theme="@style/AppTheme" > | ||
android:theme="@style/AppTheme"> | ||
<activity | ||
android:name="com.xxmassdeveloper.mpchartexample.notimportant.MainActivity" | ||
android:label="@string/app_name" > | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<action android:name="android.intent.action.VIEW" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity android:name="LineChartActivity1"></activity> <!-- android:configChanges="keyboardHidden|orientation|screenSize" --> | ||
<activity android:name="LineChartActivity2"></activity> | ||
<activity android:name=".LineChartTime"></activity> | ||
<activity android:name="BarChartActivity"></activity> | ||
<activity android:name="HorizontalBarChartActivity"></activity> | ||
<activity android:name="PieChartActivity"></activity> | ||
<activity android:name="PiePolylineChartActivity"></activity> | ||
<activity android:name="MultiLineChartActivity"></activity> | ||
<activity android:name="BarChartActivityMultiDataset"></activity> | ||
<activity android:name="DrawChartActivity"></activity> | ||
<activity android:name="ScatterChartActivity"></activity> | ||
<activity android:name="BubbleChartActivity"></activity> | ||
<activity android:name="com.xxmassdeveloper.mpchartexample.fragments.SimpleChartDemo"></activity> | ||
<activity android:name="ListViewBarChartActivity"></activity> | ||
<activity android:name="ListViewMultiChartActivity"></activity> | ||
<activity android:name="StackedBarActivity"></activity> | ||
<activity android:name="AnotherBarActivity"></activity> | ||
<activity android:name="InvertedLineChartActivity"></activity> | ||
<activity android:name="CandleStickChartActivity"></activity> | ||
<activity android:name="CubicLineChartActivity"></activity> | ||
<activity android:name="RadarChartActivity"></activity> | ||
<activity android:name="LineChartActivityColored"></activity> | ||
<activity android:name="DynamicalAddingActivity"></activity> | ||
<activity android:name=".realm.RealmDatabaseActivityLine"></activity> | ||
<activity android:name=".realm.RealmDatabaseActivityBar"></activity> | ||
<activity android:name=".realm.RealmDatabaseActivityHorizontalBar"></activity> | ||
<activity android:name=".realm.RealmDatabaseActivityScatter"></activity> | ||
<activity android:name=".realm.RealmDatabaseActivityCandle"></activity> | ||
<activity android:name=".realm.RealmDatabaseActivityBubble"></activity> | ||
<activity android:name=".realm.RealmDatabaseActivityPie"></activity> | ||
<activity android:name=".realm.RealmDatabaseActivityRadar"></activity> | ||
<activity android:name=".realm.RealmMainActivity"></activity> | ||
<activity android:name="RealtimeLineChartActivity"></activity> | ||
<activity android:name="CombinedChartActivity"></activity> | ||
<activity android:name="PerformanceLineChart"></activity> | ||
<activity android:name="BarChartActivitySinus"></activity> | ||
<activity android:name="ScrollViewActivity"></activity> | ||
<activity android:name="StackedBarActivityNegative"></activity> | ||
<activity android:name=".realm.RealmWikiExample"></activity> | ||
<activity android:name=".BarChartPositiveNegative"></activity> | ||
<activity android:name=".FilledLineActivity"></activity> | ||
<activity android:name=".HalfPieChartActivity"></activity> | ||
<activity android:name="LineChartActivity1" /> <!-- android:configChanges="keyboardHidden|orientation|screenSize" --> | ||
<activity android:name="LineChartActivity2" /> | ||
<activity android:name=".LineChartTime" /> | ||
<activity android:name="BarChartActivity" /> | ||
<activity android:name="HorizontalBarChartActivity" /> | ||
<activity android:name="PieChartActivity" /> | ||
<activity android:name="PiePolylineChartActivity" /> | ||
<activity android:name="MultiLineChartActivity" /> | ||
<activity android:name="BarChartActivityMultiDataset" /> | ||
<activity android:name="DrawChartActivity" /> | ||
<activity android:name="ScatterChartActivity" /> | ||
<activity android:name="BubbleChartActivity" /> | ||
<activity android:name="com.xxmassdeveloper.mpchartexample.fragments.SimpleChartDemo" /> | ||
<activity android:name="ListViewBarChartActivity" /> | ||
<activity android:name="ListViewMultiChartActivity" /> | ||
<activity android:name="StackedBarActivity" /> | ||
<activity android:name="AnotherBarActivity" /> | ||
<activity android:name="InvertedLineChartActivity" /> | ||
<activity android:name="CandleStickChartActivity" /> | ||
<activity android:name="CubicLineChartActivity" /> | ||
<activity android:name="RadarChartActivity" /> | ||
<activity android:name="LineChartActivityColored" /> | ||
<activity android:name="DynamicalAddingActivity" /> | ||
<activity android:name=".realm.RealmDatabaseActivityLine" /> | ||
<activity android:name=".realm.RealmDatabaseActivityBar" /> | ||
<activity android:name=".realm.RealmDatabaseActivityHorizontalBar" /> | ||
<activity android:name=".realm.RealmDatabaseActivityScatter" /> | ||
<activity android:name=".realm.RealmDatabaseActivityCandle" /> | ||
<activity android:name=".realm.RealmDatabaseActivityBubble" /> | ||
<activity android:name=".realm.RealmDatabaseActivityPie" /> | ||
<activity android:name=".realm.RealmDatabaseActivityRadar" /> | ||
<activity android:name=".realm.RealmMainActivity" /> | ||
<activity android:name="RealtimeLineChartActivity" /> | ||
<activity android:name="CombinedChartActivity" /> | ||
<activity android:name="PerformanceLineChart" /> | ||
<activity android:name="BarChartActivitySinus" /> | ||
<activity android:name="ScrollViewActivity" /> | ||
<activity android:name="StackedBarActivityNegative" /> | ||
<activity android:name=".realm.RealmWikiExample" /> | ||
<activity android:name=".BarChartPositiveNegative" /> | ||
<activity android:name=".FilledLineActivity" /> | ||
<activity android:name=".HalfPieChartActivity" /> | ||
</application> | ||
|
||
</manifest> |
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
Binary file not shown.
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
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,11 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" > | ||
android:layout_height="match_parent"> | ||
|
||
<com.github.mikephil.charting.charts.BarChart | ||
android:id="@+id/chart1" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" /> | ||
|
||
</RelativeLayout> | ||
</RelativeLayout> |
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
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,11 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" > | ||
android:layout_height="match_parent"> | ||
|
||
<com.github.mikephil.charting.charts.BubbleChart | ||
android:id="@+id/chart1" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" /> | ||
|
||
</RelativeLayout> | ||
</RelativeLayout> |
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,11 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" > | ||
android:layout_height="match_parent"> | ||
|
||
<com.github.mikephil.charting.charts.CandleStickChart | ||
android:id="@+id/chart1" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" /> | ||
|
||
</RelativeLayout> | ||
</RelativeLayout> |
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
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
Oops, something went wrong.