Try using a relative layout instead of a table layout. If you set up the two buttons to be aligned left and right respectively, you can set the text field to span between the two buttons with the layout_alignRight and layout_alignLeft properties. You can look at the example code for the RelativeLayout given on the android development website.
I've used some bit different properties, but you've pointed me right way. The final working code is: ` android:layout_toLeftOf="@id/btnRight" android:layout_toRightOf="@id/btnLeft" ` – ZlobnyiSerg Jun 27 at 21:18 Your table was fine, but you would need to set column index 1 to shrinkable in your XML. Right now, you're allowing it to stretch as much as it needs.
– Glendon Trullinger Jun 27 at 21:21 Great, thank you, this approach also works perfectly! Updated question with both of solutions – ZlobnyiSerg Jun 27 at 21:25.
While the RelaviveLayout should work, another option is to add a LinearLayout set to Horizontal. Set the three widgets to layout_width:"fill_parent" and give the TextView and both Buttons a weight (1 for each if you want them to equally take up three parts of the screen). Not at a computer to test it right now, but should theoretically work.
I am fairly new to android and am having some problems with a layout. Below is an approximation of what I want the layout to look like. (I would like the list to be below the screen at first so that the user can scroll down to see it.) However my code as it currently stands makes all of the views on the left only take up a quarter the screen instead of half, as depicted, even though I have all widths set to fill_parent.
Also, this layout seems to mess up the coordinate system on my custom view. Normally this wouldn't be much of an issue, but in this case I am using that view to draw a picture and the picture ends up in the wrong place. Does anybody have any idea how to resolve these issues?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.