summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xartigas@fluendo.com>2012-11-06 16:36:51 (GMT)
committerXavi Artigas <xartigas@fluendo.com>2012-11-06 16:36:51 (GMT)
commit34b3398b26d9b4b9748d89705993dcd62697fbe4 (patch)
treeae5aee5d068e18adcd06b575014576179a24253c
parentd6448c8b2e06f8c984d3227760a5f5b4ff5d34dd (diff)
downloadgst-sdk-tutorials-34b3398b26d9b4b9748d89705993dcd62697fbe4.tar.gz
gst-sdk-tutorials-34b3398b26d9b4b9748d89705993dcd62697fbe4.tar.xz
Simplify file chooser row layout and allow showing file names longer than the text view.
-rw-r--r--gst-sdk/tutorials/android-tutorial-5/res/layout/file_dialog_row.xml17
1 files changed, 9 insertions, 8 deletions
diff --git a/gst-sdk/tutorials/android-tutorial-5/res/layout/file_dialog_row.xml b/gst-sdk/tutorials/android-tutorial-5/res/layout/file_dialog_row.xml
index 6e52625..030ed18 100644
--- a/gst-sdk/tutorials/android-tutorial-5/res/layout/file_dialog_row.xml
+++ b/gst-sdk/tutorials/android-tutorial-5/res/layout/file_dialog_row.xml
@@ -1,23 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
- android:layout_height="fill_parent" >
+ android:layout_height="wrap_content" >
<ImageView
android:id="@+id/fdrowimage"
android:layout_width="wrap_content"
android:layout_height="36dp"
- android:layout_alignParentLeft="true"
android:contentDescription="@string/icon" />
<TextView
android:id="@+id/fdrowtext"
- android:layout_width="wrap_content"
+ android:layout_width="0dip"
android:layout_height="36dp"
- android:layout_alignBottom="@+id/fdrowimage"
- android:layout_alignTop="@+id/fdrowimage"
- android:layout_toRightOf="@+id/fdrowimage"
+ android:layout_weight="1"
+ android:ellipsize="marquee"
+ android:marqueeRepeatLimit="marquee_forever"
android:gravity="center_vertical"
+ android:singleLine="true"
+ android:scrollHorizontally="true"
android:textSize="23dp" />
-</RelativeLayout> \ No newline at end of file
+</LinearLayout> \ No newline at end of file