I am getting this warning on a new project.
"Undefined complexType 'java.lang.Object' is used as a base for complex type extension."
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android">
<android:orientation="vertical">
<android:layout_width="match_parent">
<android:layout_height="match_parent"/>
Have schemas android-layout-xml.xsd, schemas.android.com.apk.res.android.xsd, schemas.android.com.apk.red.auto.xsd, schemas.android.com.tools.xsd
Any ideas as to why I only get items showing up if I remove LinearLayout?
If I put anything inside a layout it wont show any intellisense.
Thanks
That xml doesnt look right, try the below. I've also added a button so you can see an example content item.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<Button
android:id="@+id/MyButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="MyButton" />
</LinearLayout>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.