解决方案 »

  1.   

    59行的LinearLayout掉了个属性,加上就可以 android:orientation="vertical"
      

  2.   


    哦,加上就好了,可是我顶部写过了android:orientation="vertical" 在这里重新弄一个<LinearLayout />还要再写呀
      

  3.   

    顶部那个是main_layout的属性
    而你新添加的那个是category_layout的属性。
      

  4.   


    好的谢谢了  麻烦大神再帮我看下下面这个第七行报:
    Not targeting the latest versions of Android; compatibility modes apply. Consider testing and 
     updating this version. Consult the android.os.Build.VERSION_CODES javadoc for details.
    该如何解决<?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.example.feigenews"
        android:versionCode="1"
        android:versionName="1.0" >    <uses-sdk
            android:minSdkVersion="8"
            android:targetSdkVersion="18" />    <application
            android:allowBackup="true"
            android:icon="@drawable/ic_luncher"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar" >
            <activity
                android:name="com.example.feigenews.MainActivity"
                android:label="@string/app_name" >
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />                <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
        </application></manifest>
      

  5.   

    对着问题代码按ctrl+1选disable checked