1.Toast.makeTest(contest,test,duration);
contest:上下文,一般为当前窗口,this
test:提示框内容,字符串型
duration:时常,值为1或0,1为显示2s,0为1s...
                            
                            
                                分类:
移动开发   时间:
2014-07-22 23:03:52   
                                阅读次数:
353
                             
                    
                        
                            
                            
                                ToastextendsObject使用该类最简单的方法就是调用一个静态方法,让他来构造你需要的一切并返回一个新的 
Toast 
对象。Toast是没有焦点的,所以不会阻碍用户输入,而且Toast显示的时间有限,过一定的时间就会自动消失。Toast是Android中用来显示显示信息的一种机制,用来提醒...
                            
                            
                                分类:
其他好文   时间:
2014-05-11 01:25:05   
                                阅读次数:
335
                             
                    
                        
                            
                            
                                1.基础
Context context = getApplicationContext();
CharSequence text = "Hello toast!";
int duration = Toast.LENGTH_SHORT;
Toast toast = Toast.makeText(context, text, duration);
toast.show();
当然也可以将方...
                            
                            
                                分类:
移动开发   时间:
2014-05-08 04:19:04   
                                阅读次数:
357
                             
                    
                        
                            
                            
                                using Microsoft.Phone.Shell;ShellToast toast = 
new ShellToast();toast.Title = "程序标题"; toast.Content = "内容"; toast.NavigationUri 
= new Uri("...
                            
                            
                                分类:
其他好文   时间:
2014-05-07 19:29:04   
                                阅读次数:
271
                             
                    
                        
                            
                            
                                原文:WP 前台或后台显示ShellToastusing 
Microsoft.Phone.Shell;ShellToast toast = new ShellToast();toast.Title = "程序标题"; 
toast.Content = "内容"; toast.NavigationUri...
                            
                            
                                分类:
其他好文   时间:
2014-05-07 09:13:23   
                                阅读次数:
283
                             
                    
                        
                            
                            
                                Toast或者Dialog中都有一个Handler的成员变量,所以如果不是在主线程中使用Toast或Dialog,则需要在使用Toast或者Dialog的线程中初始化Looper。Looper.prepare();Toast.makeText(MainActivity.this, 
"网络出错了", ...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 02:04:03   
                                阅读次数:
267