티스토리 뷰

반응형

 

more.setOnClickListener {
	//  dialog 띄우기
	val dialog = AlertDialog.Builder(context)
	val edialog : LayoutInflater = LayoutInflater.from(context)
	val mView : View = edialog.inflate(R.layout.dialog_member1,null)

	val changecolor : ConstraintLayout = mView.findViewById(R.id.firstlay_dm1)
	val kickout : ConstraintLayout = mView.findViewById(R.id.seclay_dm1)

	changecolor.setOnClickListener{
		Log.d("dialogcheck", "changecolor")
	}

	kickout.setOnClickListener{
		Log.d("dialogcheck", "kickout")
	}

	dialog.setView(mView)
	dialog.create()
	dialog.show()
}

 

 

반응형