hi, i have an issue when i tried inflate popup layout created
programmatically,
in this code broke:
LinearLayout layout_pop = new LinearLayout ();
layout_pop.setId(R.id.layout_pop);
View = getInflater().inflate(R.id.layout_pop,null);
this throw an Exception, resource not found, in xmlparser. The
On Thu, Jul 7, 2011 at 9:09 AM, Raúl Do Santos rauldosanto...@gmail.comwrote:
this throw an Exception, resource not found, in xmlparser.
What would you expect trying to inflate a resource that that does not exist?
The problem is that i should create the ui only programmatically without
leaving aside the inflater, the real problem is that i cant access resources
created porgrammatically, can i do this? i need that ui will be created only
programmatically.
I try setting id with setId() method but when i bring the layout created, is
null. The object exist but cant accessed by their
On Fri, Jul 8, 2011 at 10:48 AM, Raúl Do Santos rauldosanto...@gmail.comwrote:
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
when i create an arrayadapter, like this:
ArrayAdapterentity adapter = new ArrayAdapterentity ( 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 =
On Fri, Jul 8, 2011 at 11:09 AM, Raúl Do Santos rauldosanto...@gmail.comwrote:
when i create an arrayadapter, like this:
ArrayAdapterentity adapter = new ArrayAdapterentity ( this,
R.id.layoutSpinner, R.id.item, list);
R.id.layoutSpinner and R.id.item are declarated within strings.xml, but
Exactly but the issue is that my app strictly must declare the UI only in
javacode, then the problem is that I can not access the elements created
dynamically by their id, if i do: LinearLayout ll =
findViewById(R.id.layoutSpinner); ll is null.
If you know other way of access the elements created
The second parameter to ArrayAdapter is a layout resource id, which is
the template for list items.
It has to be an R.layout value, e.g. R.layout.my_item_layout, where
my_item_layout.xml is a layout file under res.
The third parameter is a view id, within that layout.
If you would like to
On Fri, Jul 8, 2011 at 12:34 PM, Raúl Do Santos rauldosanto...@gmail.comwrote:
Exactly but the issue is that my app strictly must declare the UI only in
javacode, then the problem is that I can not access the elements created
dynamically by their id, if i do: LinearLayout ll =
thanks i will try it
2011/7/8 Kostya Vasilyev kmans...@gmail.com
**
The second parameter to ArrayAdapter is a layout resource id, which is the
template for list items.
It has to be an R.layout value, e.g. R.layout.my_item_layout, where
my_item_layout.xml is a layout file under res.
The
10 matches
Mail list logo