2013年5月13日

android 弹出框总结一

摘要: 方法1:在当前acti里获取(WindowManager) getSystemService(Context.WINDOW_SERVICE); 管理对象;然后获取WindowManager.LayoutParams 对象来对view的属性进行设置 ,各种现实的样式;然后 windowManager.addView(linear, lp); 在当前acti里去addview; 在acti中的onDestroy()windowManager.removeView(linear);(ViewGroup.LayoutParams http://www.eoeandroid.com/thread-849 阅读全文

posted @ 2013-05-13 15:21 yujian_bcq 阅读(494) 评论(0) 推荐(0) 编辑

android 之事件驱动一

摘要: MotionEvent事件在onInterceptTouchEvent()、onTouchEvent()中的传递顺序onInterceptTouchEvent():返回值为true时事件会传递给当前控件的onTouchEvent(),而不在传递给子控件,这就是所谓的Intercept(截断)。 决定... 阅读全文

posted @ 2013-05-13 14:22 yujian_bcq 阅读(227) 评论(0) 推荐(0) 编辑

android 地图之调用手机安装的地图软件

摘要: // 这个是调用谷歌地图应用的。Intent i = new Intent(Intent.ACTION_VIEW,Uri.parse("geo:39.922840,116.3543240?q=39.922840,116.3543240(北京市西城区阜外大街2号万通大厦)"));i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK& Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);i.setClassName("com.google.android.apps.maps"," 阅读全文

posted @ 2013-05-13 14:14 yujian_bcq 阅读(399) 评论(1) 推荐(0) 编辑

android fragment简单应用一

摘要: 通过FragmentManager fragmentManager = getFragmentManager();//碎片管理对象FragmentTransaction transaction = fragmentManager.beginTransaction();//碎片执行对象布局文件:<FrameLayout android:layout_width="wrap_content" android:layout_height="match_parent" ><fragment android:name="cn.sh.si 阅读全文

posted @ 2013-05-13 10:43 yujian_bcq 阅读(303) 评论(0) 推荐(0) 编辑

导航