摘要:
Android提供两个常用的消息弹出框,Toast和Alert。ToastToast是一种短暂的提示框,并不需要用户交互,也不会将focus移过来,因此可以适合大多数的场景,向用户进行信息提示。在之前的学习中,已经多次使用到Toast了。创建一个Toast很简单,使用静态方法makeText(Context context, CharSequence text | int resId, int duration),将String(或者String的ID),以及显示的时间长短(LENGTH_SHORT或者LENGTH_LONG)就可以得到一个Toast的对象。上面是最常用的方式,但是如果要显示成 阅读全文
posted @ 2012-01-11 16:07
Kevin Gao
阅读(7928)评论(0)推荐(0)
摘要:
/// <summary> /// Process extensions /// </summary> public static class ProcessExtensions { #region Functions #region KillProcessAsync /// <summary> /// Kills a process /// </summary> /// <param name="Process">Process that should be killed</param> /// &l 阅读全文
posted @ 2012-01-10 09:21
Kevin Gao
阅读(476)评论(0)推荐(0)
摘要:
/// <summary> /// Process extensions /// </summary> public static class ProcessExtensions { #region Functions #region KillProcessAsync /// <summary> /// Kills a process /// </summary> /// <param name="Process">Process that should be killed</param> /// &l 阅读全文
posted @ 2012-01-10 09:21
Kevin Gao
阅读(369)评论(0)推荐(0)
摘要:
///<summary>///Class designed to give information///about the current system///</summary>publicstaticclassEnvironment{#regionPublic Static Properties///<summary>///Name of the machine running the app///</summary>publicstaticstringMachineName{get{returnSystem.Environment.Machi 阅读全文
posted @ 2012-01-07 13:41
Kevin Gao
阅读(610)评论(0)推荐(0)