when i create an arrayadapter, like this: ArrayAdapter<entity> adapter = new ArrayAdapter<entity> ( this, R.id.layoutSpinner, R.id.item, list);
R.id.layoutSpinner and R.id.item are declarated within strings.xml, but are instatiated dinammically and setted ids like this: LinearLayout layoutSpinner = new LinearLayout (); layoutSpinner.setId(R.id.layoutSpinner); thanks for your replies 2011/7/8 TreKing <[email protected]> > On Fri, Jul 8, 2011 at 10:48 AM, Raúl Do Santos > <[email protected]>wrote: > >> leaving aside the inflater, the real problem is that i cant access >> resources created porgrammatically, can i do this? >> > > Yes. > > >> I try setting id with setId() method but when i bring the layout created, >> is null. The object exist but cant accessed by their id >> > > How are you trying to access the layout by ID? > > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices > > -- > 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 > -- 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

