This is the code

View newView =(TableLayout)mLayoutInflater.inflate(xpp,null); 
//'xpp is the XM:Pullparse set with the XML file
XML File:
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android";
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:id="@+id/myTableLayout" android:gravity="center">
<TableRow>.......</TableRow>.</TableLayout>

*Note: The same xml file works if i use inflate - 
mLayoutInflater.inflate(R.layout.tableLayout.xml,null); *
*
*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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to