我有一個空的ListView
問題,我只想顯示消息,當數據庫中存在一些數據....但我得到這條線上的錯誤與空`ListView`問題
android:id="@*android:id/list"
和 android:id="@*android:id/empty"
錯誤是:
Illegal resource reference: @*android resources are private and not always present
我的代碼是這樣.....
<ListView
android:id="@*android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:listSelector="@*android:color/transparent"
android:drawSelectorOnTop="false"
android:cacheColorHint="#00000000"
android:divider="@drawable/line"
android:dividerHeight="3.0dip" />
<TextView
android:id="@*android:id/empty"
android:textColor="#ff777777"
android:gravity="center"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="No data" />
</LinearLayout>
請幫我在這...
刪除* s來解決您的問題。 –