85岁欧尼酱 2022-01-15 18:37 采纳率: 38.9%
浏览 9
已结题

关于ProgressBar中环形加载条无法单独正常运行显示

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout     xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    
    <ProgressBar
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />
    
</LinearLayout>

这串代码是我在Androidstudio上运行的,发现正常编译并没有报错,但是在手机安装后会导致软件闪退,

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout     xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <TextView
        android:layout_width="400dp"
        android:layout_height="100dp"
        android:text="im super"
        android:textSize="100dp"
        android:textColor="#ff0000"/>
    <ProgressBar
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />
</LinearLayout>

这边我在他前面随便加入了文本,然后加入环形加载却可以正常运行
我发现网上视频可以单独运行显示,请问是在某个目录加入什么代码导致可以单独运行

  • 写回答

1条回答 默认 最新

  • pumpkin的玄学 2022-01-16 07:32
    关注

    贴一下控制台错误日志

    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 2月22日
  • 创建了问题 1月15日

悬赏问题

  • ¥15 io.jsonwebtoken.security.Keys
  • ¥15 急,ubuntu安装后no caching mode page found等
  • ¥15 联想交换机NE2580O/NE1064TO安装SONIC
  • ¥15 防火墙的混合模式配置
  • ¥15 Ubuntu不小心注销了要怎么恢复啊
  • ¥15 win10电脑安装完plcsim advanced4.0运行时为什么会提示找不到虚拟网卡
  • ¥15 安装powerbuilder10卡在安装程序正在运行这个页面 没有下一步任何指令
  • ¥15 关于mpi的问题:请问遇到这种情况需要怎么解决,出现这个问题后电脑不能进行mpi多核运行只能进行单核运行
  • ¥50 微信聊天记录备份到电脑提示成功了,但还是没同步到电脑微信
  • ¥15 python怎么在已有视频文件后添加新帧