大佬教程收集整理的这篇文章主要介绍了添加按钮时,我的 Xamarin 应用程序崩溃,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
在我添加按钮或进度条之前,我的原生 Xamarin WebVIEw 应用程序运行良好。如果我取消注释下面代码中的一个控件,应用程序会在启动时崩溃。我做错了什么?
<?xml version="1.0" enCoding="utf-8"?>
<linearLayout xmlns:androID="http://scheR_482_11845@as.androID.com/apk/res/androID"
androID:orIEntation="vertical"
androID:layout_wIDth="match_parent"
androID:layout_height="match_parent">
<!--
<button
androID:layout_weight="34"
androID:layout_wIDth="0dip"
androID:layout_height="wrap_content"
androID:orIEntation="vertical"
androID:text="Home"
androID:ID="@+ID/btnHome" />
-->
<relativeLayout
androID:layout_wIDth="match_parent"
androID:layout_height="match_parent"
androID:ID="@+ID/relativeLayout1">
<!--<Progressbar
androID:layout_wIDth="wrap_content"
androID:layout_height="wrap_content"
androID:layout_centerInParent="true"
androID:visibility="invisible"
androID:ID="@+ID/progressbar1" />-->
<androID.webkit.WebVIEw
androID:layout_wIDth="match_parent"
androID:layout_height="match_parent"
androID:ID="@+ID/webVIEw1" />
</relativeLayout>
</linearLayout>
好吧,我所做的只是从头开始创建一个新项目并复制我的所有代码,它运行良好。所以,在我的依赖中的某个地方,我把一些事情搞砸了,我猜。但这适用于新项目。
以上是大佬教程为你收集整理的添加按钮时,我的 Xamarin 应用程序崩溃全部内容,希望文章能够帮你解决添加按钮时,我的 Xamarin 应用程序崩溃所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。