[android-developers] Re: Layout Question

2011-04-04 Thread Jake Colman
No takers on this question? Any reason why word-wrapped text won't honor the layout_centerInParent directive? Jake == Jake Colman col...@ppllc.com writes: Jake I have a layout that is displaying the time in the format 7:35 Jake PM. I'd like the display to be centered horizontally and

Re: [android-developers] Re: Layout Question

2011-04-04 Thread Phill Wiggin
On Mon, Apr 4, 2011 at 3:54 PM, Jake Colman col...@ppllc.com wrote: No takers on this question? Any reason why word-wrapped text won't honor the layout_centerInParent directive? I haven't used centerInParent and I'm not at my desk to try, but that sounds like it's trying to center your

[android-developers] Re: Layout Question

2011-04-04 Thread Jake Colman
PW == Phill Wiggin ala...@gmail.com writes: PW On Mon, Apr 4, 2011 at 3:54 PM, Jake Colman col...@ppllc.com wrote: No takers on this question? Any reason why word-wrapped text won't honor the layout_centerInParent directive? PW I haven't used centerInParent and

[android-developers] TabHost Layout Question

2010-12-03 Thread Tommy
Hi everyone, I was wondering if it is possible to set a height for the individual tabs on the widgets or if I am stuck using the default heights. Thanks for your time, Tommy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Dynamic Layout Question

2010-04-15 Thread grace
hi, i tried creating the layout dynamically in the oncreate of the activity my code looks some thing like this.. mLinearLayout_no_button = new LinearLayout(this); mLinearLayout_no_button.setOrientation(1); ///---1.for orientation to be vertical

Re: [android-developers] Dynamic Layout Question

2010-04-15 Thread social hub
try setting the layoutparams .setLayoutParams( new LayoutParams(100,40)); When you are creating dynamically its best to set the width and height always. u can also set to WRAP_CONTENT,WRAP_CONTENT etc. On Thu, Apr 15, 2010 at 7:32 AM, grace grace.a...@wipro.com wrote: hi, i tried creating

[android-developers] A Layout question

2009-06-09 Thread kevin
I have a possible simple layout questions. My activity content view contains a title bar, a webview and a status bar. I put these three views into a linearlayout and each has height as WRAP_CONTENT. The problem is, when first displays, webview doesn't take much space because the page is not

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

2009-04-28 Thread Anna PS
Thank you Jon, this is exactly what I needed! best wishes, Anna On Apr 28, 5:43 am, Jon Colverson jjc1...@gmail.com wrote: On Apr 27, 10:01 pm, Anna PS annapowellsm...@googlemail.com wrote: How would I even start to create a home screen that looks like this in Android? Essentially I need

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

2009-04-27 Thread Streets Of Boston
Hi Anna, You can have any view inside your list-items. Create a ListView with an Adapter (BaseAdapter or any other type of Adapter). The Adapter has 4 elements; your four tasks. Then override the Adapter's getView(...) method. Based upon the 'position' (from the parameters of getView()),

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

2009-04-27 Thread Jon Colverson
On Apr 27, 10:01 pm, Anna PS annapowellsm...@googlemail.com wrote: How would I even start to create a home screen that looks like this in Android? Essentially I need clickable areas with text and icons. Buttons can't have images attached, nor can they be greyed out. Yes, they can have images:

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

2009-03-11 Thread Rui Vieira
This is solved, I just needed to change the weight of the views. On Mar 10, 10:51 pm, Rui Vieira ruidevie...@googlemail.com wrote: 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

[android-developers] Re: Layout question

2009-02-24 Thread Joey Wilson
Mark, Thanks. I see what you mean. I got it to work by using xml attributes like: android:layout_alignParentBottom=true android:layout_alignParentLeft=true I'm assuming that's what you meant by anchoring, but is there a more correct way to do this? On Mon, Feb 23, 2009 at 5:20 AM, Mark

[android-developers] Re: Layout question

2009-02-23 Thread Mark Murphy
Doughy wrote: 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:

[android-developers] Re: Layout question

2009-02-22 Thread kozak
Hi, Would suggest to use a horizontal linear layout (android:orientation=horizontal) and for the side columns have suitable padding so as to corner the small images. For the image in the center use a gravity center. Something like that should work. Check this link out for more details on linear