PTT
Submit
Submit
选择语言
正體中文
简体中文
PTT
AndroidDev
[问题] DountChartView 重绘
楼主:
j0918jack
(东港)
2016-10-04 14:03:43
各位前辈好,小弟目前要处理一个DountChartView
大概像这样 https://goo.gl/EhjLL8
但是会随着所选取的资料去更动图的分布
目前遇到的问题是
只能在程式开启时画一次图
资料更换时不知道怎么去刷新图......
部分程式码大概如下
MainActivity里画图的方法:
https://gist.github.com/anonymous/d498321e23d6ec7472b03bcfd0127152
画图的java档:
https://gist.github.com/anonymous/b40b5e66b6f725e93bd00a40a08fb082
不好意思麻烦各位帮我解惑
感激不尽
作者: passli
2016-10-04 14:30:00
把那个view remove 再加一次?
作者:
gohomexx
(gohomexx)
2016-10-04 17:15:00
view.invalidate() ?
作者: FlowerYen (Greg)
2016-10-05 13:36:00
画图的部分,再多开一个setValue的function不然你value只有在建构的时候才会传入这样如果要更新资料时,都要重new一个view更新完资料后call invalidate 就会强制view重绘了
继续阅读
[问题] webview 不能玩 html5 游戏
issuemylove
[问题] openCV 的版本问题
LiHowDie
[问题] 关于socket ,thread的问题
mentchin
[问题] 类似开发者的"触控回应"
robust083
[问题] 唤醒背景app
brandonron
[问题] 关于augment reality
poumy0610
[问题] Android 的 bluetooth profile 问题
blueblueChen
[问题] download youtube影片
LiHowDie
[闲聊] google 会改用swift3.0为主要开发语言!?
neil0123
[问题] XML 传递变量
Jichang
Links
booklink
Contact Us: admin [ a t ] ucptt.com