I want to make an default Alert Dialog with a small modification. Where can I find an xml layout file of default AlertDialog?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
All default layouts are included in the Android SDK. In your SDK installation, see the following:
<SDK_INTALL_DIRECTORY>/sdk/platforms/android-18/data/res/layout/alert_dialog.xml
(or replace "android-18" with the API level you want).
Note that you will only see API levels that you have downloaded via the Android SDK Manager.