Android AlertDialog去除白色边框
16lz
2021-01-23
使用styles.xml风格:
使用AlertDialog的上层接口类:
Dialog reNameDialog = new Dialog(getContext(), R.style.FullScreenDialog);LayoutInflater mLayoutInflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);View reNameView = mLayoutInflater.inflate(R.layout.audiorecord_rename, null);LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);reNameDialog.addContentView(reNameView, params);reNameDialog.show();
更多相关文章
- android intent 传递对象需要序列化实现Parcelable接口
- Android MediaPlayer Playback---多媒体开发应用程序接口
- Android 开发中的常用的上传下载接口
- Android 通过接口的方式去调用服务里面的方法
- Android 代码风格指南
- Android 实现不同样式风格的CharSequence
- Android常用的api调用接口
- Android 4.1模拟器访问服务器接口