小编fre*_*vaz的帖子

为什么 text2.Text = "message" 在我的代码中不起作用?

为什么 text2.Text = "message" 在我的代码中不起作用?我想按照下面的源代码在函数中使用它。我在 Visual Stduio 中使用 Mono for android 在 C# 中进行开发。

源代码:

using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;

namespace ChatClient_Android
{
[Activity(Label = "ChatClient_Android", MainLauncher = true, Icon = "@drawable/icon")]
public class MainChat : Activity
{
    protected override void OnCreate(Bundle bundle)
    {
        base.OnCreate(bundle);

        // Set our view from the "main" layout resource
        SetContentView(Resource.Layout.Main);

        // Get our button from the layout resource,
        // and attach an event to it
        EditText …
Run Code Online (Sandbox Code Playgroud)

c# android visual-studio xamarin.android

0
推荐指数
1
解决办法
247
查看次数

Android C# 中如何通过 USB 端口发送数据?

我正在 Visual Studio 上使用 Mono for Android C# 开发一个应用程序。

Android C#中如何通过USB端口发送数据?

方式serialPort1.Write("1");

c# usb android xamarin.android

0
推荐指数
1
解决办法
5272
查看次数

标签 统计

android ×2

c# ×2

xamarin.android ×2

usb ×1

visual-studio ×1