Hi,
I'm attempting to add four controls to a layout;
<label>
<text> <seek> <radio>
I want the seek widget to occupy all the available screen space
between the edittext control and the radio control. However if I give
it the value
android:layout_width="wrap_content"
only a small seek control is displayed. and if I set the value to
fill_parent it overwrites the radio control. I would have thought
there would be a mechanism to occupy the free space between the text
and radio controls dynamically.
The xml file I am using is below;
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/
android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/blue"
android:padding="10px" >
<TextView
android:id="@+id/lblvalue"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Enter Some Value" />
<EditText android:id="@+id/txtvalue"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:drawable/
editbox_background"
android:layout_below="@id/lblvalue" />
<RadioButton android:id= "@+id/usevalue"
android:layout_height="wrap_content"
android:background="@android:drawable/editbox_background"
android:layout_below="@id/lblvalue"
android:layout_toRightOf="@id/seekvalue"
android:layout_width="wrap_content"/>
<SeekBar android:id= "@+id/seekvalue"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:background="@android:drawable/editbox_background"
android:layout_below="@id/lblvalue"
android:layout_toRightOf="@id/txtvalue"
android:layout_width="wrap_content"/>
</RelativeLayout>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en