上一页 1 ··· 16 17 18 19 20
摘要: 这里面包含两种调用摄像头的方法,一种是自己调用摄像头 ,一种是直接调用系统的摄像头 Activity 1 package cn.itcast.camera; 2 3 import java.io.File; 4 5 import android.app.Activity; 6 import android.content.Intent; 7 import android.graphics.Bitmap; 8 import android.graphics.BitmapFactory; 9 import android.hardware.Camera;10 import android.ha.. 阅读全文
posted @ 2013-01-19 19:41 王世桢 阅读(306) 评论(0) 推荐(0) 编辑
摘要: recoder.set的时候 已经要注意顺序否则有可能会导致初始化失败 下面直接上代码了AndroidManifest.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <manifest xmlns:android="http://schemas.android.com/apk/res/android" 3 package="cn.itcast.videorecoder" 4 android:versionCode="1" 5 an 阅读全文
posted @ 2013-01-19 19:37 王世桢 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 简单说类似与自定义控件,只不过自定义控件针对的是view 而样式与主题针对的是属性、元素在TexvView中引入样式layout.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_pare 阅读全文
posted @ 2013-01-09 19:37 王世桢 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 这里只是最简单的实现类似与一个系统默认的界面直接上代码了 1 package cn.itcast.codeui; 2 3 import android.app.Activity; 4 import android.os.Bundle; 5 import android.view.View; 6 import android.view.View.OnClickListener; 7 import android.widget.Button; 8 import android.widget.LinearLayout; 9 import android.widget.TextView;10 11 . 阅读全文
posted @ 2013-01-09 19:34 王世桢 阅读(182) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20