All the holiday. In my application, all windows depend on the system layout, which is not very encouraging. I want to on all versions of android windows look the same. Namely - as in the fifth android. 1) Where can I get the xml markup of this window? 2) What is the minimum API support for LayoutInflater?
2 answers
In my application, all windows depend on the system layout, which is not very encouraging.
This is not only in your application :)
1) In order for dialogs to look the same on all versions, it is necessary to use third-party libraries.
For example this: Material Dialogs
or this: Material Dialog v1.3.1
When using dialogs from these libraries, dialogs on all versions of Android will be the same as on the screens in the library descriptions.
2) LayoutInflater was added to API Level 1 (see the off documentation here )
If you need XML yourself then they are here: https://github.com/android/platform_frameworks_base/blob/master/core/res/res/layout/alert_dialog_material.xml
In general, use AndroidSupportLibrary. The android.support.v7.app.AlertDialog class looks the same everywhere (as far as possible).