Lompat ke konten Lompat ke sidebar Lompat ke footer

Force close SetText or Button Di Dalam Inflater, Gini Caranya | Android Studio

 Implementasi Khusus Untuk objek yang di dalam inflater

LayoutInflater vi = (LayoutInflater) getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View v = vi.inflate(R.layout.layer_favorite, null);

// ((v.findViewById)) untuk mengarahkan ke inflater, berbeda dengan (v.) biasanya
TextView textView = (TextView) v.findViewById(R.id.judulFavo);
close