02 2015 档案

摘要:将背景改为android:background="#00000000"这里00000000为透明 阅读全文
posted @ 2015-02-27 16:44 扎克 阅读(3118) 评论(0) 推荐(0) 编辑
摘要:在AndroidManifest.xml配置文件中设置相对应的Activity就可以Activity一一对应android:screenOrientation="portrait"当然,也可以设置只能横屏什么的。 阅读全文
posted @ 2015-02-27 11:36 扎克 阅读(10304) 评论(0) 推荐(0) 编辑
摘要:新建布局后。在原来主要布局中加入如: 阅读全文
posted @ 2015-02-26 16:16 扎克 阅读(860) 评论(0) 推荐(0) 编辑
摘要:ProgressDialog progressDialog=new ProgressDialog(Login.this);progressDialog.setTitle("数据加载中");progressDialog.setMessage("Loading...");progressDialog.s... 阅读全文
posted @ 2015-02-26 15:43 扎克 阅读(889) 评论(0) 推荐(0) 编辑
摘要:AlertDialog.Builder dialog=new AlertDialog.Builder(Login.this); dialog.setTitle("测试对话框"); dialog.setMessage("内容"); dialog.setCancelable(f... 阅读全文
posted @ 2015-02-26 15:35 扎克 阅读(190) 评论(0) 推荐(0) 编辑
摘要:基本用法:显式Intent intent=new Intent(Activity甲.this,Activity乙.class);startActivity(intent); 传递参数Intent intent=new Intent(Activity甲.this,Activity乙.class);i... 阅读全文
posted @ 2015-02-26 11:40 扎克 阅读(1684) 评论(0) 推荐(0) 编辑
摘要:Alt+Enter 阅读全文
posted @ 2015-02-26 10:09 扎克 阅读(150) 评论(0) 推荐(0) 编辑
摘要:Button btnLogin=(Button)findViewById(R.id.btnLogin);btnLogin.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v){ ... 阅读全文
posted @ 2015-02-26 09:55 扎克 阅读(173) 评论(0) 推荐(0) 编辑
摘要:finish(); 阅读全文
posted @ 2015-02-26 09:42 扎克 阅读(80) 评论(0) 推荐(0) 编辑
摘要:Toast.makeText(MainActivity.this,"要显示的消息",Toast.LENGTH_SHORT).show(); 阅读全文
posted @ 2015-02-26 09:40 扎克 阅读(283) 评论(0) 推荐(0) 编辑
摘要:getSupportActionBar().hide();getSupportActionBar().show(); 阅读全文
posted @ 2015-02-26 09:39 扎克 阅读(555) 评论(0) 推荐(0) 编辑