本文整理汇总了C#中android类的典型用法代码示例。如果您正苦于以下问题:C# android类的具体用法?C# android怎么用?C# android使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
android类属于命名空间,在下文中一共展示了android类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: nativeCreate
private static android.graphics.PathDashPathEffect.NativePathEffect nativeCreate(
android.graphics.Path.NativePath native_path, float advance, float phase, int native_style
)
{
return libxobotos_PathDashPathEffect_create(native_path, advance, phase, native_style
);
}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:7,代码来源:PathDashPathEffect.cs
示例17: loadAnimation
/// <summary>
/// Loads an
/// <see cref="Animation">Animation</see>
/// object from a resource
/// </summary>
/// <param name="context">Application context used to access resources</param>
/// <param name="id">The resource id of the animation to load</param>
/// <returns>The animation object reference by the specified id</returns>
/// <exception cref="android.content.res.Resources.NotFoundException">when the animation cannot be loaded
/// </exception>
public static android.view.animation.Animation loadAnimation(android.content.Context
context, int id)
{
android.content.res.XmlResourceParser parser = null;
try
{
parser = context.getResources().getAnimation(id);
return createAnimationFromXml(context, parser);
}
catch (org.xmlpull.v1.XmlPullParserException ex)
{
android.content.res.Resources.NotFoundException rnf = new android.content.res.Resources
.NotFoundException("Can't load animation resource ID #0x" + Sharpen.Util.IntToHexString
(id));
rnf.InnerException = ex;
throw rnf;
}
catch (System.IO.IOException ex)
{
android.content.res.Resources.NotFoundException rnf = new android.content.res.Resources
.NotFoundException("Can't load animation resource ID #0x" + Sharpen.Util.IntToHexString
(id));
rnf.InnerException = ex;
throw rnf;
}
finally
{
if (parser != null)
{
parser.close();
}
}
}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:43,代码来源:AnimationUtils.cs
示例18: onCreate
public override void onCreate (android.os.Bundle savedInstanceState)
{
base.onCreate (savedInstanceState);
var activity = (MainActivity)getActivity ();
setListAdapter (activity.createAdapter ());
}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:7,代码来源:MonkeyList.cs
示例19: extractThumbnail
public static global::android.graphics.Bitmap extractThumbnail(android.graphics.Bitmap arg0, int arg1, int arg2, int arg3)
{
global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
if (global::android.media.ThumbnailUtils._m2.native == global::System.IntPtr.Zero)
global::android.media.ThumbnailUtils._m2 = @__env.GetStaticMethodIDNoThrow(global::android.media.ThumbnailUtils.staticClass, "extractThumbnail", "(Landroid/graphics/Bitmap;III)Landroid/graphics/Bitmap;");
return global::MonoJavaBridge.JavaBridge.WrapJavaObjectSealedClass<android.graphics.Bitmap>(@__env.CallStaticObjectMethod(android.media.ThumbnailUtils.staticClass, global::android.media.ThumbnailUtils._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,代码来源:ThumbnailUtils.cs
示例20: nativePostCreate
private static System.IntPtr nativePostCreate(android.graphics.Shader.NativeShader
native_shader, android.graphics.Bitmap.NativeBitmap native_bitmap, int shaderTileModeX
, int shaderTileModeY)
{
return libxobotos_BitmapShader_BitmapShader_postCreate(native_shader, native_bitmap
, shaderTileModeX, shaderTileModeY);
}
开发者ID:hakeemsm,项目名称:XobotOS,代码行数:7,代码来源:BitmapShader.cs
注:本文中的android类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论