01 2012 档案
[代码]按钮selector
摘要:<?xml version="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true" android:drawable="@drawable/camera3" /> <item android:state_pressed="false" 阅读全文
posted @ 2012-01-11 11:45 藤藤蔓蔓 阅读(194) 评论(0) 推荐(0)
[代码]Button UI设计
摘要: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 藤藤蔓蔓 阅读(273) 评论(0) 推荐(0)
[问题][未解决]paint控件如何初始化
摘要:paint控件如何初始化 阅读全文
posted @ 2012-01-09 11:24 藤藤蔓蔓 阅读(150) 评论(0) 推荐(0)
[代码]捕获返回键,弹出是否确定返回应用MainMenu的对话框
摘要:捕获返回键,弹出是否确定返回应用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 藤藤蔓蔓 阅读(274) 评论(0) 推荐(0)
[代码]Android 返回键返回上一级Activity
摘要:实现功能: 有两个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 藤藤蔓蔓 阅读(3368) 评论(0) 推荐(0)