Результати пошуку для inflater

Android. Як отримати Layout Inflater, використовуючи Context

У всіляких адаптерах часто виникає необхідність в отриманні об'єкта LayoutInflater, коли доступний тільки контекст. Зробити це можна двома способами: LayoutInflater li = LayoutInflater.from(context) абоLayoutInflater li = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE)

http://www.seostella.com/uk/article/2012/02/27/android-yak-otrimati-layout-inflater-vikoristovuyuchi-context.html