2010-02-12 54 views

回答

2

xml文件中的每個視圖都必須定義layout_height和layout_width屬性。如果你看第25行的xml文件,你應該錯過了。即:

<LinearLayout layout_height="fill_parent" 
       layout_width="fill_parent"/> 
3

您需要刪除指定活動的屬性parent =「android:Theme」。你的問題將解決。請參考計算器

this鏈接如果你在你的AndroidManifest.xml中使用android:theme="@android:style/Theme.Holo",然後在Android 2.3設備或Android 2.2的設備上運行你的應用程序,然後你會看到在啓動時警告。可能的解決方案是here