解决方案 »
- WifiManager.startScanActive()没有定义?(Android Wifi Scan的间隔可以控制吗)
- 自制锁屏界面的疑问
- Android自带的jar包没有LogFactory解决方法
- Barnacle Wifi Tether 有人研究过吗?
- 有关内核更新问题
- android的view.getScrollX()与scroll的getCurrX()有什么区别?
- 这种listview怎么实现
- 在widget点击了按钮,怎么后台刷新Activity
- 在eclipse的android项目中导入自己写的jar包问题
- android模拟器不能访问本地的webservice
- 求大神帮忙!
- INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION特定机器上出现
我把手机横过来ListView就显示出来了。难道是我布局的问题,贴出布局文件如下:<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="公告类型:"
/>
<Spinner
android:id="@+id/spinner_announce"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:prompt="@string/announcePrompt"/>
</LinearLayout>
<ListView
android:id="@+id/listView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
</ListView>
<TextView
android:text="No Data"
android:id="@+id/ltvEmpty"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</TextView>
</LinearLayout>