summaryrefslogtreecommitdiff
path: root/gst-sdk/tutorials/android-tutorial-5/res
diff options
context:
space:
mode:
authorXavi Artigas <xartigas@fluendo.com>2012-11-05 10:36:01 +0100
committerXavi Artigas <xartigas@fluendo.com>2012-11-05 10:36:01 +0100
commit2635e59fb46896808d618827c04b48974ff85de9 (patch)
tree37be899afc91d5e555d6dbba037aec4a434d5033 /gst-sdk/tutorials/android-tutorial-5/res
parentac07b88df9924b8c03a1b00014b03b6424dbd4be (diff)
Revamp tutorial 5 code to continue what we have been showing in all previous tutorials. Drop unused code and add goodies like media size reporting and seek throttling.
Diffstat (limited to 'gst-sdk/tutorials/android-tutorial-5/res')
-rwxr-xr-xgst-sdk/tutorials/android-tutorial-5/res/layout/main.xml36
1 files changed, 25 insertions, 11 deletions
diff --git a/gst-sdk/tutorials/android-tutorial-5/res/layout/main.xml b/gst-sdk/tutorials/android-tutorial-5/res/layout/main.xml
index c3baac8..df795b2 100755
--- a/gst-sdk/tutorials/android-tutorial-5/res/layout/main.xml
+++ b/gst-sdk/tutorials/android-tutorial-5/res/layout/main.xml
@@ -2,16 +2,21 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ android:gravity="center_vertical"
android:orientation="vertical" >
<TextView
android:id="@+id/textview_message"
android:layout_width="match_parent"
- android:layout_height="wrap_content" />
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="16dip"
+ android:gravity="center_horizontal" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_marginBottom="16dip"
+ android:gravity="center_horizontal"
android:orientation="horizontal" >
<ImageButton
@@ -29,14 +34,22 @@
android:contentDescription="@string/button_stop"
android:src="@android:drawable/ic_media_pause"
android:text="@string/button_stop" />
-
- <ImageButton
- android:id="@+id/button_select"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:contentDescription="@string/button_select"
- android:src="@android:drawable/ic_media_next"
- android:text="@string/button_select" />
+
+ <ImageButton
+ android:id="@+id/button_select"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:contentDescription="@string/button_select"
+ android:src="@android:drawable/ic_media_next"
+ android:text="@string/button_select" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="16dip"
+ android:gravity="center_horizontal"
+ android:orientation="horizontal" >
<TextView
android:id="@+id/textview_time"
@@ -55,9 +68,10 @@
android:indeterminate="false" />
</LinearLayout>
- <SurfaceView
+ <com.gst_sdk_tutorials.tutorial_5.GStreamerSurfaceView
android:id="@+id/surface_video"
android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical|center_horizontal" />
</LinearLayout>