keeping references to inflated custom views
- by darren
Hi
While researching how to create custom compound views in Android, I have come across this pattern a lot (example comes from the Jteam blog) :
public class FirstTab extends LinearLayout {
private ImageView imageView;
private TextView textView;
private TextView anotherTextView;
public FirstTab(Context context, AttributeSet attributeSet) {
…