随笔分类 -  Android

基础
摘要:@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); //禁止系统或其他应用截屏 getWindow().addFlags(WindowMan... 阅读全文
posted @ 2017-03-26 14:09 祈念 阅读(1630) 评论(0) 推荐(0)
摘要:在自动获取焦点的EditText的父布局中添加: android:focusable="true"android:focusableInTouchMode="true" 阅读全文
posted @ 2017-03-23 21:56 祈念 阅读(192) 评论(0) 推荐(0)
摘要:1 protected void startCamera(int code) { 2 bitmapCamera = null; 3 4 // 激活系统的照相机进行拍照 5 Intent intent = new Intent(); 6 intent.setAction("android.media.action... 阅读全文
posted @ 2017-03-21 20:33 祈念 阅读(386) 评论(0) 推荐(0)
摘要:ListView使用SimpleAdapter时给item中的Button添加点击事件 阅读全文
posted @ 2017-03-20 15:31 祈念 阅读(2296) 评论(0) 推荐(2)