摘要: 用ViewFlipper实现左右滑屏操作:1.注册ViewFilpper2.滑动动画:slideLeftOut.xml: slideRightOut.xml: 3.viewFilpper添加子view:viewFlipper.addView(mListView);viewFlipper.addView(mListView1);viewFlipper.addView(mListView2);子view监听onTouchEvent事件拦截子View的onTouchEvent事件 @Override public boolean onTouch(View v, MotionE... 阅读全文
posted @ 2013-05-03 14:12 暗殇 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 1.获取versionName,versionCode try { String version = this.getPackageManager().getPackageInfo(getPackageName(),0).versionName; int versionCode = this.getPackageManager().getPackageInfo(getPackageName(), 0).versionCode; } catch (NameNotFoundException e) { /... 阅读全文
posted @ 2013-05-03 13:50 暗殇 阅读(185) 评论(0) 推荐(0) 编辑