Hi Dan, Not sure though, but would the following help you:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hello" /> <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal"> <ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/icon" android:id="@+id/btn" android:layout_weight="0.5" android:padding="7dp" android:scaleType="fitXY" android:background="@android:color/background_light" /> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Hello" android:layout_weight="0.5" android:gravity="center" android:textSize="45sp" android:background="@color/Pink" /> </LinearLayout> </LinearLayout> strings.xml is as follows: <?xml version="1.0" encoding="utf-8"?> <resources> <string name="hello">Hello World, TestViewPositionActivity!</ string> <string name="app_name">TestViewPosition</string> </resources> color.xml as below: <?xml version="1.0" encoding="utf-8"?> <resources> <color name="Pink">#FFFF00FF</color> </resources> Thanks On Sep 12, 11:23 pm, Dan <[email protected]> wrote: > I need to make a heading with an ImageView and TextView that are > centered together, like the following diagram. > > (please use a monospaced font to see this diagram) > -------------------------------- > | | > | ----------- ---------- | > | -ImageView- -TextView- | > | ----------- ---------- | > | | > | -Other Content- | > | | > The ImageView must be scaled to the height of the TextView and > together they must be centered as if they were one widget. Any ideas > on how to accomplish this? -- 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

