Hi
I have a popdown window with a downarrow (id upArrow) and a bubble. I want
to align the down arrow relative to the button that is pressed to show the
popdown window.
Can i align the arrow ImageView to the ImageButton in my main layout that
is pressed to show the popdown?
How can i do this in XML?
My XML is below
Thanks in advance, any help is appreciated
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/viewPickRoot"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/relativeLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/popup_selector_bg"
android:orientation="vertical"
android:layout_marginTop="3dip">
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/pickerBody"
android:layout_height="match_parent"
android:layout_marginBottom="9dip"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
android:orientation="horizontal"
android:layout_marginTop="9dip"
android:layout_width="wrap_content">
</LinearLayout>
</LinearLayout>
<ImageView
android:id="@+id/upArrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/popup_selector_arrow_up"
android:layout_marginLeft="6dip" android:layout_toLeftOf="@+id/ViewButton"
android:layout_alignLeft="@+id/ViewButton"/>
</RelativeLayout>
</LinearLayout>
--
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