当前位置: 首页>>代码示例>>C#>>正文


C# android类代码示例

本文整理汇总了C#中android的典型用法代码示例。如果您正苦于以下问题:C# android类的具体用法?C# android怎么用?C# android使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


android类属于命名空间,在下文中一共展示了android类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: fromHtml

 public static global::android.text.Spanned fromHtml(java.lang.String arg0, android.text.Html.ImageGetter arg1, android.text.Html.TagHandler arg2)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (global::android.text.Html._m1.native == global::System.IntPtr.Zero)
         global::android.text.Html._m1 = @__env.GetStaticMethodIDNoThrow(global::android.text.Html.staticClass, "fromHtml", "(Ljava/lang/String;Landroid/text/Html$ImageGetter;Landroid/text/Html$TagHandler;)Landroid/text/Spanned;");
     return global::MonoJavaBridge.JavaBridge.WrapIJavaObject<global::android.text.Spanned>(@__env.CallStaticObjectMethod(android.text.Html.staticClass, global::android.text.Html._m1, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2))) as android.text.Spanned;
 }
开发者ID:JeroMiya,项目名称:androidmono,代码行数:7,代码来源:Html.cs

示例2: IconMenuPresenter

		public IconMenuPresenter(android.content.Context context) : base(new android.view.ContextThemeWrapper
			(context, [email protected]_IconMenu), [email protected]
			icon_menu_layout, [email protected]_menu_item_layout)
		{
			mSubMenuPresenterCallback = new [email protected]llback
				(this);
		}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:7,代码来源:IconMenuPresenter.cs

示例3: get

 public static global::java.lang.String get(java.lang.CharSequence arg0, int arg1, int arg2, android.view.View arg3)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (global::android.text.AutoText._m0.native == global::System.IntPtr.Zero)
         global::android.text.AutoText._m0 = @__env.GetStaticMethodIDNoThrow(global::android.text.AutoText.staticClass, "get", "(Ljava/lang/CharSequence;IILandroid/view/View;)Ljava/lang/String;");
     return global::MonoJavaBridge.JavaBridge.WrapJavaObjectSealedClass<java.lang.String>(@__env.CallStaticObjectMethod(android.text.AutoText.staticClass, global::android.text.AutoText._m0, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg3))) as java.lang.String;
 }
开发者ID:JeroMiya,项目名称:androidmono,代码行数:7,代码来源:AutoText.cs

示例4: clear

 public static void clear(android.text.Editable arg0)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (global::android.text.method.TextKeyListener._m0.native == global::System.IntPtr.Zero)
         global::android.text.method.TextKeyListener._m0 = @__env.GetStaticMethodIDNoThrow(global::android.text.method.TextKeyListener.staticClass, "clear", "(Landroid/text/Editable;)V");
     @__env.CallStaticVoidMethod(android.text.method.TextKeyListener.staticClass, global::android.text.method.TextKeyListener._m0, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
 }
开发者ID:JeroMiya,项目名称:androidmono,代码行数:7,代码来源:TextKeyListener.cs

示例5: decodeByteArray

 public static global::android.graphics.Bitmap decodeByteArray(byte[] arg0, int arg1, int arg2, android.graphics.BitmapFactory.Options arg3)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (global::android.graphics.BitmapFactory._m2.native == global::System.IntPtr.Zero)
         global::android.graphics.BitmapFactory._m2 = @__env.GetStaticMethodIDNoThrow(global::android.graphics.BitmapFactory.staticClass, "decodeByteArray", "([BIILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;");
     return global::MonoJavaBridge.JavaBridge.WrapJavaObjectSealedClass<android.graphics.Bitmap>(@__env.CallStaticObjectMethod(android.graphics.BitmapFactory.staticClass, global::android.graphics.BitmapFactory._m2, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg3))) as android.graphics.Bitmap;
 }
开发者ID:JeroMiya,项目名称:androidmono,代码行数:7,代码来源:BitmapFactory.cs

