Android开发
文章平均质量分 69
小李镰刀
~~拼搏在路上~~
展开
-
Java中的String.format和MessageFormat.format
C#代码用到string.Format("待格式化字符串{0},{1},....",参数1,参数2,...),来格式化字符串比较方便,Java也有类似的方法String.format和MessageFormat.format。 1、MessageFormat.format同C#的string.Format使用基本相同,如: MessageFormat.format("格式化原创 2015-12-10 11:20:50 · 3018 阅读 · 0 评论 -
关于Shape渐变的问题
关于Shape渐变的问题: 1、android:type Value Description "linear" A linear gradient. This is the default. "radial" A radial gradient. The start color is the center color.原创 2014-07-04 17:08:16 · 443 阅读 · 0 评论 -
android显示Html文本
开发遇到显示带格式文本,使用HTML标记实现。 1、textview TextView tView = (TextView) findViewById(R.id.web_textview_html_text); Spanned html = Html.fromHtml(htmlText); tView.setMovementMethod(ScrollingMovementMethod.ge原创 2015-04-02 10:15:04 · 626 阅读 · 0 评论 -
PhoneGap学习笔记(1)
PhoneGap学习笔记(1)本Markdown编辑器使用[StackEdit][6]修改而来,用它写博客,将会带来全新的体验哦: 一、安装 二、Hello Word 三、总结 一、安装安装PhoneGap前需要先安装Node.js,然后使用使用NodeJS的控制台命令行工具进行在线安装PhoneGap。 1.1 NodeJS直接下载NodeJS进行安装即可,下载链接。Node.js安装成功后,打开原创 2016-01-07 10:33:44 · 395 阅读 · 0 评论