Re: [android-developers] Layout Question

2011-11-20 Thread Mark Murphy
You have your green diamond as a child of the LinearLayout. It is not a child of the LinearLayout in your desired result. On Sun, Nov 20, 2011 at 7:51 AM, Kubilay D. Yılmaz kubilayd.yil...@gmail.com wrote: Hi Friends; I have a problem with layout. I have 4 images, redbackground.png 80px

Re: [android-developers] Layout Question

2011-11-20 Thread Kubilay D . Yılmaz
if i put green diamond to under another child linearlayout, result will not change, because parent linearlayout fill its height what it has inside it. so what should be the solution On 20 November 2011 15:00, Mark Murphy mmur...@commonsware.com wrote: You have your green diamond as a child of

Re: [android-developers] Layout Question

2011-11-20 Thread Mark Murphy
On Sun, Nov 20, 2011 at 8:57 AM, Kubilay D. Yılmaz kubilayd.yil...@gmail.com wrote: if i put green diamond to under another child linearlayout, result will not change, because parent linearlayout fill its height what it has inside it. so what should be the solution The green diamond should be

Re: [android-developers] Layout Question

2011-11-20 Thread Kubilay D . Yılmaz
Dear Mark, Thank you for your concern however, My code is on below and result is same. RelativeLayout android:id=@+id/relativeLayout1 android:layout_width=fill_parent android:layout_height=match_parent android:layout_gravity=center LinearLayout

Re: [android-developers] Layout Question

2011-11-20 Thread Mark Murphy
On Sun, Nov 20, 2011 at 9:23 AM, Kubilay D. Yılmaz kubilayd.yil...@gmail.com wrote: Dear Mark, Thank you for your concern however, My code is on below and result is same. In your original solution, the height of the red LinearLayout is driven by the height of the green diamond. Now, it is not.

Re: [android-developers] Layout Question

2011-11-20 Thread David Karr
I would think that changing the layout_height of the LinearLayout to wrap_content would help. With what you have, both children of the RelativeLayout are set to fill_parent, so they'll have the same height. Also, I would recommend you make up your mind whether you're going to use fill_parent

RE: [android-developers] Layout question

2010-08-28 Thread Tommy
Try using a relative layout linear from my understanding won't let you lay objects on top of each other. Or an absolute layout but those aren't too good when it comes to scaling up/down for different screen sizes. -Original Message- From: android-developers@googlegroups.com

Re: [android-developers] Layout question

2010-08-28 Thread Kostya Vasilyev
Michael, You didn't explain on how exactly this did not work, but... I believe you want ListView height to be fill_parent. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 29.08.2010 5:33 пользователь Michael michael...@gmail.com написал: Hi, I would like to create a layout that would have

Re: [android-developers] Layout question. How to layout text to flow around an image

2010-02-09 Thread silverburgh
Thanks. 1. Create a new subclass which is a child class of TextView (say MyTextView)? But TextView is not a ViewGroup, how can I add an ImageView as a child of MyTextView? 2. I have looked at source code of TextView, do I need to over-look the makeLayout() method of TextView? But then I assume I

Re: [android-developers] Layout question. How to layout text to flow around an image

2010-02-08 Thread Romain Guy
Hi, This is not possible using only the supplied widgets and layouts. You could write your own version of TextView to do this, it shouldn't be hard. On Mon, Feb 8, 2010 at 11:00 PM, silverburgh silverburgh.me...@gmail.com wrote: HI, In android, can you please tell me if there is a way to