示例6: formatShortFileSize

 public static global::java.lang.String formatShortFileSize(android.content.Context arg0, long arg1)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (global::android.text.format.Formatter._m1.native == global::System.IntPtr.Zero)
         global::android.text.format.Formatter._m1 = @__env.GetStaticMethodIDNoThrow(global::android.text.format.Formatter.staticClass, "formatShortFileSize", "(Landroid/content/Context;J)Ljava/lang/String;");
     return global::MonoJavaBridge.JavaBridge.WrapJavaObjectSealedClass<java.lang.String>(@__env.CallStaticObjectMethod(android.text.format.Formatter.staticClass, global::android.text.format.Formatter._m1, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1))) as java.lang.String;
 }
开发者ID:JeroMiya,项目名称:androidmono,代码行数:7,代码来源:Formatter.cs

示例7: fromPrivateFile

 public static global::android.gesture.GestureLibrary fromPrivateFile(android.content.Context arg0, java.lang.String arg1)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (global::android.gesture.GestureLibraries._m2.native == global::System.IntPtr.Zero)
         global::android.gesture.GestureLibraries._m2 = @__env.GetStaticMethodIDNoThrow(global::android.gesture.GestureLibraries.staticClass, "fromPrivateFile", "(Landroid/content/Context;Ljava/lang/String;)Landroid/gesture/GestureLibrary;");
     return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallStaticObjectMethod(android.gesture.GestureLibraries.staticClass, global::android.gesture.GestureLibraries._m2, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1))) as android.gesture.GestureLibrary;
 }
开发者ID:JeroMiya,项目名称:androidmono,代码行数:7,代码来源:GestureLibraries.cs

示例8: onTransact

			protected internal override bool onTransact(int code, android.os.Parcel data, android.os.Parcel
				 reply, int flags)
			{
				switch (code)
				{
					case android.os.IBinderClass.INTERFACE_TRANSACTION:
					{
						reply.writeString(DESCRIPTOR);
						return true;
					}

					case TRANSACTION_updateAppWidget:
					{
						data.enforceInterface(DESCRIPTOR);
						int _arg0;
						_arg0 = data.readInt();
						android.widget.RemoteViews _arg1;
						if ((0 != data.readInt()))
						{
							_arg1 = android.widget.RemoteViews.CREATOR.createFromParcel(data);
						}
						else
						{
							_arg1 = null;
						}
						this.updateAppWidget(_arg0, _arg1);
						return true;
					}

					case TRANSACTION_providerChanged:
					{
						data.enforceInterface(DESCRIPTOR);
						int _arg0;
						_arg0 = data.readInt();
						android.appwidget.AppWidgetProviderInfo _arg1;
						if ((0 != data.readInt()))
						{
							_arg1 = android.appwidget.AppWidgetProviderInfo.CREATOR.createFromParcel(data);
						}
						else
						{
							_arg1 = null;
						}
						this.providerChanged(_arg0, _arg1);
						return true;
					}

					case TRANSACTION_viewDataChanged:
					{
						data.enforceInterface(DESCRIPTOR);
						int _arg0;
						_arg0 = data.readInt();
						int _arg1;
						_arg1 = data.readInt();
						this.viewDataChanged(_arg0, _arg1);
						return true;
					}
				}
				return base.onTransact(code, data, reply, flags);
			}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:60,代码来源:IAppWidgetHost.cs

示例9: wrap

 public static global::android.text.style.CharacterStyle wrap(android.text.style.CharacterStyle arg0)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (global::android.text.style.CharacterStyle._m0.native == global::System.IntPtr.Zero)
         global::android.text.style.CharacterStyle._m0 = @__env.GetStaticMethodIDNoThrow(global::android.text.style.CharacterStyle.staticClass, "wrap", "(Landroid/text/style/CharacterStyle;)Landroid/text/style/CharacterStyle;");
     return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallStaticObjectMethod(android.text.style.CharacterStyle.staticClass, global::android.text.style.CharacterStyle._m0, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0))) as android.text.style.CharacterStyle;
 }
开发者ID:JeroMiya,项目名称:androidmono,代码行数:7,代码来源:CharacterStyle.cs

