2012年1月9日
摘要: Button的位置摆放和各种控件位置摆放, 用table来完成<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/MainScreenTable" android:background="@drawable/splashblank&qu 阅读全文
posted @ 2012-01-09 11:37 藤藤蔓蔓 阅读(269) 评论(0) 推荐(0) 编辑
摘要: paint控件如何初始化 阅读全文
posted @ 2012-01-09 11:24 藤藤蔓蔓 阅读(147) 评论(0) 推荐(0) 编辑
  2012年1月6日
摘要: 捕获返回键,弹出是否确定返回应用MainMenu的对话框public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KeyEvent.KEYCODE_BACK){ new AlertDialog.Builder(this) .setIcon(R.drawable.icon) .setTitle(R.string.app_name) .setMessage(R.string.quit_desc) .setNegativeBu... 阅读全文
posted @ 2012-01-06 01:54 藤藤蔓蔓 阅读(270) 评论(0) 推荐(0) 编辑
  2012年1月5日
摘要: 实现功能: 有两个Activity,一个为MainMenu,一个为PictureScribble,MainMenu进入PictureScribble后,在PictureScribble中单击返回键返回MainMenus.public boolean OnKeyDown(int keyCode,KeyEvent event){ if (keyCode==KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) { Intent myIntent; myIntent = new Intent(Pi... 阅读全文
posted @ 2012-01-05 16:42 藤藤蔓蔓 阅读(3357) 评论(0) 推荐(0) 编辑