{"id":18794581,"url":"https://github.com/kaku2015/weatherchartview","last_synced_at":"2025-04-13T14:32:48.202Z","repository":{"id":94130756,"uuid":"50034303","full_name":"kaku2015/WeatherChartView","owner":"kaku2015","description":"A simple line chart view of weather for android.","archived":false,"fork":false,"pushed_at":"2022-10-12T07:58:51.000Z","size":571,"stargazers_count":115,"open_issues_count":0,"forks_count":25,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T06:12:11.593Z","etag":null,"topics":["android","chart","weather","weather-chart"],"latest_commit_sha":null,"homepage":"http://blog.csdn.net/kaku2013/article/details/50091387","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaku2015.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-01-20T14:11:40.000Z","updated_at":"2024-07-10T06:26:01.000Z","dependencies_parsed_at":"2023-03-26T16:19:51.227Z","dependency_job_id":null,"html_url":"https://github.com/kaku2015/WeatherChartView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaku2015%2FWeatherChartView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaku2015%2FWeatherChartView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaku2015%2FWeatherChartView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaku2015%2FWeatherChartView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaku2015","download_url":"https://codeload.github.com/kaku2015/WeatherChartView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248728227,"owners_count":21152181,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","chart","weather","weather-chart"],"created_at":"2024-11-07T21:29:50.818Z","updated_at":"2025-04-13T14:32:48.197Z","avatar_url":"https://github.com/kaku2015.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WeatherChartView\nA simple line chart view of weather for android.\n\n![image](https://github.com/kaku2015/WeatherChartView/blob/master/sample/screenshots/show.png)\n\n# Usage\nIn the layout file, just introduce the custom View.\n\n```\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cRelativeLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:wcv=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:background=\"@android:color/black\"\u003e\n\n    \u003ccom.kaku.wcv.WeatherChartView\n        android:id=\"@+id/line_char\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"150dp\"\n        android:layout_centerInParent=\"true\"\n        wcv:dayColor=\"@color/colorAccent\"\n        wcv:nightColor=\"@color/colorPrimary\"\n        wcv:textColor=\"@android:color/white\"\n        wcv:textSize=\"14sp\"/\u003e\n\u003c/RelativeLayout\u003e\n```\nDynamic set values of day and night temperature in Activity.\n\n```\nWeatherChartView mCharView = (WeatherChartView) findViewById(R.id.line_char);\n// set day\nmCharView.setTempDay(new int[]{14, 15, 16, 17, 9, 9});\n// set night\nmCharView.setTempNight(new int[]{7, 5, 9, 10, 3, 2});\nmCharView.invalidate();\n```\n# Note\nDefault display 6 days of weather, if there is a need to be able to modify their own.\n\n# License\n  ```\n   Copyright (c) 2016 Kaku咖枯 \u003ckaku201313@163.com | 3772304@qq.com\u003e\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaku2015%2Fweatherchartview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaku2015%2Fweatherchartview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaku2015%2Fweatherchartview/lists"}