示例10: onTouchEvent

 public static bool onTouchEvent(android.widget.TextView arg0, android.text.Spannable arg1, android.view.MotionEvent arg2)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (global::android.text.method.Touch._m0.native == global::System.IntPtr.Zero)
         global::android.text.method.Touch._m0 = @__env.GetStaticMethodIDNoThrow(global::android.text.method.Touch.staticClass, "onTouchEvent", "(Landroid/widget/TextView;Landroid/text/Spannable;Landroid/view/MotionEvent;)Z");
     return @__env.CallStaticBooleanMethod(android.text.method.Touch.staticClass, global::android.text.method.Touch._m0, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2));
 }
开发者ID:JeroMiya,项目名称:androidmono,代码行数:7,代码来源:Touch.cs

示例11: scrollTo

 public static void scrollTo(android.widget.TextView arg0, android.text.Layout arg1, int arg2, int arg3)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (global::android.text.method.Touch._m1.native == global::System.IntPtr.Zero)
         global::android.text.method.Touch._m1 = @__env.GetStaticMethodIDNoThrow(global::android.text.method.Touch.staticClass, "scrollTo", "(Landroid/widget/TextView;Landroid/text/Layout;II)V");
     @__env.CallStaticVoidMethod(android.text.method.Touch.staticClass, global::android.text.method.Touch._m1, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg3));
 }
开发者ID:JeroMiya,项目名称:androidmono,代码行数:7,代码来源:Touch.cs

示例12: getInitialScrollY

 public static int getInitialScrollY(android.widget.TextView arg0, android.text.Spannable arg1)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (global::android.text.method.Touch._m3.native == global::System.IntPtr.Zero)
         global::android.text.method.Touch._m3 = @__env.GetStaticMethodIDNoThrow(global::android.text.method.Touch.staticClass, "getInitialScrollY", "(Landroid/widget/TextView;Landroid/text/Spannable;)I");
     return @__env.CallStaticIntMethod(android.text.method.Touch.staticClass, global::android.text.method.Touch._m3, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1));
 }
开发者ID:JeroMiya,项目名称:androidmono,代码行数:7,代码来源:Touch.cs

示例13: QwertyKeyListener

		private QwertyKeyListener(android.text.method.TextKeyListener.Capitalize cap, bool
			 autoText, bool fullKeyboard)
		{
			mAutoCap = cap;
			mAutoText = autoText;
			mFullKeyboard = fullKeyboard;
		}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:7,代码来源:QwertyKeyListener.cs

示例14: toHtml

 public static global::java.lang.String toHtml(android.text.Spanned arg0)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (global::android.text.Html._m2.native == global::System.IntPtr.Zero)
         global::android.text.Html._m2 = @__env.GetStaticMethodIDNoThrow(global::android.text.Html.staticClass, "toHtml", "(Landroid/text/Spanned;)Ljava/lang/String;");
     return global::MonoJavaBridge.JavaBridge.WrapJavaObjectSealedClass<java.lang.String>(@__env.CallStaticObjectMethod(android.text.Html.staticClass, global::android.text.Html._m2, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0))) as java.lang.String;
 }
开发者ID:JeroMiya,项目名称:androidmono,代码行数:7,代码来源:Html.cs

示例15: createInstance

 public static global::android.webkit.CookieSyncManager createInstance(android.content.Context arg0)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (global::android.webkit.CookieSyncManager._m1.native == global::System.IntPtr.Zero)
         global::android.webkit.CookieSyncManager._m1 = @__env.GetStaticMethodIDNoThrow(global::android.webkit.CookieSyncManager.staticClass, "createInstance", "(Landroid/content/Context;)Landroid/webkit/CookieSyncManager;");
     return global::MonoJavaBridge.JavaBridge.WrapJavaObjectSealedClass<android.webkit.CookieSyncManager>(@__env.CallStaticObjectMethod(android.webkit.CookieSyncManager.staticClass, global::android.webkit.CookieSyncManager._m1, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0))) as android.webkit.CookieSyncManager;
 }
开发者ID:JeroMiya,项目名称:androidmono,代码行数:7,代码来源:CookieSyncManager.cs


注:本文中的android类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。