解决方案 »
- android 把第三方apk打包到System.img的问题
- NDK文档问题
- Android 关于查看Activity栈的问题
- 求这样的AlterDialog代码
- MediaScanner扫描图片时表images中datataken字段内容异常
- 实现类似ios中的按下状态延迟恢复的功能
- android 内核3.4 编译时出现错误
- 用adb命令能读取手机短信吗?
- 求助动态设置AlertDialog.Builder的setPositiveButton按钮的文字
- Android实现在文本框内插入图片。
- 求大神帮忙!
- 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>