| <?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2019 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/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <resources> |
| <attr name="scaleType" format="enum"> |
| <enum name="fillStart" value="0" /> |
| <enum name="fillCenter" value="1" /> |
| <enum name="fillEnd" value="2" /> |
| <enum name="fitStart" value="3" /> |
| <enum name="fitCenter" value="4" /> |
| <enum name="fitEnd" value="5" /> |
| </attr> |
| <declare-styleable name="CameraView"> |
| <attr name="scaleType" /> |
| <attr name="lensFacing" format="enum"> |
| <enum name="none" value="0" /> |
| <enum name="front" value="1" /> |
| <enum name="back" value="2" /> |
| </attr> |
| <attr name="captureMode" format="enum"> |
| <enum name="image" value="0" /> |
| <enum name="video" value="1" /> |
| <enum name="mixed" value="2" /> |
| </attr> |
| <attr name="flash" format="enum"> |
| <enum name="auto" value="1" /> |
| <enum name="on" value="2" /> |
| <enum name="off" value="4" /> |
| </attr> |
| |
| <attr name="pinchToZoomEnabled" format="boolean" /> |
| </declare-styleable> |
| |
| <declare-styleable name="PreviewView"> |
| <attr name="scaleType" /> |
| </declare-styleable> |
| </resources> |
| |