随笔分类 -  android开发

记录一些关于android的例子
摘要:布局文件的代码:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" tools:context=& 阅读全文
posted @ 2013-04-01 22:21 夏至未至_星辰 阅读(485) 评论(0) 推荐(0)
摘要:布局文件的代码:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <Button android:layout_width="fill_parent" android:layout 阅读全文
posted @ 2013-04-01 21:51 夏至未至_星辰 阅读(215) 评论(0) 推荐(0)
摘要:建立一个安卓工程,新建一个MyGLSurfaceView继承GLSurfaceView并实现GLSurfaceView.Renderer接口MyGLSurfaceView类的代码public class MyGLSurfaceView extends GLSurfaceView implements GLSurfaceView.Renderer{ //储存OpenGL对象用到的顶点坐标和颜色 private FloatBuffer mVertBuf,mVertColorBuf; //储存OpenGL对象的顶点在mVertBuf中的索引 private ShortBuffer mInde... 阅读全文
posted @ 2013-04-01 11:47 夏至未至_星辰 阅读(352) 评论(0) 推荐(0)