class GiftDialog:PopupWindow {
private var parentView: ViewGroup
constructor(context:Context,parentView:ViewGroup):super(context){
this.parentView=parentView
contentView= LayoutInflater.from(context).inflate(R.layout.dialog_send_challenge,parentView,false)
initView()
width= ViewGroup.LayoutParams.MATCH_PARENT
isOutsideTouchable=false
setBackgroundDrawable(ColorDrawable(0))
}
private fun initView() {
}
}
Android自定义PopupWindow
最新推荐文章于 2025-02-22 17:33:45 发布