每次遇到这个问题,我都无法解决,有人可以帮帮我吗?
日志猫:
11-20 12:48:19.842: E/AndroidRuntime(344): FATAL EXCEPTION: main
11-20 12:48:19.842: E/AndroidRuntime(344): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.refreshmedia.nieuwsregio/com.media.news.NewsActivity}:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.media.news/com.media.news.Home}:
android.view.InflateException: Binary XML file line #3: Error inflating class Listview
11-20 12:48:19.842: E/AndroidRuntime(344): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
11-20 12:48:19.842: E/AndroidRuntime(344): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
11-20 12:48:19.842: E/AndroidRuntime(344): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
11-20 12:48:19.842: E/AndroidRuntime(344): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
11-20 12:48:19.842: E/AndroidRuntime(344): at android.os.Handler.dispatchMessage(Handler.java:99)
11-20 12:48:19.842: E/AndroidRuntime(344): at android.os.Looper.loop(Looper.java:123)
11-20 12:48:19.842: E/AndroidRuntime(344): at android.app.ActivityThread.main(ActivityThread.java:3683)
11-20 12:48:19.842: E/AndroidRuntime(344): at java.lang.reflect.Method.invokeNative(Native Method)
11-20 12:48:19.842: E/AndroidRuntime(344): at java.lang.reflect.Method.invoke(Method.java:507)
11-20 12:48:19.842: E/AndroidRuntime(344): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
11-20 12:48:19.842: E/AndroidRuntime(344): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
11-20 12:48:19.842: E/AndroidRuntime(344): at dalvik.system.NativeStart.main(Native Method)
这是我的 XML 文件:
<Listview xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/android:list"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="fill_parent">
<TextView android:id="@+id/android:empty"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</Listview>