Android get type of a view

if (view instanceof ImageView) {
    ImageView imageView = (ImageView) view;
    // do what you want with imageView
}
else if (view instanceof TextView) {
    TextView textView = (TextView) view;
    // do what you want with textView
}
else if ...
Or 
View view=FLall.getChildAt(i);
Log.i("ViewName",getClass().getName());
 

Leave a comment