Click here to Skip to main content
14,830,769 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hai i am trying to open xml file in androoid project but i am not able to do and i am getting the fallowing error when i am trying to open in eclipse.


Error is:-
C#
Exception raised during rendering: com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup
Exception details are logged in Window > Show View > Error Log
The following classes could not be instantiated:
- android.support.v4.widget.SwipeRefreshLayout (Open Class, Show Error Log)
See the Error Log (Window > Show View) for more details.
Posted
Comments
Richard MacCutchan 19-Jan-16 3:32am
   
Without seeing your code it is impossible to suggest anything.
Member 11944583 19-Jan-16 3:43am
   
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/projectsLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
android:orientation="vertical"
tools:context="com.annomap.activity.ProjectsListActivity" >

<android.support.v4.widget.swiperefreshlayout
android:id="@+id/swipe_container"
="" android:layout_width="match_parent" android:layout_height="match_parent">

<ListView
android:id="@+id/projectsList"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="15dp" />


</LinearLayout>
Richard MacCutchan 19-Jan-16 3:50am
   
That does not show wherethe exception occurred, so is not much help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900