[dev_minibus-d_230425_3.2.0] 优化红绿灯显示
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/LinearLayout1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="@dimen/vertical_margin"
|
||||
android:paddingLeft="@dimen/horizontal_margin"
|
||||
android:paddingRight="@dimen/horizontal_margin"
|
||||
android:paddingTop="@dimen/vertical_margin"
|
||||
tools:context="com.serenegiant.usb.CameraDialog" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/camera" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/spinner1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@id/android:empty"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="36dp"
|
||||
android:text="@string/no_device" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/name_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="@dimen/list_height_min"
|
||||
android:textSize="36dp" >
|
||||
|
||||
</CheckedTextView>
|
||||
Binary file not shown.
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="button_size">48dp</dimen>
|
||||
<dimen name="horizontal_margin">16dp</dimen>
|
||||
<dimen name="list_font_size">18sp</dimen>
|
||||
<dimen name="list_height_min">32dp</dimen>
|
||||
<dimen name="vertical_margin">16dp</dimen>
|
||||
<string name="app_name">libusbcamera</string>
|
||||
<string name="camera">Camera</string>
|
||||
<string name="no_device">未搜索到可用USB Camera设备</string>
|
||||
<string name="permission_audio">No audio recording permission. \nAll audio function is disabled</string>
|
||||
<string name="permission_audio_recording_reason">Audio recording permission is necessary for movie capture with audio.</string>
|
||||
<string name="permission_audio_recording_request">Audio recording permission is necessary for movie capture with audio.</string>
|
||||
<string name="permission_audio_streaming_reason">Audio recording permission is necessary for streaming with audio.</string>
|
||||
<string name="permission_audio_streaming_request">Audio recording permission is necessary for streaming with audio.</string>
|
||||
<string name="permission_camera">No camera access permission</string>
|
||||
<string name="permission_camera_finish">No camera access permission. \nApp will finish soon</string>
|
||||
<string name="permission_camera_reason">Camera access permission is necessary for fallback to built in camera.</string>
|
||||
<string name="permission_camera_request">Camera access permission is necessary for fallback to built in camera.</string>
|
||||
<string name="permission_ext_storage">No permission of writing external storage. \nMovie/still image capturing are disabled.</string>
|
||||
<string name="permission_ext_storage_finish">No writing external storage permission. \nApp will finish soon</string>
|
||||
<string name="permission_ext_storage_reason">Permission of writing external storage is necessary for movie/still image capturing.</string>
|
||||
<string name="permission_ext_storage_request">Permission of writing external storage is necessary for movie/still image capturing.</string>
|
||||
<string name="permission_hardware_id_request">Permission to access phone state/hardware id necessary for calling.</string>
|
||||
<string name="permission_location">No location access permission</string>
|
||||
<string name="permission_location_finish">No location access permission. \nApp will finish soon</string>
|
||||
<string name="permission_location_reason">Location access permission is necessary for %s</string>
|
||||
<string name="permission_location_request">Location access permission is necessary for %s</string>
|
||||
<string name="permission_network">No network access permission.</string>
|
||||
<string name="permission_network_finish">No network access permission. \nApp will finish soon</string>
|
||||
<string name="permission_network_reason">Network access permission is necessary for streaming.</string>
|
||||
<string name="permission_network_request">Network access permission is necessary for streaming.</string>
|
||||
<string name="permission_title">Regarding permission</string>
|
||||
<string name="refresh">刷新</string>
|
||||
<string name="select">请选择USB摄像头</string>
|
||||
</resources>
|
||||
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
~ UVCCamera
|
||||
~ library and sample to access to UVC web camera on non-rooted Android device
|
||||
~
|
||||
~ Copyright (c) 2014-2017 saki t_saki@serenegiant.com
|
||||
~
|
||||
~ 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.
|
||||
~
|
||||
~ All files in the folder are under this Apache License, Version 2.0.
|
||||
~ Files in the libjpeg-turbo, libusb, libuvc, rapidjson folder
|
||||
~ may have a different license, see the respective files.
|
||||
-->
|
||||
|
||||
<usb>
|
||||
<usb-device class="239" subclass="2" /> <!-- all device of UVC -->
|
||||
<!-- a few android 9.0 -->
|
||||
<usb-device class="14" subclass="9" />
|
||||
<usb-device class="2" subclass="0" />
|
||||
<usb-device class="6" subclass="-1" />
|
||||
<usb-device class="39" subclass="0" />
|
||||
<usb-device product-id="4836" vendor-id="9573" />
|
||||
<usb-device product-id="2229" vendor-id="1133" />
|
||||
<usb-device product-id="640" vendor-id="1409" />
|
||||
<usb-device product-id="258" vendor-id="9228" />
|
||||
</usb>
|
||||
Reference in New Issue
Block a user