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
37
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.
![](../../users/profiles/1072150.webp)
EJK
- 11,784
- 3
- 34
- 53
-
1why 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