- 浏览: 49102 次
- 性别:
- 来自: 深圳
最新评论
文章列表
主动渲染、平面着色、透视投影、near、索引法、glLightfv、glFrustumf、环境光、定位光、定向光、散射光、镜面反射光、法向量、glMaterialfv、高光反射区、点法向量、面法向量、
http://blog.csdn.net/cjkwin/article/details/6011882
http://blog.csdn.net/Crazyjumper/article/details/1968567
package com.example.android.apis.graphics;
import static android.opengl.GLES10.*;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import java.nio.ShortBuffer;
import javax.microedition.khronos.eg ...
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICE ...
package com.example.android.apis.graphics;
import android.app.Activity;
import android.content.Context;
import android.graphics.*;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.*;
public class Patterns extends GraphicsActivity ...
package com.example.android.apis.graphics;
// Need the following import to get access to the app resources, since this
// class is in a sub-package.
//import com.example.android.apis.R;
import android.app.Activity;
import android.content.Context;
import android.graphics.*;
import android.o ...
/*
package com.example.android.apis.graphics;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.ComposePathEffect;
import android.graphics.CornerPathEffect;
import android.graphics.DashPathEffect;
import android.graphics ...
package com.example.android.apis.graphics;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.os.Bundle;
import android.util.Log;
import ...
package com.example.android.apis.graphics;
import android.app.Activity;
import android.content.Context;
import android.graphics.*;
import android.os.Bundle;
import android.view.*;
public class Layers extends GraphicsActivity {
@Override
protected void onCreate(Bundle savedInstan ...
package com.example.android.apis.graphics;
import android.os.Bundle;
import android.app.Dialog;
import android.content.Context;
import android.graphics.*;
import android.view.MotionEvent;
import android.view.View;
public class ColorPickerDialog extends Dialog {
public interface OnCo ...
一、系统上安装了多种浏览器,能否指定某浏览器访问指定页面?请说明原由。
如果在你的android系统上安装了多种浏览器,能否指定某浏览器访问指定页面?答案当然是:肯定的。
具体方法如下:
Intent intent = ne ...
//关键字 Paint,MaskFilte,Path,Xfermode
package com.example.android.apis.graphics;
import android.app.Activity;
import android.content.Context;
import android.graphics.*;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.MotionEvent;
import a ...
<?xml version="1.0" encoding="utf-8"?>
<!-- solid:实心
stroke:描边
dashWidth 虚线一个破折号的宽度,dashGap表示之间隔开的距离。
corners:圆角 android:radius为角的弧度,值越大角越圆。 -->
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid androi ...
//关键字:Shader ,ShapeDrawable
package com.example.android.apis.graphics;
import com.example.android.apis.R;
import android.app.Activity;
import android.content.Context;
import android.graphics.*;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.ShapeDrawable;
impo ...
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICE ...
//关键字:颜色合成,JPEG,PNG图片解压,Bitmap压缩。
package com.example.android.apis.graphics;
import com.example.android.apis.R;
import android.app.Activity;
import android.content.Context;
import android.graphics.*;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.*;
impor ...