两个ListActivity不兼容么? 自己定义一个id不行吗?android:id="@+id/mylist" 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 自己定义的ID,就不要继承ListActivity了。像正常组件一样,填充数据,显示,就OK啦! 刚测试了下 两个是没有问题估计是数据库出了问题 正在debug、、、 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingLeft="8dp" android:paddingRight="8dp"> <ListView android:id="@id/android:list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#00FF00" android:layout_weight="1" android:drawSelectorOnTop="false"/> <TextView id="@id/android:empty" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#FF0000" android:text="No data"/> </LinearLayout>根据文档显示 标红的两句好像应该没有加号,因以往的@+id/mylist不一样~~ 又来发问了,我怎么解析从服务器传过来的字符串?内容是xml,也就是解析xml android4.1 launcher修改 button的监听方法selector与setOnTouchListener的关系 android开发关于百度地图添加自定义控件的 android系统升级问题 安卓开发 短信提示 自定义控件里面怎么跳转activity actionbar设置搜索框,如何取到用户输入的内容 传递数据 activity 红心点赞按钮怎么做? Android WebView 显示 swf文件 如何控制其大小? IConnectivityManager.stub类代码文件位置在哪里
像正常组件一样,填充数据,显示,就OK啦!
估计是数据库出了问题 正在debug、、、
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingLeft="8dp"
android:paddingRight="8dp">
<ListView android:id="@id/android:list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#00FF00"
android:layout_weight="1"
android:drawSelectorOnTop="false"/>
<TextView id="@id/android:empty"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FF0000"
android:text="No data"/>
</LinearLayout>根据文档显示 标红的两句好像应该没有加号,因以往的@+id/mylist不一样~~