提示框 Toast.makeText( this,提示内容,Toast.LENGTH_LENGTH).show(); 对话框 警告框(AlertDailog) Dialog ad = new AlertDialog.Builder(Day08.this).create(); setTitle(); ...
分类:
其他好文 时间:
2017-05-22 20:32:08
阅读次数:
121
提示框: Toast.makeText(Day08.this, 提示内容, Toast.LENGTH_LONG).show(); 对话框: a.警示框(AlertDailog) Dialog ad=new AlertDialog.Builder(Day08.this); setTitle();//设 ...
分类:
其他好文 时间:
2017-05-21 13:42:28
阅读次数:
126
function setTitle(t) { document.title = t; var i = document.createElement('iframe'); i.src = "img/icon_success.png"; i.style.display = 'none'; i.onloa ...
分类:
微信 时间:
2017-05-18 14:44:28
阅读次数:
276
常见的对话框主要分为消息提示对话框、确认对话框、列表对话框、单选对话框、多选对话框和自定义对话框。 对话框可以阻碍当前的UI线程,常用于退出确认等方面。 在这里主要的步骤可以总结为: 1.创建AlertDialog.Builder对象; 2.调用setTitle()或setCustomTitle() ...
分类:
移动开发 时间:
2017-05-15 19:40:41
阅读次数:
474
1.窗口设置模板: public class Test extends JFrame { public Test(){ //设置窗名 this.setTitle(" 静夜思"); //设置布局管理器,null布局表示,可以通过组建位置大小定义组件。 this.setLayout(null); //创 ...
分类:
其他好文 时间:
2017-05-01 16:05:25
阅读次数:
166
- (IBAction)URLFetchWithProgress:(id)sender { [startButton setTitle:@"Stop" forState:UIControlStateNormal]; [startButton addTarget:self action:@select ...
分类:
Web程序 时间:
2017-03-06 19:29:20
阅读次数:
166
// 点击按钮 弹出一个普通对话框 public void click1(View v) { // 构建AlertDialog AlertDialog.Builder builder = new Builder(this); builder.setTitle("警告"); builder.setMe ...
分类:
其他好文 时间:
2017-03-02 16:47:35
阅读次数:
194
使用ActionBar,必须继承ActionBarActivity ActionBar actionBar = getActionBar(); actionBar.setTitle("谷歌电子市场"); //设置标题 // actionBar.setIcon(R.drawable.bg_photo) ...
分类:
其他好文 时间:
2017-02-13 13:33:53
阅读次数:
183
首先,有各种版本 方法一: 我运用的一种极其简单的版本: 将UIButton的Type 设成 Custom 就不会有闪烁的问题重现 @property (strong, nonatomic) IBOutlet UIButton *getCodeBtn; @property (nonatomic, s ...
分类:
其他好文 时间:
2017-01-10 14:38:18
阅读次数:
214
1、按钮 UIButton UIButton btn = new UIButton(); btn.Frame = new RectangleF(150,310,80,30); //按钮位置一件宽高 btn.SetTitle("Button",UIControlState.Normal); //显示的 ...
分类:
移动开发 时间:
2017-01-04 11:03:17
阅读次数:
614