I have an array of RelativeLayouts that all contain the same views, so
thinking myself clever I used the same id's for each view, e.g.

view1.setid( R.id.View1 );
view2.setId( R.id.View2 );

when I create the layouts in my Java code. To access them I first get
the RelativeLayout and then use

for( i=0 i < 10; i++ )
{
     rl = (RelativeLayout)findViewById(LayoutIds[i] );
     view1 = (ImageView)rl.findViewById( R.id.View1 );
     id = view1.getId();
}
my problem is that when I call

view1.getId();

I always get the same value for every pass thru the loop , if go into
the debugger and inspect view1, it always has a unique id for each
value of i, but it is not the same as what getId() returns

what am I missing?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to