摘要: 引用:http://blog.csdn.net/flowingflying/article/details/6274208LogCat调测信息在Window -> Show View -> Other... -> Android -> LogCat,这样将显示LogCat的窗口,对于System.out.print()以及Log.d(),可以打印出我们所需要的信息,例如:System.out.print("Hello ---------------------/n");Log.d("WEI","Hi ---------- 阅读全文
posted @ 2011-08-08 17:32 镇水古月 阅读(282) 评论(0) 推荐(0)
摘要: 方法一:配置文件 android:theme="@android:style/Theme.NoTitleBar.Fullscreen"详情:<activity android:name=".GameActivity" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation" android:theme="@android:style/Theme.NoTitleBar.Fullscreen&q 阅读全文
posted @ 2011-08-08 15:05 镇水古月 阅读(260) 评论(0) 推荐(0)
摘要: 引用:http://zhidao.baidu.com/question/84867594.html当屏幕变为横屏的时候,系统会重新呼叫当前Activity的OnCreate方法,你可以把以下方法放在你的OnCreate中来检查当前的方向,然后可以让你的SetContentView来载入不同的Layout xml.if (this.getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {Log.i("info", "landscape"); 阅读全文
posted @ 2011-08-08 13:07 镇水古月 阅读(315) 评论(0) 推荐(0)