随笔分类 - 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=&
阅读全文
摘要:布局文件的代码:<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
阅读全文
摘要:建立一个安卓工程,新建一个MyGLSurfaceView继承GLSurfaceView并实现GLSurfaceView.Renderer接口MyGLSurfaceView类的代码public class MyGLSurfaceView extends GLSurfaceView implements GLSurfaceView.Renderer{ //储存OpenGL对象用到的顶点坐标和颜色 private FloatBuffer mVertBuf,mVertColorBuf; //储存OpenGL对象的顶点在mVertBuf中的索引 private ShortBuffer mInde...
阅读全文

浙公网安备 33010602011771号