I want to make an default Alert Dialog with a small modification. Where can I find an xml layout file of default AlertDialog?
Asked
Active
Viewed 1.2k times
1 Answers
39
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.

EJK
- 12,332
- 3
- 38
- 55
-
2why can't i access it by android.R.layout.alert_dialog ? – YTerle Nov 18 '16 at 08:17
-
@YTerle I think it's private – X09 Jan 22 '17 at 11:13
-
1See this to find SDK_INSTALL_DIRECTORY https://stackoverflow.com/questions/25176594/android-sdk-location – JFreeman Feb 14 '19 at 07:19