xamarin的官网实例 超实用
xamarin的官网 Js调用服务 超实用
xamarin的官网 手机嵌入网页开发 超实用
官网 广播器使用
官网 函数文档
xamarin清单网址
apk打包,打包就是存档之后进行分布,存档和分布是特有名词,没有准确的文档,要参考下面两个网站,自己学习完成。
service长存设置,这边博客写的很好。
辅助网站
安卓官网社区 没啥用
href="http://www.runoob.com/androID/androID-tutorial.HTML%20" target="_blank">http://www.runoob.com/androID/androID-tutorial.HTML 安卓菜鸟教程 入门实用
添加VIEw.IOnClickListener ,btn_search.SetonClickListener(this);开启监听
OnClick(VIEw v)里判断控件 if (v.ID == Resource.ID.btn_search)
[Activity(Label = ,MainLauncher = ,Icon = </span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #0000ff;">protected</span> <span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #0000ff;">overr<a href="https://m.jb51.cc/tag/ID/" target="_blank" >ID</a>e</span> <span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #0000ff;">vo<a href="https://m.jb51.cc/tag/ID/" target="_blank" >ID</a></span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #000000;"> OnCreate(Bundle bundle) { </span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #0000ff;">base</span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #000000;">.OnCreate(bundle); SetContentV<a href="https://m.jb51.cc/tag/IE/" target="_blank" >IE</a>w(Resource.Layout.Main); txt_res<a href="https://m.jb51.cc/tag/ul/" target="_blank" >ul</a>t </span>= FindV<a href="https://m.jb51.cc/tag/IE/" target="_blank" >IE</a>wBy<a href="https://m.jb51.cc/tag/ID/" target="_blank" >ID</a><TextView><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #000000;">(Resource.<a href="https://m.jb51.cc/tag/ID/" target="_blank" >ID</a>.txt_res<a href="https://m.jb51.cc/tag/ul/" target="_blank" >ul</a>t); btn_search </span>= FindV<a href="https://m.jb51.cc/tag/IE/" target="_blank" >IE</a>wBy<a href="https://m.jb51.cc/tag/ID/" target="_blank" >ID</a><Button><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #000000;">(Resource.<a href="https://m.jb51.cc/tag/ID/" target="_blank" >ID</a>.btn_search); btn_sitedomain </span>= FindV<a href="https://m.jb51.cc/tag/IE/" target="_blank" >IE</a>wBy<a href="https://m.jb51.cc/tag/ID/" target="_blank" >ID</a><EditText><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #000000;">(Resource.<a href="https://m.jb51.cc/tag/ID/" target="_blank" >ID</a>.btn_sitedomain); </span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #000000;"> <span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #00ccff;"> btn_search.S<a href="https://www.jb51.cc/tag/eto/" target="_blank" >eto</a>nC<a href="https://m.jb51.cc/tag/li/" target="_blank" >li</a>ck<a href="https://m.jb51.cc/tag/List/" target="_blank" >List</a>ener(</span></span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #0000ff; background-<a href="https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #00ccff;">this</span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #000000;"><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #00ccff;">);</span> } </span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #0000ff;">pub<a href="https://m.jb51.cc/tag/li/" target="_blank" >li</a>c</span> <span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #0000ff;">vo<a href="https://m.jb51.cc/tag/ID/" target="_blank" >ID</a></span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #000000;"> OnC<a href="https://m.jb51.cc/tag/li/" target="_blank" >li</a>ck(V<a href="https://m.jb51.cc/tag/IE/" target="_blank" >IE</a>w v) { </span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #0000ff;">if</span> (v.<a href="https://m.jb51.cc/tag/ID/" target="_blank" >ID</a> ==<span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #000000;"> Resource.<a href="https://m.jb51.cc/tag/ID/" target="_blank" >ID</a>.btn_search) { </span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #0000ff;">string</span> sitedomain =<span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #000000;"> btn_sitedomain.Text; </span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #0000ff;">string</span> pattern = <span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #800000;">@"</span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #800000;">^[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$</span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #800000;">"</span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #000000;">; Regex reg </span>= <span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #0000ff;">new</span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #000000;"> Regex(pattern); </span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #0000ff;">if</span> (<span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #0000ff;">string</span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #000000;">.IsN<a href="https://m.jb51.cc/tag/ul/" target="_blank" >ul</a>lOrEmpty(sitedomain)) { Toast.MakeText(</span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #0000ff;">this</span>,<span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #800000;">"</span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #800000;">请输入域名</span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #800000;">"</span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #000000;">,ToastLength.Short).Show(); } </span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #0000ff;">else</span> <span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #0000ff;">if</span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #000000;"> (reg.IsMatch(sitedomain)) { progressDialog.Show(); presenter.showRes<a href="https://m.jb51.cc/tag/ul/" target="_blank" >ul</a>t(sitedomain); } </span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #0000ff;">else</span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #000000;"> { Toast.MakeText(</span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #0000ff;">this</span>,<span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #800000;">"</span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #800000;">域名<a href="https://www.jb51.cc/tag/cuowu/" target="_blank" >错误</a>,请重新输入</span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #800000;">"</span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #000000;">,ToastLength.Short).Show(); } } } </span><span https://m.jb51.cc/tag/color/" target="_blank" >color</a>: #000000;"> }
总结 以上是内存溢出为你收集整理的xamarin开始手机软件实用网站全部内容,希望文章能够帮你解决xamarin开始手机软件实用网站所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)