Attribure loading from layout improved.

OpenCV namespace added;
Default values for camera_id added;
Aditional constructor with cameraId added.
Resolution added to FPS message.
This commit is contained in:
Alexander Smorkalov
2012-11-27 10:31:19 +04:00
parent 8266eab8b4
commit 0efc32fc21
5 changed files with 51 additions and 6 deletions

View File

@@ -1,5 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<attr name="show_fps" format="boolean"/>
<attr name="camera_index" format="integer"/>
</resources>
<declare-styleable name = "CameraBridgeViewBase" >
<attr name="show_fps" format="boolean"/>
<attr name="camera_id" format="integer" >
<enum name="any" value="-1" />
<enum name="back" value="0" />
<enum name="front" value="1" />
</attr>
</declare-styleable>
</resources>