7
La mia domanda è qual è il modo migliore per creare un'istanza LayoutInflater
? C'è qualche differenza traCreazione efficiente di un layoutInflater
LayoutInflater inflater = LayoutInflater.from(context);
e
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
che è la soluzione migliore? Altre soluzioni sono anche benvenute.
Grazie.
Quindi la seconda soluzione dovrebbe essere un po 'efficiente rispetto al Primo. –
Giusto. Grazie. – overbet13