Error trying to use XML Layout and extended GLSurfaceView

by Kostya Vasilyev » Thu, 06 May 2010 04:57:49 GMT

Sponsored Links
 ust a wild guess. Could be wrong.

Perhaps when Android views are instantiated from XML, there is a parser
involved, and at construction time it is positioned at that view's XML tags.

Then it's time to instantiate the view's children, and they are in turn
passed "bridge" XML parsers that appear to represent complete XML file, but
in fact are made to look at just the portion of the original XML file that
corresponds to the children.

Somewhere in there is support for <merge> tag, and other niceties that
Android provides in its XML layout support.

Perhaps you could look at Android source, and investigate constructors of
various Views (esp. ViewGroup and subclasses) that deal with loading from
XML, and see what they do with their arguments before calling super(....).

-- Kostya

2010/5/6 Jeremiah Sellars <>


Other Threads

1. Abrir un fichero html desde aplicacič´¸n android

Hola, estoy programando un aplicacin en Android y tengo el siguiente

La idea es generar una pgina html de inicio y a partir de ella
navegar por pgina de internet. La pgina html de inicio la creo yo y
la guardo en un fichero de texto. La pgina est bien creada ya que si
la abro con mozilla, chrome o explorer funciona perfectamente.

Bien, mi problema es el siguiente, al lanzar el navegador desde mi
aplicacin me da error ya que no le estoy pasando una URI si no
localizacin de donde esta el fichero, de la siguiente manera:

startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("/data/data/

Es posible hacer lo que quiero o desde una aplicacin slo puedo abrir
el navegador de Android pasndole una pgina de internet?

Muchas gracias de antemano.


2. Optimus 2X

Antri apa ga?


3. rooting optimus one dengan gingerbreak

4. Mod: Close Thread MOHON BANTUAN UNTUK JADI PENENGAH ANTARA SAYA DANBRODIMAS.Fwd: ASK : signal motorola xt720 sering hilang


6. Is it possible to disable USB storage with changes to the system and/or boot partitions?

7. Lag problem