public void onCreate(Bundle savedInstanceState) { |
super .onCreate(savedInstanceState); |
setContentView(R.layout.main); |
mButton = (Button) findViewById(R.id.button); |
mButton.setOnClickListener( new View.OnClickListener() { |
|
@Override |
public void onClick(View v) { |
Dialog dialog = new Dialog(MainActivity. this , R.style.Dialog_Fullscreen); |
dialog.setTitle( "全屏显示" ); |
dialog.setContentView(R.layout.dialog); |
dialog.show(); |
} |
}); |
初级程序员
by: 云代码会员 发表于:2016-10-14 02:41:31 顶(0) | 踩(0) 回复
頂
回复评论