android.view.inflateException:Binary XML file line #43:Inflating Class<unknown>

by Aneesh » Sat, 02 Oct 2010 02:12:17 GMT


Sponsored Links
 ai,

I am using MapView in my application.I ma getting
"android.view.inflateException:Binary XML file line #43:Inflating
Class<unknown>" Exception while loading the map second time. First
Time it shows correctly

The XML file i am using shows here

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:orientation="vertical"
android:background="@color/black"
android:layout_gravity="center_horizontal"
android:scrollbars="vertical">


<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" android:background="@color/black"
android:layout_gravity="center">

<TextView android:padding="20px" android:text="" android:id="@+id/
eventname" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_gravity="center"
android:textColor="@color/bg_color" android:textStyle="bold"
android:textSize="12px"></TextView>

</LinearLayout>

<ScrollView android:layout_marginBottom="40dip" android:id="@+id/
ScrollView01" android:layout_height="wrap_content"
android:layout_width="fill_parent">
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:orientation="vertical"
android:background="@color/black">
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:paddingLeft="20px" android:layout_height="wrap_content"
android:orientation="horizontal" android:background="@color/black"
android:layout_gravity="center_horizontal">

<ImageView android:id="@+id/ImageView01"
android:scaleType="fitCenter" android:layout_width="100dip"
android:layout_height="120dip" ></ImageView>
<ImageView android:id="@+id/ImageView02"
android:scaleType="fitCenter" android:layout_width="100dip"
android:layout_height="120dip" ></ImageView>
</LinearLayout>
<TextView android:paddingLeft="20px" android:text="" android:id="@
+id/maindet" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_gravity="left"
android:textColor="@color/bg_color" android:textSize="12px"></
TextView>
<TextView android:textStyle="bold" android:paddingLeft="20px"
android:text="Muzieikstijlen" android:id="@+id/stylet"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_gravity="left"
android:textColor="@color/bg_color" android:textSize="12px"></
TextView>



android.view.inflateException:Binary XML file line #43:Inflating Class<unknown>

by TreKing » Sat, 02 Oct 2010 04:58:34 GMT


 



Where is this exception being thrown? What line in the file? Which part of
the code is causing it?

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

--


Sponsored Links


Other Threads

1. How to create custom calendar in android

my self Alpesh Patel,now a days i m working on android.
in which doing,fecility poviding in android mobile of google calendar.
but i have problem that in android emulator 9.0 no calendar support is
there.

so now i have to build custom calendar in android.


so pls if you have solution pls pls give me solution.

my id is:


[EMAIL PROTECTED]

thnks in advance.


--~--~---------~--~----~------------~-------~--~----~

2. (documentation) Is there a typo in ViewTreeObserver.dispatchOnPreDraw() ?

>From the dox: "...If a listener returns true, then the drawing pass is
canceled and rescheduled...."
It seems to be the opposite.
I tried it and if my listener returns true, then the view hierarchy
will draw just fine but when my listener returns false, then the
hierarchy won't be drawn.

Or am I not getting the point here? :)
--~--~---------~--~----~------------~-------~--~----~

3. Android Targets

4. Download Android ?

5. I can't post to Android Developers Group

6. Best Place for Feature Requests?

7. HTC Dream / T-Mobile G1 black landscape and white portrait skins for android emulator available