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


C# Android.Equals方法代码示例

本文整理汇总了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);
            }
        }
开发者ID:wspeerbrecker,项目名称:XamarinScorecard,代码行数:26,代码来源:BowlingProvider.cs

示例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 = "";
			}



		}
开发者ID:DiLRandI,项目名称:Xamarin.android,代码行数:37,代码来源:CustomInfoWindowAdapter.cs

示例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();
            }
开发者ID:Yi-shion,项目名称:Xamarin,代码行数:24,代码来源:MapControlDemo.cs

示例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();
            }
开发者ID:hnhhzy,项目名称:BaiduMap_SDK_DEMO_for_Xamarin.Android,代码行数:23,代码来源:MapControlDemo.cs


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