当前位置:网站首页>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边栏推荐
- Intel sapphire rapids SP Zhiqiang es processor cache memory split exposure
- [development of large e-commerce projects] performance pressure test - Optimization - impact of middleware on performance -40
- [Chongqing Guangdong education] National Open University spring 2019 1042 international economic law reference questions
- Global and Chinese markets of radiation linear accelerators 2022-2028: Research Report on technology, participants, trends, market size and share
- 微信小程序:全新独立后台月老办事处一元交友盲盒
- 【海浪建模1】海浪建模的理论分析和matlab仿真
- Innovation leads the direction. Huawei Smart Life launches new products in the whole scene
- 线上故障突突突?如何紧急诊断、排查与恢复
- phpstrom设置函数注释说明
- Exploration and Practice of Stream Batch Integration in JD
猜你喜欢
Inventory of more than 17 typical security incidents in January 2022
Nebula importer data import practice
微信小程序:星宿UI V1.5 wordpress系统资讯资源博客下载小程序微信QQ双端源码支持wordpress二级分类 加载动画优化
抓包整理外篇——————状态栏[ 四]
[development of large e-commerce projects] performance pressure test - Optimization - impact of middleware on performance -40
[wave modeling 1] theoretical analysis and MATLAB simulation of wave modeling
[untitled]
Wechat applet: the latest WordPress black gold wallpaper wechat applet two open repair version source code download support traffic main revenue
Blue Bridge Cup Square filling (DFS backtracking)
BGP comprehensive experiment
随机推荐
Analysis and comparison of leetcode weekly race + acwing weekly race (t4/t3)
Kibana installation and configuration
Wechat applet: Xingxiu UI v1.5 WordPress system information resources blog download applet wechat QQ dual end source code support WordPress secondary classification loading animation optimization
phpstrom设置函数注释说明
Delaying wages to force people to leave, and the layoffs of small Internet companies are a little too much!
Applet live + e-commerce, if you want to be a new retail e-commerce, use it!
When the industrial Internet era is truly developed and improved, it will witness the birth of giants in every scene
Main window in QT application
【海浪建模3】三维随机真实海浪建模以及海浪发电机建模matlab仿真
C语音常用的位运算技巧
dotnet-exec 0.6.0 released
[development of large e-commerce projects] performance pressure test - Optimization - impact of middleware on performance -40
Database postragesql client connection default
To sort out messy header files, I use include what you use
JS implementation determines whether the point is within the polygon range
Global and Chinese market of veterinary thermometers 2022-2028: Research Report on technology, participants, trends, market size and share
Chia Tai International Futures: what is the master account and how to open it?
Basic operations of database and table ----- delete index
小程序容器技术与物联网 IoT 可以碰撞出什么样的火花
[wave modeling 1] theoretical analysis and MATLAB simulation of wave modeling