![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DialogFragment
止于怠
学习android ing
展开
-
DialogFragment添加和删除要注意的点
DialogFragment在如何添加?以及添加要注意什么? 如何添加dialogfragment? dialogfragment如何添加? 1.在添加之前先判断是否被添加过,若已经添加则移除 2.新建一个dialogfragment对象 3.使用show方法 var useDialogFragment = supportFragmentManager.findFragmentByTag("Use...原创 2018-12-21 11:03:36 · 2480 阅读 · 0 评论 -
DialogFragment 设置内容xml布局中最外层背景色透明
DialogFragment 设置内容xml布局中最外层背景色透明 之前试过在xml中直接设定background为透明色,但并未生效,还是默认为白色。 后来,我终于明白。 @Nullable override fun onCreateView(inflater: LayoutInflater, @Nullable container: ViewGroup?, @Nullable s...原创 2019-08-08 14:12:19 · 428 阅读 · 0 评论