10 2011 档案
摘要:1 @Override 2 protected void onCreate(Bundle icicle) { 3 super.onCreate(icicle); 4 5 Context context = super.getApplicationContext(); 6 7 /*Resources res = this.getResources(); 8 // Problem may happen here! 9 // if set "R.layout.imagebutton" ,it hungs!! 10 XmlPull...
阅读全文
摘要:1.开启samba共享:1 $ sudo /etc/init.d/samba start2.打包,压缩,解压缩: zip:1 $ zip -r file.zip file1 file22 3 $ unzip file.zip tar:1 $ tar -zxvf /home/user/lee/aa.tar.gz -C /home/user/ma <==解压到指定目录2 $ tar -cvf /tmp/etc.tar /etc <==仅打包,不压缩3 $ tar -zcvf /tmp/etc.tar.gz /etc <==打包后,以 gzip 压缩4 $ tar -jcvf /t
阅读全文
摘要:查找了很久,才找出在GLSurfaceView上添加控件的方法。废话不说,本例实现了一个Native opengl es 程序,绘制了一个旋转三角形;当然主题是在GLSurfaceView上添加Layout控件。主要添加了SlidingDrawer和ImageButton。源码:http://files.cnblogs.com/maadiah/GLSurfaceView_Overlay.zip 你可以自己修改、把玩。底部四个是ImageButton,右边是弹出的SlidingDrawer(很不好意思,手头没有像样的图片编辑器,简单点,用内置的icon.png)。主要注意这几点:1.GLSurf
阅读全文

浙公网安备 33010602011771号