This is the content of my layout file<launcher.xml> :

    <RelativeLayout
        android:id="@+id/all_apps_button_cluster"
        android:layout_width="fill_parent"
        android:layout_height="@dimen/button_bar_height"
        android:layout_gravity="bottom|center_horizontal"
        >

        <com.android.launcher2.HandleView
            style="@style/HotseatButton"
            android:id="@+id/all_apps_button"
            android:layout_centerHorizontal="true"
            android:layout_alignParentBottom="true"
            android:layout_width="wrap_content"
            android:src="@drawable/all_apps_button"
            launcher:direction="horizontal"
            />

        <ImageView
            android:id="@+id/hotseat_left"
            style="@style/HotseatButton.Left"
            android:layout_toLeftOf="@id/all_apps_button"
            android:layout_width="wrap_content"
            android:src="@drawable/hotseat_phone"
        android:layout_centerVertical="true"
            android:onClick="launchHotSeat"
            />

        <ImageView
            android:id="@+id/hotseat_right"
            style="@style/HotseatButton.Right"
            android:layout_toRightOf="@id/all_apps_button"
            android:layout_width="wrap_content"
            android:src="@drawable/hotseat_browser"
        android:layout_centerVertical="true"
            android:onClick="launchHotSeat"
            />

    </RelativeLayout>

also the style attrs:

    <style name="HotseatButton">
        <item name="android:paddingLeft">12dip</item>
        <item name="android:paddingRight">12dip</item>
        <item name="android:background">@drawable/hotseat_bg_center</item>
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">fill_parent</item>
        <item name="android:scaleType">center</item>
        <item name="android:focusable">true</item>
        <item name="android:clickable">true</item>
    </style>
    <style name="HotseatButton.Left">
        <item name="android:layout_marginLeft">4dip</item>
        <item name="android:background">@drawable/hotseat_bg_left</item>
        <item name="android:layout_height">fill_parent</item>
    </style>
    <style name="HotseatButton.Right">
        <item name="android:layout_marginRight">4dip</item>
        <item name="android:background">@drawable/hotseat_bg_right</item>
        <item name="android:layout_height">fill_parent</item>
    </style>
*
FYI:com.android.launcher2.HandleView** extends from an ImageView class*

But the result is like this(*if it cannot be seen, please refer to the
attachment ^_^ *):


I want the phone,the middle and the brower button to align to the buttom of
the screen,but whether how many align attrs[in RelativeLayout] I added to
it, it just makes no sense.

Thank you in advance, :)!

-- 
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

<<attachment: modify_Launcher_botton_bars.png>>

Reply via email to