?回到主窗口1. 将主窗口的创建模式设为singleTask。2. 直接显示主窗口 1 public class MainActivity extends Activity { 2 3 @Override 4 protected void onCreate(Bundle saved...
分类:
其他好文 时间:
2014-08-22 12:46:46
阅读次数:
366
1.private修饰符
private修饰符用于设置类或类成员的访问权限仅为所属类的内部,
private也被称为私有修饰符。某些时候需要访问私有类成员时,可通过get和set访问器读取或修改。
2.protected修饰符
protected修饰符用于设置类或类成员的访问权限仅为所属类及子类的内部。
3.internal修饰符
internal修饰符修饰的类或类成员的访问权限为同一...
分类:
其他好文 时间:
2014-08-22 10:52:04
阅读次数:
120
protected string GetUnicode(string text) { string result = ""; for (int i = 0; i 32 && (int)text[i] < 127) { ...
分类:
其他好文 时间:
2014-08-21 19:01:44
阅读次数:
194
using UnityEngine;using System.Collections;public class CreateMap : MonoBehaviour { protected GameObject plane; protected GameObject cube; pr...
分类:
其他好文 时间:
2014-08-21 18:39:24
阅读次数:
194
基础题:传入某个属性的set方法的隐含参数的名称是什么? value,它的类型和属性所声名的类型相同。如何在C#中实现继承? 在类名后加上一个冒号,再加上基类的名称。C#支持多重继承么? 不支持。可以用接口来实现。被protected修饰的属性/方法在何处可以访问? 在继承或间接继承与这个类的子类中...
分类:
其他好文 时间:
2014-08-21 18:37:34
阅读次数:
219
一、基本知识点其实要完成这个功能很简单:1、MainActivitystartActivityForResult(intent, 100);//第二个是请求码@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(request...
分类:
移动开发 时间:
2014-08-20 22:46:53
阅读次数:
353
1.创建游戏对象 GameObject.CreatePrimitive(),参数为系统默认的球体,立方体等游戏对象。 AddComponent(),为游戏对象添加组件。 protected GameObject obj; // Use this for initialization ...
分类:
其他好文 时间:
2014-08-20 22:21:32
阅读次数:
194
1.SPWorkflowModification ContextData is XMLSerialized as String.2.Get SPWorkflowModification ContextData in modification page protected void GetConte....
分类:
其他好文 时间:
2014-08-20 16:18:32
阅读次数:
194
点击事件代码.cs protected void Button1_Click(object sender, EventArgs e) { string strPath = "d:/test.xls"; string mystring = "Provider=M...
分类:
Web程序 时间:
2014-08-20 16:09:32
阅读次数:
164
V4的兼容包 API 大概就这4个常用的方法。code 布局 MainActivty@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(saved...
分类:
移动开发 时间:
2014-08-20 13:53:42
阅读次数:
240