该文被密码保护。 阅读全文
posted @ 2011-08-01 15:37 还是你最好 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 代码与范例:首先需要在Manifest文件中添加以下内容:以使程序获取摄像头使用以及自动对焦功能的使用权限。CameraTestActivity.javaimport android.app.Activity;import android.os.Bundle;import android.view.Window;import android.view.WindowManager; public class CameraTestActivity extends Activity { @Override public void onCreate(Bundle bundle) { ... 阅读全文
posted @ 2011-08-01 15:35 还是你最好 阅读(28322) 评论(0) 推荐(1) 编辑
摘要: 编写xml文件放到res/drawable-*/下面最基本的写法如下<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <gradient android:startColor="#3A3C39" android:endColor="#181818" android:angle="270" 阅读全文
posted @ 2011-08-01 10:51 还是你最好 阅读(14173) 评论(0) 推荐(1) 编辑