프로그래밍/android

AlertDialog.Builder change background color

-샤리- 2021. 4. 8. 16:54

<styles.xml>

<style name="AppCompatAlertDialog" parent="Theme.AppCompat.Light.Dialog.Alert">
	<item name="colorAccent">@color/colorAccent</item>
	<item name="android:textColorPrimary">@android:color/black</item>
	<item name="android:background">@android:color/white</item>
</style>

 

 

<적용하기>

val builder = AlertDialog.Builder(this, R.style.AppCompatAlertDialog)