LineChart
LineChart copied to clipboard
滑动view闪动
加入之后有一个问题,就是超出屏幕向右右滑动的时候view就会一直闪个不停,直接不显示折线了,不知道怎么处理,QQ:479094965,希望指点一波
你是不是在滑动的时候,重新绘制布局啦?
来自 魅族 MX5
-------- 原始邮件 -------- 发件人:"Mr.W" [email protected] 时间:周四 5月4日 14:57 收件人:xiaoyunfei/LineChart [email protected] 抄送:Subscribed [email protected] 主题:[xiaoyunfei/LineChart] 滑动view闪动 (#1)
加入之后有一个问题,就是超出屏幕向右右滑动的时候view就会一直闪个不停,直接不显示折线了,不知道怎么处理,QQ:479094965,希望指点一波
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/xiaoyunfei/LineChart","title":"xiaoyunfei/LineChart","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/xiaoyunfei/LineChart"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"滑动view闪动 (#1)"}],"action":{"name":"View Issue","url":"https://github.com/xiaoyunfei/LineChart/issues/1"}}}
只能一套数据一根线么
怎么让他往左滑呢?
我也出现了这个情况。就是加载静态固定数据的时候,滑动不会闪屏;从网络加载后滑动会闪屏,折线不显示
我也遇到商品的情况
同问
我也遇到这种情况了,如何解决,滑动和点击的时候闪动
qq 求指点 568677687
改成以下内容就可以了。
public void setValue(Map<String, Integer> value, List<String> xValue, List<Integer> yValue) { this.value = value; this.xValue = xValue; this.yValue = yValue; selectIndex = xValue.size();
xInit = interval + xOri;
minXInit = width - (width - xOri) * 0.1f - interval * (xValue.size() - 1);//减去0.1f是因为最后一个X周刻度距离右边的长度为X轴可见长度的10%
maxXInit = xInit;
invalidate();
}