本文整理汇总了C#中Android.Equals方法的典型用法代码示例。如果您正苦于以下问题:C# Android.Equals方法的具体用法?C# Android.Equals怎么用?C# Android.Equals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Android
的用法示例。
在下文中一共展示了Android.Equals方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Delete
//@Override
public override int Delete(Android.Net.Uri uri, String selection, String[] selectionArgs)
{
// Log.v(TAG, "Delete(uri=" + uri + ", selection=" + selection + ", Args=" + selectionArgs);
if (uri.Equals(BowlingContract.BCScorecard.CONTENT_URI))
{
deleteDatabase();
return 0;
}
SQLiteDatabase db = mDBHelper.WritableDatabase;
int match = sUriMatcher.Match(uri);
//
String selectionCriteria = selection;
switch (match)
{
case SCORECARD_ID:
String id = BowlingContract.BCScorecard.getScorecardId(uri);
// not used but sample.
selectionCriteria = BowlingContract.BaseColumns._ID + "=" + id;
// + (!TextUtils.isEmpty(selection) ? " AND (" + selection + ")" : "");
return db.Delete(BowlingDatabase.Table_SCORECARD, selectionCriteria, selectionArgs);
default:
throw new Exception("Unknown uri: " + uri);
}
}
示例2: Render
private void Render (Android.Gms.Maps.Model.Marker marker, View view)
{
int id_Imagen=0;
foreach (Ciudad_Marca ciudad in Ciudades)
{
if (marker.Equals (ciudad.Marcador))
{
id_Imagen = parent.Resources.GetIdentifier (ciudad.Imagen, "drawable", parent.PackageName);
}
}
((ImageView) view.FindViewById (Resource.Id.badge)).SetImageResource (id_Imagen);
System.String titulo = marker.Title;
TextView txtTitulo = ((TextView) view.FindViewById (Resource.Id.title));
if (titulo != null) {
txtTitulo.Text = titulo;
} else {
txtTitulo.Text = ("");
}
System.String descripcion = marker.Snippet;
TextView txtDescripcion = ((TextView) view.FindViewById(Resource.Id.snippet));
if (descripcion != null) {
txtDescripcion.Text = descripcion;
} else {
txtDescripcion.Text = "";
}
}
示例3: OnClick
public void OnClick(Android.Views.View view)
{
if (view.Equals(mapControlDemo.zoomButton))
{
mapControlDemo.PerfomZoom();
}
else if (view.Equals(mapControlDemo.rotateButton))
{
mapControlDemo.PerfomRotate();
}
else if (view.Equals(mapControlDemo.overlookButton))
{
mapControlDemo.PerfomOverlook();
}
else if (view.Equals(mapControlDemo.saveScreenButton))
{
// ��ͼ����SnapshotReadyCallback�б���ͼƬ�� sd ��
mapControlDemo.mBaiduMap.Snapshot(new ISnapshotReadyCallbackImpl(this));
Toast.MakeText(mapControlDemo, "���ڽ�ȡ��ĻͼƬ...",
ToastLength.Short).Show();
}
mapControlDemo.UpdateMapState();
}
示例4: OnClick
public void OnClick(Android.Views.View view)
{
if (view.Equals(mapControlDemo.zoomButton))
{
mapControlDemo.PerfomZoom();
}
else if (view.Equals(mapControlDemo.rotateButton))
{
mapControlDemo.PerfomRotate();
}
else if (view.Equals(mapControlDemo.overlookButton))
{
mapControlDemo.PerfomOverlook();
}
else if (view.Equals(mapControlDemo.saveScreenButton))
{
//截图,在MKMapViewListener中保存图片
bool x = mapControlDemo.mMapView.CurrentMap;
Toast.MakeText(mapControlDemo, "正在截取屏幕图片...", ToastLength.Short).Show();
}
mapControlDemo.UpdateMapState();
}