本文整理汇总了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);
}
示例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;
}
示例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;
}
示例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);
}
示例5: OnSaveInstanceState
protected override void OnSaveInstanceState (Bundle outState)
{
outState.PutFloat ("step_count", count);
outState.PutBoolean ("visible", visible);
base.OnSaveInstanceState (outState);
}
示例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;
}
示例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;
}