Thanks a lot.
On 01-Jun-09, at 5:42 PM, Mark Murphy wrote: > > iDeveloper wrote: >> I have a list, a web view and certain buttons on my activity's >> layout. >> I am trying to center the web view in the layout. The layout_gravity >> attribute that I use for the webview doesn't seem to work. It stays >> put >> aligned to the left of the screen when I view the activity. >> >> Can someone please tell me how I can center the web view? Thanks. > > android:layout_gravity is for LinearLayout. > > Use android:centerHorizontal for RelativeLayout. > > http://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams.html > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://twitter.com/commonsguy > > Looking for Android opportunties? http://wiki.andmob.org/hado > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---