enum {
AVCaptureDevicePositionBack = 1,
AVCaptureDevicePositionFront = 2
};
typedef NSInteger AVCaptureDevicePosition;
闪光灯开关
enum {
AVCaptureFlashModeOff = 0,
AVCaptureFlashModeOn = 1,
AVCaptureFlashModeAuto = 2
};
typedef NSInteger AVCaptureFlashMode;
手电筒开关
enum {
AVCaptureTorchModeOff = 0,
AVCaptureTorchModeOn = 1,
AVCaptureTorchModeAuto = 2,
};
typedef NSInteger AVCaptureTorchMode;
焦距调整
enum {
AVCaptureFocusModeLocked = 0,
AVCaptureFocusModeAutoFocus = 1,
AVCaptureFocusModeContinuousAutoFocus = 2,
};
typedef NSInteger AVCaptureFocusMode;
曝光量调节
enum {
AVCaptureExposureModeLocked = 0,
AVCaptureExposureModeAutoExpose = 1,
AVCaptureExposureModeContinuousAutoExposure = 2,
};
typedef NSInteger AVCaptureExposureMode;
白平衡
enum {
AVCaptureWhiteBalanceModeLocked = 0,
AVCaptureWhiteBalanceModeAutoWhiteBalance = 1,
AVCaptureWhiteBalanceModeContinuousAutoWhiteBalance = 2,
};
typedef NSInteger AVCaptureWhiteBalanceMode;
去掉拖动时候的黑色阴影 android:cacheColorHint="#00000000"
或者listview.setCacheColorHint(0);
对于ListActivity也一样,只需要在onCreate中加上this.getListView().setCacheColorHint(0);
去掉选中时候的颜色android:listSelector="#ffffff"(设置选中颜色为白色)
设置每个Item的高度:可以直接在Item的布局文件中设置android:minHeight="55dip"
设置listview边上的滚动条:
隐藏:android:scrollbars="none" setVerticalScrollBarEnabled(true);
setScrollbarFadingEnabled(true);不活动的时候隐藏,活动的时候显示
设置分割线颜色android:divider="#cccccc"
高度 android:dividerHeight="0.5dip"
<ListView
android:id="@+id/CallList"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:cacheColorHint="#00000000"
android:background="#ffffff"
android:listSelector="#ffffff"
android:divider="#cccccc"
android:dividerHeight="0.5dip">
</ListView>
如果listView的OnItemClickListener无法被触发的时候,检查下item中的子控件,将里面的能接收事件的控件,比如Button的android:focusable = "false"。这样就没有问题了。
http://blog.sina.com.cn/s/blog_59f3b7970100gqyu.html
// WindowManager manage=getWindowManager(); // Display display=manage.getDefaultDisplay(); // screenHeight=display.getHeight(); // screenWidth=display.getWidth();
动态添加控件
http://blog.csdn.net/zcpangzi/article/details/5420805
http://www.iteye.com/topic/717932