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


C# Bundle.PutFloat方法代码示例

本文整理汇总了C#中Bundle.PutFloat方法的典型用法代码示例。如果您正苦于以下问题:C# Bundle.PutFloat方法的具体用法?C# Bundle.PutFloat怎么用?C# Bundle.PutFloat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Bundle的用法示例。


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

示例1: newInstance

		public static Android.Support.V4.App.Fragment newInstance(MainActivity context, int pos, float scale,bool IsBlured)
		{

			Bundle b = new Bundle();
			b.PutInt("pos", pos);
			b.PutFloat("scale", scale);
			b.PutBoolean("IsBlured", IsBlured);	
			MyFragment myf = new MyFragment ();
			return Android.Support.V4.App.Fragment.Instantiate (context,myf.Class.Name, b);
		}
开发者ID:jeedey93,项目名称:xamarin-android-samples,代码行数:10,代码来源:MyFragment.cs

示例2: NewInstance

        public static ImageFragment NewInstance(string imagePath, float rotation)
        {
            Bundle args = new Bundle();
            args.PutString(EXTRA_IMAGE_PATH, imagePath);
            args.PutFloat(EXTRA_IMAGE_ROTATION, rotation);

            ImageFragment fragment = new ImageFragment();
            fragment.Arguments = args;
            fragment.SetStyle((int)DialogFragmentStyle.NoTitle, 0);

            return fragment;
        }
开发者ID:yingfangdu,项目名称:BNR,代码行数:12,代码来源:ImageFragment.cs

示例3: NewInstance

        public static FloatViewFragment NewInstance(string titleLabel, float value)
        {
            var args = new Bundle();
            args.PutString("titleLabel", titleLabel);
            args.PutFloat("value", value);

            var f = new FloatViewFragment
            {
                Arguments = args,
                ShowsDialog = true
            };

            return f;
        }
开发者ID:milindur,项目名称:MdkControlApp,代码行数:14,代码来源:FloatViewFragment.cs

示例4: OnSaveInstanceState

 protected override void OnSaveInstanceState(Bundle outState)
 {
     outState.PutInt("steps", steps);
     outState.PutFloat("calories", calories);
     outState.PutFloat("speed", speed);
     outState.PutFloat("distance", distance);
     outState.PutLong("time", chrono.Base);
     outState.PutBoolean("run", run);
     base.OnSaveInstanceState(outState);
 }
开发者ID:236422,项目名称:Krokomierz,代码行数:10,代码来源:PedometerActivity.cs

示例5: OnSaveInstanceState

		protected override void OnSaveInstanceState (Bundle outState)
		{
			outState.PutFloat ("step_count", count);
			outState.PutBoolean ("visible", visible);
			base.OnSaveInstanceState (outState);
		}
开发者ID:CHANDAN145,项目名称:monodroid-samples,代码行数:6,代码来源:SensorsActivity.cs

示例6: OnSaveInstanceState

 protected override IParcelable OnSaveInstanceState()
 {
     var bundle = new Bundle();
       bundle.PutParcelable(INSTANCE_STATE_SAVEDSTATE, base.OnSaveInstanceState());
       bundle.PutFloat(INSTANCE_STATE_PROGRESS, Progress);
       bundle.PutFloat(INSTANCE_STATE_MARKER_PROGRESS, MarkerProgress);
       return bundle;
 }
开发者ID:RobSchoenaker,项目名称:MonoDroidToolkit,代码行数:8,代码来源:HoloCircularProgressBar.cs

示例7: OnSaveInstanceState

		protected override IParcelable OnSaveInstanceState ()
		{
			Bundle bundle = new Bundle();
			bundle.PutParcelable("saved_state", base.OnSaveInstanceState());
			bundle.PutFloat("progress", _progress);
			bundle.PutFloat("marker_progress", _markerProgress);
			bundle.PutInt("progress_color", _progressColor);
			bundle.PutInt("progress_background_color", _progressBackgroundColor);
			bundle.PutBoolean("thumb_visible", _isThumbEnabled);
			bundle.PutBoolean("marker_visible", _isMarkerEnabled);
			return bundle;
		}
开发者ID:jeedey93,项目名称:xamarin-android-samples,代码行数:12,代码来源:HoloCircularProgressBar.cs


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