[android-developers] Re: layout problem

2012-12-24 Thread dashman
thanks - just what i was looking for. On Monday, December 24, 2012 2:27:48 AM UTC-5, Sourav Howlader wrote: Just mention android:gravity=center to your Root LinearLayout -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: layout problem

2012-12-23 Thread Piren
change the linearlayout to warp_content and put it in a RelativeLayout/Framelayout and use the proper centering field (centerInParent/layout_gravity) On Sunday, December 23, 2012 3:34:16 AM UTC+2, dashman wrote: I've got 3 View elements that i'd like to display at the center of the page -

[android-developers] Re: layout problem

2012-12-23 Thread Sourav Howlader
Just mention android:gravity=center to your Root LinearLayout On Sunday, 23 December 2012 07:04:16 UTC+5:30, dashman wrote: I've got 3 View elements that i'd like to display at the center of the page - centered vertically and horizontally. for the life of me - i can't get it to work. i've

[android-developers] Re: layout problem

2012-12-23 Thread Sourav Howlader
Just mention android:gravity=center to your Root LinearLayout -- 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] Re: layout problem

2011-10-19 Thread viktor
http://developer.android.com/reference/android/widget/ImageView.html#attr_android:scaleType set scale type to the fitXY Or you can calculate width and height for your ImageView manualy by ParentView (width, height) with correct aspect ration for your image. On 19 Жов, 13:15, vani reddy

[android-developers] Re: Layout problem with TextView on RelativeLayout

2011-07-22 Thread Abhishek Akhani
I have also encountered this problem i think 9 patch images take some space on all four sides which makes the inner content to squeeze you have to readjust your text view or just use png... :-) this is what i did -- You received this message because you are subscribed to the

[android-developers] Re: layout problem

2010-10-18 Thread dashman
thanks - that was the problem. but this seems like a layout bug. if i have a LinearLayout with 3 elements in them with the 1st and 3rd with layout_width of wrap_content and then middle one with fill_parent. it seems relatively clear what i want done. the middle element will take all the space

[android-developers] Re: layout problem

2010-10-18 Thread dashman
on further researh, it was the stretchColumns inside the tablelayout - causing the problem TableLayout android:layout_width=fill_parent android:layout_height=wrap_content android:stretchColumns=1 but again, that attribute should be subservient to the layout_width. if i set the

[android-developers] Re: layout problem

2010-10-17 Thread grace
hi, your table layout as defined in your xml specifes to fill the parent with its content. that is why it is not showing up the second image button. try to adjust the width of the table layout so that image button can also be seen TableLayout android:layout_width=fill_parent /here

[android-developers] Re: Layout Problem in different screen size

2010-08-20 Thread optimusgeek
LinearLayout android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content LinearLayout android:orientation=vertical !-- android:layout_width=fill_parent -- android:layout_height=wrap_content android:layout_weight=3

[android-developers] Re: Layout Problem

2010-05-17 Thread Anthoni
I'll add an example of this sort of layout to my to-do list to add to the book. As I mentioned to somebody else earlier today, it's a long to-do list... Sounds good. One more thing wanted to ask, regarding Layouts and Themes. I have my Application (in the AndroidManifest.xml) set to the theme

Re: [android-developers] Re: Layout Problem

2010-05-17 Thread Romain Guy
Every activity can have its own theme. Just use android:theme on the activity / tag in your AndroidManifest. On Sun, May 16, 2010 at 11:12 PM, Anthoni anthoni.gard...@gmail.com wrote: I'll add an example of this sort of layout to my to-do list to add to the book. As I mentioned to somebody else

[android-developers] Re: Layout Problem

2010-05-17 Thread Anthoni
On May 17, 7:16 am, Romain Guy romain...@android.com wrote: Every activity can have its own theme. Just use android:theme on the activity / tag in your AndroidManifest. Hi Romain, Thanks for that, but I am actually wanting to switch the theme off so it's just normal. Would it be enough to just

[android-developers] Re: Layout Problem

2010-05-17 Thread Anthoni
Thanks for that, but I am actually wanting to switch the theme off so it's just normal. Would it be enough to just tell it to render the default android theme but I do not know how to do that. Found it, I just set my theme in the activity to @android:style/ Theme.NoTitleBar.Fullscreen and that

[android-developers] Re: Layout Problem

2010-05-16 Thread Anthoni
On May 16, 11:04 am, Mark Murphy mmur...@commonsware.com wrote: You do not have any layout rules to force the two widgets not to overlap. Move your ListView after the TableLayout the RelativeLayout definition in the XML, and add to it: android:layout_above=... where ... is

Re: [android-developers] Re: Layout Problem

2010-05-16 Thread Mark Murphy
Anthoni wrote: Funny thing is I know about the layout_above tag from reading your books, but it never occurred to me to try and use that LOL. I'll add an example of this sort of layout to my to-do list to add to the book. As I mentioned to somebody else earlier today, it's a long to-do list...

[android-developers] Re: Layout problem with ListView

2009-08-15 Thread Boxy
Thanks Mark!! I'm going to have 1 of my favorite beers while coding just for you :) On Aug 14, 6:35 pm, Mark Murphy mmur...@commonsware.com wrote: Boxy wrote: It looks like underestimated the difficulty of this question. I tried to post a much simpler version of the question in the

[android-developers] Re: Layout problem with ListView

2009-08-14 Thread Boxy
It looks like underestimated the difficulty of this question. I tried to post a much simpler version of the question in the beginner group but its been hours and it still has not showed up. I think they have a problem with new topics over there. I'll post the question here. I apologize for

[android-developers] Re: Layout problem with ListView

2009-08-14 Thread Mark Murphy
Boxy wrote: It looks like underestimated the difficulty of this question. I tried to post a much simpler version of the question in the beginner group but its been hours and it still has not showed up. I think they have a problem with new topics over there. I'll post the question

[android-developers] Re: Layout problem with ListView

2009-08-13 Thread Boxy
Hmm it looks like my diagrams didn't post quite right to the message board. Just use your imagination to picture nicely drawn boxes that borders the text :) On Aug 13, 12:19 pm, Boxy par...@gmail.com wrote: First let me say that this problem is probably real easy to solve. But I've been