- 博客(9)
- 收藏
- 关注
转载 这个那个这个这个......
1,简历中Camera/Video/Picture相关的描述都要能熟练深入回答2,Camera相关:常用api三方调用系统相机的方法,intent的action,flag如何设置,回调数据如何解析等open,preview,capture,picsave流程,具体参数如何设置,回调数据如何如何处理关键类CameraDevice,CameraCaptureSessionSurfaceview,TextureView如何展示预览数据3,视频播放,图片等相关MediaRecorder,MediaC.
2021-01-05 08:25:16
137
原创 使用HandlerThread创建一个与子线程绑定的Handler
创建于子线程绑定的handler可以在thread的内部进行公共访问修饰符定义,其外部也可调用。但使用不方便,并且不可以直接使用子线程的looper绑定,要通过一系列( 比如:Looper.prepare(),Looper.Loop() )的手段才能初始化,并且得出来的Looper.myLooper()不一定使非空值,总之很麻烦了啦。所以,HandlerThread应运而生。是谷歌自己封装的一个...
2019-08-04 19:19:41
686
原创 Notification 的应用
notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);Intent intent=new Intent(this, MainActivity.class);PendingIntent pendingIntent=PendingIntent.getActivity(t...
2018-06-04 15:00:58
181
原创 重新认识Toast之 - 带图Toast 让你感受Toast的强大
Toast toast = Toast.makeText(this, "带图片的Toast", Toast.LENGTH_SHORT);LinearLayout linearLayout = (LinearLayout) toast.getView();ImageView imv = new ImageView(this);imv.setImageResource(R.mipmap.ic_...
2018-06-04 14:07:59
156
原创 重新认识Toast : 自定义Toast - 可以把自己的界面直接Toast出来哦!
View view=View.inflate(this,R.layout.toast,null);Toast toast=Toast.makeText(this,"",Toast.LENGTH_SHORT);//toast.setText("Hello Toast !");//toast.setDuration(Toast.LENGTH_LONG);//toast.setGravity...
2018-06-04 13:54:42
294
原创 巧用条件表达式—表达式1?表达式2:表达式3
Boolean bool = StringUtil.isEmpty(toolbox_et_message.getText().toString());toolbox_btn_send.setTextColor(bool ? Color.WHITE : Color.GREEN);toolbox_btn_send.setClickable(bool ? false : true);
2018-06-01 16:34:33
2536
原创 Android输入框下拉列表
今天物色了Android基础:两个特殊的输入框——炒鸡有意思的是,一直认为这两兄弟跟TextView亲,事实是他们更类似于EditText。1.AutoCompleteTextView2.MultiAutoCompleteTextView...
2018-06-01 15:50:17
2703
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人