guruk wrote: > Hi, > i like to have a layout where a picture is centered hori&verti > (middle of the screen) > and bellow of that a textview > > just the textview is ok > <TextView > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:gravity="center_vertical|center_horizontal" > android:text="asdfasdf" > /> > > but when i place a imageview above.. the image is at the top of the > screen?
Try using RelativeLayout. Use android:centerInParent="true" for the centered picture. Use android:below="@id/..." for the TextView, substituting in the appropriate widget ID for "@id/...". -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

