最近的项目中遇到listview中弹出框里面嵌套一个spinner,但是反复调试尝试后总是崩溃,调试后在这个位置出错(高亮部分):

(){height=buildDropDown()noInputMethod=isInputMethodNotNeeded().setAllowScrollingAnchorParent(!noInputMethod).setWindowLayoutType()(.isShowing()){widthSpec(==ViewGroup.LayoutParams.){widthSpec=-}(==ViewGroup.LayoutParams.){widthSpec=getAnchorView().getWidth()}{widthSpec=}heightSpec(==ViewGroup.LayoutParams.){heightSpec=noInputMethod?height:ViewGroup.LayoutParams.(noInputMethod){.setWidth(==ViewGroup.LayoutParams.?ViewGroup.LayoutParams.:).setHeight()}{.setWidth(==ViewGroup.LayoutParams.?ViewGroup.LayoutParams.:).setHeight(ViewGroup.LayoutParams.)}}(==ViewGroup.LayoutParams.){heightSpec=height}{heightSpec=}.setOutsideTouchable(!&&!).update(getAnchorView()(widthSpec<)?-:widthSpec(heightSpec<)?-:heightSpec)}{widthSpec(==ViewGroup.LayoutParams.){widthSpec=ViewGroup.LayoutParams.}{}heightSpec(==ViewGroup.LayoutParams.){heightSpec=ViewGroup.LayoutParams.}{(==ViewGroup.LayoutParams.){heightSpec=height}{heightSpec=}}.setWidth(widthSpec).setHeight(heightSpec).setClipToScreenEnabled().setOutsideTouchable(!&&!).setTouchInterceptor().showAsDropDown(getAnchorView()).setSelection(ListView.)(!||.isInTouchMode()){clearListSelection()}(!){.post()}}}

后来在AndroidManifest.xml中加入这个主题属性就可以了(红色部分):

<activity android:name=".team.TeamMate"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Light.NoTitleBar" />

调试的机型为HUAWEI android4.4.2。

更多相关文章

  1. phonegap+jquerymobile开发android的心得(2)
  2. android之ScrollView里嵌套ListView(转)
  3. android wifi调试总结 theros AR6K命令小结 android wifi debug
  4. delphi XE 5 Android(安卓)真机调试简易安装教程
  5. Mac 进行 android 真机调试
  6. Ubuntuecplise中连接Android真机…
  7. 【Android(安卓)初学】6、线性布局--深入LinearLayout
  8. Android之蓝牙startDiscovery()搜索不到设备
  9. 更新Android(安卓)SDK 出错 Failed to rename directory \temp

随机推荐

  1. 日志易AIOps实践:日志数据大有用途
  2. 金融行业新核心系统建设及同城应用级双活
  3. 手把手教你vscode配置golang开发环境的步
  4. 金融企业容器云平台架构设计需要清楚的8
  5. MySQL闪回工具--MyFlash
  6. 使用binlog2sql工具来恢复数据库
  7. 银行双活容灾建设方案技术手册——分析篇
  8. js基础知识:Ajax的get,post异步请求 及 选
  9. Excelize 2.4.0 正式版发布, 新增 152 项
  10. 4.07字符串与数组的一些常用方法