当前位置:网站首页>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边栏推荐
- 抓包整理外篇——————状态栏[ 四]
- 微信小程序:微群人脉微信小程序源码下载全新社群系统优化版支持代理会员系统功能超高收益
- What happened to those who focused on automated testing?
- Database postragesql lock management
- Kibana installation and configuration
- Arbitrum: two-dimensional cost
- Discrete mathematics: Main Normal Form (main disjunctive normal form, main conjunctive normal form)
- Global and Chinese markets for industrial X-ray testing equipment 2022-2028: Research Report on technology, participants, trends, market size and share
- Is there a sudden failure on the line? How to make emergency diagnosis, troubleshooting and recovery
- Database postragesq BSD authentication
猜你喜欢
微信小程序:星宿UI V1.5 wordpress系统资讯资源博客下载小程序微信QQ双端源码支持wordpress二级分类 加载动画优化
Wechat applet: the latest WordPress black gold wallpaper wechat applet two open repair version source code download support traffic main revenue
JS implementation determines whether the point is within the polygon range
Detailed explanation of multi-mode input event distribution mechanism
Redis master-slave replication cluster and recovery ideas for abnormal data loss # yyds dry goods inventory #
微信小程序;胡言乱语生成器
Senior Test / development programmers write no bugs? Qualifications (shackles) don't be afraid of mistakes
Four pits in reentrantlock!
Arbitrum: two-dimensional cost
【海浪建模3】三维随机真实海浪建模以及海浪发电机建模matlab仿真
随机推荐
Arbitrum:二维费用
es使用collapseBuilder去重和只返回某个字段
Single step debugging of master data reading of SAP commerce cloud products
Redis master-slave replication cluster and recovery ideas for abnormal data loss # yyds dry goods inventory #
Global and Chinese markets of emergency rescue vessels (errv) 2022-2028: Research Report on technology, participants, trends, market size and share
[flutter topic] 64 illustration basic textfield text input box (I) # yyds dry goods inventory #
Express routing, express middleware, using express write interface
Arbitrum: two-dimensional cost
La jeunesse sans rancune de Xi Murong
Implementation steps of master detail detail layout mode of SAP ui5 application
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Wechat applet; Gibberish generator
Database postragesq role membership
dotnet-exec 0.6.0 released
Pandora IOT development board learning (RT thread) - Experiment 4 buzzer + motor experiment [key external interrupt] (learning notes)
当产业互联网时代真正发展完善之后,将会在每一个场景见证巨头的诞生
How to safely eat apples on the edge of a cliff? Deepmind & openai gives the answer of 3D security reinforcement learning
微信小程序:独立后台带分销功能月老办事处交友盲盒
Wechat applet: new independent backstage Yuelao office one yuan dating blind box
Global and Chinese market of veterinary thermometers 2022-2028: Research Report on technology, participants, trends, market size and share