- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 android学习笔记5:屏幕旋转
1. 禁止屏幕旋转并横屏: android:configChanges="orientation|keyboardHidden" android:screenOrientation="landscape">
2011-12-12 16:49:44 686
原创 android学习笔记4:画图
在SurfaceView中使用Path类画图:public class ClickSurfaceView extends SurfaceView implementsSurfaceHolder.Callback {private Path pathAnnotate = null;private Bitmap paintBitmap = null;private Canvas
2011-12-12 10:54:52 366
原创 android学习笔记3:SurfaceView上添加组件
在SurfaceView的表层显示一个EditText,可以通过ViewGroup来实现:public class GroupView extends ViewGroup {static public EditText editText = null;ViewGroup vGroup = new ViewGroup(getContext()) {// @Override
2011-12-12 10:14:20 1228
原创 android学习笔记2:toast
Toast最少显示4秒,连续点击n次,会在n*4秒后才消失,可以定义全局变量来解决此问题。private Toast toast = null;// 提示框,用来控制所有提示private TextView textView = null;// 提示框背景public void showToast(String str) {if (null == toast) {toast
2011-12-12 10:02:34 352
原创 android学习笔记1:输入法的显示和隐藏
<br />InputMethodManager imm=(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);<br />/*这句话是获得输入法管理器,在非Activity类里面需要通过<br />*(InputMethodManager)getContext.getSystemService(Context.INPUT_METHOD_SERVICE)获得;<br />*Context.INPUT_METHOD_SERVICE
2011-05-21 17:20:00 710
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人