【发布时间】:2014-04-29 05:24:39
【问题描述】:
我正在使用 android 的 linkify 功能打开一个网站,并在从我的设备打开时在我的 url 中获取 %20,我该怎么办?
这就是我正在做的事情
license=(TextView)findViewById(R.id.find_us_tv3);
license.setTextSize(18);
Pattern pattern=Pattern.compile("p"+"[page stackoverflow]+stackoverflow");
license.setText(" Open the demo page stackoverflow.");
license.setLinksClickable(true);
Linkify.addLinks(license, pattern, "http://stackoverflow.com/questions/ask");
【问题讨论】: