I am having a problem defining a layout for my project. I want to do
the following:
http://dl.dropbox.com/u/16826969/layout.png[^]
The image "remote" doesn't want to align to bottom of the screen and
on different screen resolutions the buttons don't stay in their
places. How do I place the buttons to support multiple screens.

?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="fill_parent"
    android:background="@layout/backrepeat" android:focusable="false">
    <ImageView android:layout_width="wrap_content"
android:src="@drawable/test2" android:id="@+id/imageView1"
android:layout_height="wrap_content"></ImageView>
    <ImageView android:layout_marginBottom="35dip"
        android:layout_marginRight="40dip" android:id="@+id/
ButtonTestPlay"
        android:layout_height="wrap_content"
android:layout_width="wrap_content"
        android:src="@drawable/play"
android:layout_alignParentRight="true"
        android:layout_alignParentBottom="true" />
    <ImageView android:layout_marginBottom="35dip"
        android:layout_marginLeft="40dip" android:id="@+id/
ButtonTestPause"
        android:layout_height="wrap_content"
android:layout_width="wrap_content"
        android:src="@drawable/stop"
android:layout_alignParentLeft="true"
        android:layout_alignParentBottom="true" />
    <TextView android:id="@+id/scrollair" android:ellipsize="marquee"
        android:layout_width="wrap_content"
android:layout_marginRight="5dip"
        android:text=" - - - - -" android:focusable="true"
android:layout_height="wrap_content"
        android:layout_marginBottom="14dip" android:width="120dip"
        android:scrollHorizontally="true" android:singleLine="true"
        android:textColor="#c69252" android:layout_marginLeft="5dip"
        android:focusableInTouchMode="true"
android:marqueeRepeatLimit="marquee_forever"
        android:layout_above="@+id/ButtonTestPause"
android:layout_toRightOf="@+id/ButtonTestPause"></TextView>
    <ImageView android:id="@+id/ButtonStatus"
        android:layout_height="wrap_content"
android:layout_width="wrap_content"
        android:src="@drawable/stop_hover"
android:layout_alignParentLeft="true"
        android:layout_marginLeft="43dip"
android:layout_marginTop="137dip" />
</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

Reply via email to