• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






Kevin Gao

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 83 下一页

2012年3月7日

Android中android:visibility的3中属性的剖析
摘要: 在Android中控件或者布局的可见性android:visibility有3中情况,如View.VISIBLE,View.UNVISIBLE,View.GONE这3中情况。View.VISIBLE很显然就是可见,View.UNVISIBLE是不是可见,但是在这种情况下它会占据空间。就是说如果控件的android:visibility设置为View.UNVISIBLE的话,虽然控件隐藏了,但是它还是占着画面中它布局的位置,这一点和C#中的意义不一样。而View.GONE则是指该控件的不可见,也不占用系统布局中的空间。 阅读全文
posted @ 2012-03-07 10:29 Kevin Gao 阅读(21424) 评论(0) 推荐(0)
 
Android中android:visibility的3中属性的剖析
摘要: 在Android中控件或者布局的可见性android:visibility有3中情况,如View.VISIBLE,View.UNVISIBLE,View.GONE这3中情况。 View.VISIBLE很显然就是可见,View... 阅读全文
posted @ 2012-03-07 10:29 Kevin Gao 阅读(9) 评论(0) 推荐(0)
 

2012年2月29日

Android中写文本文件的方法
摘要: 下面是我在Android开发中,一个写文本文件的方法,代码如下: //将字符串写入到文本文件中 public static void WriteTxtFile(String strcontent,String strFilePath) ... 阅读全文
posted @ 2012-02-29 17:08 Kevin Gao 阅读(27) 评论(0) 推荐(0)
 
Android中写文本文件的方法
摘要: 下面是我在Android开发中,一个写文本文件的方法,代码如下://将字符串写入到文本文件中 public static void WriteTxtFile(String strcontent,String strFilePath) { //每次写入时,都换行写 String strContent=strcontent+"\n"; try { File file = new File(strFilePath); if (!file.exists()) { Log.d("TestFile", "Create the file:" + s 阅读全文
posted @ 2012-02-29 17:07 Kevin Gao 阅读(9901) 评论(0) 推荐(0)
 
Android中读取文本文件中内容的方法
摘要: 这几天在项目开发中,要读取文本文件中内容的,因此写了个读取文本文件中内容的方法,代码如下: //读取文本文件中的内容 public static String ReadTxtFile(String strFilePath) { ... 阅读全文
posted @ 2012-02-29 17:06 Kevin Gao 阅读(14) 评论(0) 推荐(0)
 
Android中读取文本文件中内容的方法
摘要: 这几天在项目开发中,要读取文本文件中内容的,因此写了个读取文本文件中内容的方法,代码如下://读取文本文件中的内容 public static String ReadTxtFile(String strFilePath) { String path = strFilePath; String content = ""; //文件内容字符串 //打开文件 File file = new File(path); //如果path是传递过来的参数,可以做一个非目录的判断 if (file.isDirectory()) { Log.d("TestFile", & 阅读全文
posted @ 2012-02-29 17:05 Kevin Gao 阅读(32785) 评论(0) 推荐(0)
 

2012年2月1日

使用C#ping主机的方法
摘要: 在我们开发项目时经常会遇到要ping主机的问题,现在我封装了一个ping主机的方法,代码如下: /// <summary> /// Ping指定的主机,看能否ping通 /// </summary> /// <param name="Address">(主机地址)</param> /// <param name="TimeOut">(超时时间,默认:1s)</param> /// <returns>True if a response is received, false 阅读全文
posted @ 2012-02-01 11:45 Kevin Gao 阅读(697) 评论(0) 推荐(1)
 
使用C#ping主机的方法
摘要: 在我们开发项目时经常会遇到要ping主机的问题,现在我封装了一个ping主机的方法, 代码如下: /// /// Ping指定的主机,看能否ping通 /// /// (主机地... 阅读全文
posted @ 2012-02-01 11:45 Kevin Gao 阅读(24) 评论(0) 推荐(0)
 
分享一个异步发送邮件的类
摘要: 首先要定义一个邮件信息的基类,如下所示:/// <summary> /// Base message class used for emails /// </summary> public class Message { #region Constructor /// <summary> /// Constructor /// </summary> public Message() { } #endregion #region Properties /// <summary> /// Whom the message is to // 阅读全文
posted @ 2012-02-01 11:36 Kevin Gao 阅读(362) 评论(0) 推荐(0)
 
分享一个异步发送邮件的类
摘要: 首先要定义一个邮件信息的基类,如下所示: /// /// Base message class used for emails /// public class Message { #region Co... 阅读全文
posted @ 2012-02-01 11:36 Kevin Gao 阅读(22) 评论(0) 推荐(0)
 
上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 83 下一页