Re: [android-developers] How to make a imageview at right of linearlayout

2010-07-06 Thread Levi
Hi,try it Good Luck!

LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
   android:layout_width=fill_parent
   android:id=@+id/logo_block
   android:padding=10px
   android:layout_height=wrap_content
   android:gravity=right
   ImageView
   android:layout_width=fill_parent
   android:layout_height=fill_parent
   android:src=@drawable/logo_poweredby/
   /LinearLayout

2010/7/5 cindy ypu01...@yahoo.com

 Hi All,

 In the linearlayout, I need to put the image at right. I have tried a
 lot of method, none of them works. Can someone point out what is
 wrong?

 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
android:layout_width=fill_parent
android:id=@+id/logo_block
android:padding=10px
android:layout_height=wrap_content
ImageView
android:layout_width=fill_parent
android:layout_height=fill_parent
android:gravity=right
android:layout_alignParentRight=true
android:src=@drawable/logo_poweredby/
/LinearLayout

 Thanks!

 Cindy

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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] How to make a imageview at right of linearlayout

2010-07-05 Thread neil monteiro
Hi

  Give layout_width=wrap_content for ImageView

Thanks
Neil
On Mon, Jul 5, 2010 at 2:25 AM, cindy ypu01...@yahoo.com wrote:

 Hi All,

 In the linearlayout, I need to put the image at right. I have tried a
 lot of method, none of them works. Can someone point out what is
 wrong?

 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
android:layout_width=fill_parent
android:id=@+id/logo_block
android:padding=10px
android:layout_height=wrap_content
ImageView
android:layout_width=fill_parent
android:layout_height=fill_parent
android:gravity=right
android:layout_alignParentRight=true
android:src=@drawable/logo_poweredby/
/LinearLayout

 Thanks!

 Cindy

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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] How to make a imageview at right of linearlayout

2010-07-04 Thread cindy
Hi All,

In the linearlayout, I need to put the image at right. I have tried a
lot of method, none of them works. Can someone point out what is
wrong?

LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:id=@+id/logo_block
android:padding=10px
android:layout_height=wrap_content
ImageView
android:layout_width=fill_parent
android:layout_height=fill_parent
android:gravity=right
android:layout_alignParentRight=true
android:src=@drawable/logo_poweredby/
/LinearLayout

Thanks!

Cindy

-- 
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] How to make a imageview at right of linearlayout

2010-07-04 Thread Mark Murphy
On Sun, Jul 4, 2010 at 4:55 PM, cindy ypu01...@yahoo.com wrote:
 In the linearlayout, I need to put the image at right. I have tried a
 lot of method, none of them works. Can someone point out what is
 wrong?

 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
                android:layout_width=fill_parent
                android:id=@+id/logo_block
                android:padding=10px
        android:layout_height=wrap_content
                ImageView
                        android:layout_width=fill_parent
                        android:layout_height=fill_parent
                        android:gravity=right
                        android:layout_alignParentRight=true
                        android:src=@drawable/logo_poweredby/
        /LinearLayout

You have said that the ImageView should fill up the width of the
LinearLayout. That is probably not what you want. Make
android:layout_width=wrap_content.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Consulting: http://commonsware.com/consulting

-- 
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