https://github.com/kaku2015/weatherchartview
A simple line chart view of weather for android.
https://github.com/kaku2015/weatherchartview
android chart weather weather-chart
Last synced: about 1 year ago
JSON representation
A simple line chart view of weather for android.
- Host: GitHub
- URL: https://github.com/kaku2015/weatherchartview
- Owner: kaku2015
- License: other
- Created: 2016-01-20T14:11:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-10-12T07:58:51.000Z (over 3 years ago)
- Last Synced: 2025-03-27T06:12:11.593Z (over 1 year ago)
- Topics: android, chart, weather, weather-chart
- Language: Java
- Homepage: http://blog.csdn.net/kaku2013/article/details/50091387
- Size: 558 KB
- Stars: 115
- Watchers: 3
- Forks: 25
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WeatherChartView
A simple line chart view of weather for android.

# Usage
In the layout file, just introduce the custom View.
```
```
Dynamic set values of day and night temperature in Activity.
```
WeatherChartView mCharView = (WeatherChartView) findViewById(R.id.line_char);
// set day
mCharView.setTempDay(new int[]{14, 15, 16, 17, 9, 9});
// set night
mCharView.setTempNight(new int[]{7, 5, 9, 10, 3, 2});
mCharView.invalidate();
```
# Note
Default display 6 days of weather, if there is a need to be able to modify their own.
# License
```
Copyright (c) 2016 Kaku咖枯
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```