[android-developers] Set android:layout_gravity from code ??
Hi All once again, In xml we have android:layout_gravity ... how can i set this for any view [say image button] ... from code ... plz help ...any kind if suggestion will do .. code: ibMap = new ImageButton(getApplicationContext()); ibMap.setLayoutParams(new LayoutParams(width,height)); ibMap.setBackgroundResource(resId); now i want to set the android:layout_gravity from code ... -- 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
[android-developers] Set android:layout_gravity from code ??
Hi All once again, In xml we have android:layout_gravity ... how can i set this for any view [say image button] ... from code ... plz help ...any kind if suggestion will do .. code: ibMap = new ImageButton(getApplicationContext()); ibMap.setLayoutParams(new LayoutParams(width,height)); ibMap.setBackgroundResource(resId); now i want to set the android:layout_gravity from code ... -- 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
Re: [android-developers] Set android:layout_gravity from code ??
On Sat, May 15, 2010 at 1:22 PM, pawan nimje wrote: > now i want to set the android:layout_gravity from code ... Step 1: Try searching the documentation for "layout gravity". - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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
Re: [android-developers] Set android:layout_gravity from code ??
LayoutParams provides that 2010/5/16 TreKing > On Sat, May 15, 2010 at 1:22 PM, pawan nimje wrote: > >> now i want to set the android:layout_gravity from code ... > > > Step 1: Try searching the documentation for "layout gravity". > > > - > TreKing - Chicago transit tracking app for Android-powered devices > http://sites.google.com/site/rezmobileapps/treking > > -- > 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 > -- Regards -- 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