>
> *I am wondering is this because of this mentioned in the doc.:*
> *Important*   For performance reasons, view inflation relies heavily on
> pre-processing of XML files that is done at build time. Therefore, it is
> not currently possible to use LayoutInflater with an XmlPullParser over a
> plain XML file at runtime.
>

I would say that's a pretty safe bet... Why is your XML file in the assets
folder?  Why can't it be in res/layout?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Jul 12, 2012 at 10:33 PM, maccoy <[email protected]> wrote:

> *I am wondering is this because of this mentioned in the doc.:*
> *Important*   For performance reasons, view inflation relies heavily on
> pre-processing of XML files that is done at build time. Therefore, it is
> not currently possible to use LayoutInflater with an XmlPullParser over a
> plain XML file at runtime.
>
>
> On Thursday, July 12, 2012 4:44:55 PM UTC+5:30, maccoy wrote:
>
>>
>>    1. Trying to inlfate a XML file in the Activity class.
>>    2. The XML file is stored in assets directory.
>>    3. When calling the inflate method getting the Error inflating class
>>    <unknown> .
>>    4. It shows the XML Tag(TableLayout or Linear Layout) with attributes.
>>
>> Any ideas?
>>
>>  --
> 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

Reply via email to