-
Notifications
You must be signed in to change notification settings - Fork 557
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1678 from guiseco/develop
Added support to video streaming using a UVC DEVICE + Translation to Brazilian Portuguese (PT-BR)
- Loading branch information
Showing
20 changed files
with
1,326 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?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/dialog_uvc_vertical_margin" | ||
android:paddingLeft="@dimen/dialog_uvc_horizontal_margin" | ||
android:paddingRight="@dimen/dialog_uvc_horizontal_margin" | ||
android:paddingTop="@dimen/dialog_uvc_vertical_margin" | ||
tools:context="org.droidplanner.android.dialogs.UVCDialog" > | ||
|
||
<TextView | ||
android:id="@+id/textView1" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/uvc_device" /> | ||
|
||
<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:text="@string/uvc_device_no_device" /> | ||
|
||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:minHeight="85dp" | ||
android:background="@android:color/black"> | ||
|
||
<TextureView | ||
android:id="@+id/uvc_video_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:minHeight="85dp" /> | ||
|
||
<me.grantland.widget.AutofitTextView | ||
android:id="@+id/uvc_video_status" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center" | ||
android:gravity="center" | ||
android:singleLine="true" | ||
android:text="@string/error_no_video" | ||
android:textColor="@android:color/white" | ||
android:background="@android:color/black" | ||
android:textAllCaps="true" | ||
android:visibility="visible" | ||
tools:visibility="visible"/> | ||
</FrameLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:background="@android:color/black" | ||
android:minHeight="85dp"> | ||
|
||
<TextureView | ||
android:id="@+id/uvc_video_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:minHeight="85dp" /> | ||
|
||
<LinearLayout | ||
android:id="@+id/widget_button_bar" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:layout_centerHorizontal="true" | ||
android:layout_marginBottom="5dp" | ||
android:orientation="horizontal" | ||
android:visibility="gone" | ||
tools:visibility="visible"> | ||
|
||
<android.support.design.widget.FloatingActionButton | ||
android:id="@+id/uvc_take_picture_button" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
app:backgroundTint="@android:color/white" | ||
app:fabSize="normal" | ||
app:elevation="6dp" | ||
app:borderWidth="0dp" | ||
android:layout_margin="5dp" | ||
android:src="@drawable/ic_camera_drawable" | ||
android:text="@string/label_photo" /> | ||
|
||
<android.support.design.widget.FloatingActionButton | ||
android:id="@+id/uvc_record_video_button" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
app:backgroundTint="@android:color/white" | ||
app:fabSize="normal" | ||
app:elevation="6dp" | ||
app:borderWidth="0dp" | ||
android:layout_margin="5dp" | ||
android:src="@drawable/on_off_videocam" | ||
android:text="@string/label_record" /> | ||
</LinearLayout> | ||
|
||
<me.grantland.widget.AutofitTextView | ||
android:id="@+id/uvc_video_status" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_centerInParent="true" | ||
android:background="@android:color/black" | ||
android:gravity="center" | ||
android:singleLine="true" | ||
android:text="@string/error_no_video" | ||
android:textAllCaps="true" | ||
android:textColor="@android:color/white" | ||
android:visibility="visible" | ||
tools:visibility="visible" /> | ||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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_item_uvc_height_min" | ||
android:textSize="@dimen/list_item_uvc_font_size" > | ||
|
||
</CheckedTextView> |
Oops, something went wrong.