当前位置:网站首页>Change the background color of a pop-up dialog
Change the background color of a pop-up dialog
2022-07-05 01:27:00 【Bustling city 】
problem :
I wrote android code that shows a pop-up dialog but I want to change the background color from black to white , and then the color of the writing. I wrote a program that displays pop-up dialog android Code , But I want to change the background color from black Change to white , Then change the color of the text .
This is the dialog's code: This is the code of the dialog box :
mPrefs = PreferenceManager.getDefaultSharedPreferences(this); Boolean welcomeScreenShown = mPrefs.getBoolean(welcomeScreenShownPref, false); if (!welcomeScreenShown) { String whatsNewText = getResources().getString(R.string.Text); new AlertDialog.Builder(this).setMessage(whatsNewText).setPositiveButton( R.string.ok, new DialogInterface.OnClickListener(){ public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); } }).show(); SharedPreferences.Editor editor = mPrefs.edit(); editor.putBoolean(welcomeScreenShownPref, true); editor.commit(); // Very important to save the preference }Solution :
Reference resources : https://stackoom.com/en/question/1Eys4边栏推荐
- 无心剑英译席慕容《无怨的青春》
- 流批一体在京东的探索与实践
- Wechat applet: wechat applet source code download new community system optimized version support agent member system function super high income
- Global and Chinese market of nutrient analyzer 2022-2028: Research Report on technology, participants, trends, market size and share
- When the industrial Internet era is truly developed and improved, it will witness the birth of giants in every scene
- The server time zone value ‘� й ��� ʱ 'is unrecognized or representatives more than one time zone【
- Delaying wages to force people to leave, and the layoffs of small Internet companies are a little too much!
- 【微处理器】基于FPGA的微处理器VHDL开发
- Hand drawn video website
- Using openpyxl module to write the binary list into excel file
猜你喜欢

Postman automatically fills headers

微信小程序:全网独家小程序版本独立微信社群人脉

Redis(1)之Redis简介

Arbitrum: two-dimensional cost

微信小程序:最新wordpress黑金壁纸微信小程序 二开修复版源码下载支持流量主收益

Kibana installation and configuration

Pycharm professional download and installation tutorial

Inventory of more than 17 typical security incidents in January 2022

How to safely eat apples on the edge of a cliff? Deepmind & openai gives the answer of 3D security reinforcement learning

Yyds dry goods inventory kubernetes management business configuration methods? (08)
随机推荐
Redis master-slave replication cluster and recovery ideas for abnormal data loss # yyds dry goods inventory #
Complex, complicated and numerous: illustration of seven types of code coupling
batchnorm.py这个文件单GPU运行报错解决
DOM basic syntax
Yyds dry goods inventory kubernetes management business configuration methods? (08)
Main window in QT application
SAP ui5 application development tutorial 107 - trial version of SAP ui5 overflow toolbar container control introduction
线上故障突突突?如何紧急诊断、排查与恢复
Pycharm professional download and installation tutorial
Nebula Importer 数据导入实践
Global and Chinese markets for industrial X-ray testing equipment 2022-2028: Research Report on technology, participants, trends, market size and share
Talking about JVM 4: class loading mechanism
流批一體在京東的探索與實踐
Compare whether two lists are equal
Robley's global and Chinese markets 2022-2028: technology, participants, trends, market size and share Research Report
142. Circular linked list II
增量备份 ?db full
微信小程序:最新wordpress黑金壁纸微信小程序 二开修复版源码下载支持流量主收益
Poap: the adoption entrance of NFT?
Basic operations of database and table ----- create index