[android-developers] Layout Question

2011-11-20 Thread Kubilay D . Yılmaz
Hi Friends; I have a problem with layout. I have 4 images, - redbackground.png 80px - triangle.png 80px - star.png 80px - green_diamond.png 160px I want to show these images like attached file as shouldbe.png My layout xml is like //above layout fit LinearLayout

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

[android-developers] Layout Question

2011-04-04 Thread Jake Colman
I have a layout that is displaying the time in the format 7:35 PM. I'd like the display to be centered horizontally and vertically within the layout. Here is what I am using: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;

[android-developers] Layout question.

2010-09-07 Thread darrinps
posted Yesterday 10:29:31 PM private message Quote This isn't so much Java, but it sure is an Android question. I'm having trouble adding some buttons underneath a scroll view. What I want is a tab pane, with a header row, then a scroll view of a table containing a variable number of rows,

[android-developers] Layout question

2010-08-28 Thread Michael
Hi, I would like to create a layout that would have a Checkbox, then a divider, then a listview with single choice mode. I tried this LinearLayout android:id=@+id/LinearLayout01 android:layout_width=fill_parent android:layout_height=fill_parent

RE: [android-developers] Layout question

2010-08-28 Thread Tommy
[mailto:android-develop...@googlegroups.com] On Behalf Of Michael Sent: Saturday, August 28, 2010 9:33 PM To: Android Developers Subject: [android-developers] Layout question Hi, I would like to create a layout that would have a Checkbox, then a divider, then a listview with single choice mode. I tried

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

[android-developers] Layout question

2010-03-05 Thread EvgenyV
Hi all! I have horizontal layout contains 2 TextView items. The left width is limited by 10 characters. How can I store strings longer than 10 characters in new lines of this TextView? I need actually fixed width but possibility to grow heigh. Now the text next line (see xml) can't be visible.

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

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

2010-02-08 Thread silverburgh
HI, In android, can you please tell me if there is a way to layout text around an image? Like this: -- text text text || text text text - text text text text text text text text text text text? Thank you. -- You received this message because you are subscribed to the Google

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

[android-developers] Layout question - how to replicate what the iPhone does...

2009-04-27 Thread Anna PS
Hi there, I have an application that consists of a series of tasks, and I'm struggling to replicate a user experience that is simple to implement on the iPhone. In the abstract: on the home screen, I'd like there to be a list of four tasks, of various kinds. -- Two will invite the user to

[android-developers] Layout question: top and bottom TextView

2009-03-10 Thread Rui Vieira
Hi everyone, Sorry for the noob question, but I'm just starting with Android... I was working on my Hello-World-type application, and wanted to place a text view aligned to the top of the screen, and another aligned to the bottom, but can't grasp yet the layout philosophy... After reading the

[android-developers] Layout question

2009-02-22 Thread Doughy
I would like to create an application that has 5 images, 4 of which are small, and one is larger. The 4 small images I would like to place in the corners of the screen, and the big image I want to be right in the center. Like this: http://www.eng.utah.edu/~jwilson/files/layout.png What is