Hi everyone,
I'm a newbie to android app development
(as you'll probably find out with the question I'm going to ask)
Here's the problem:
I'm creating a menu in XML using the eclipse software.
Unfortunately, I'm no expert in XML but I have attempted to create a basic menu.
The issue I'm having is the alignment of the menu buttons. The buttons on the left column are smaller in width compared to the buttons in the right column. I know this may not seem much of an issue now, but the problem is made worse if I edit the text value of the buttons.
I want to achieve even distribution for both columns of buttons but I have been scratching my head trying to figure this one out!
Would anyone be kind enough to help me out on this one?
Please find below an image describing my program and the code:
Thanks in advance
I'm a newbie to android app development

(as you'll probably find out with the question I'm going to ask)
Here's the problem:
I'm creating a menu in XML using the eclipse software.
Unfortunately, I'm no expert in XML but I have attempted to create a basic menu.
The issue I'm having is the alignment of the menu buttons. The buttons on the left column are smaller in width compared to the buttons in the right column. I know this may not seem much of an issue now, but the problem is made worse if I edit the text value of the buttons.
I want to achieve even distribution for both columns of buttons but I have been scratching my head trying to figure this one out!
Would anyone be kind enough to help me out on this one?
Please find below an image describing my program and the code:
Code:
<TableLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TableRow android:background="#FFFFFF">
<ImageView
android:id="@+id/imageView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:src="@drawable/ic_launcher"
android:layout_weight="0" />
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="10" />
<ImageView
android:id="@+id/imageView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:src="@drawable/ic_launcher"
android:layout_weight="0" />
</TableRow>
<TableRow android:layout_marginTop="30dip">
<Button
android:id="@+id/button1"
android:layout_width="fill_parent"
android:layout_height="100dip"
android:layout_weight="1"
android:text="New"
android:layout_column="0" />
<Button
android:id="@+id/button2"
android:layout_width="fill_parent"
android:layout_height="100dip"
android:layout_weight="1"
android:text="Share"
android:layout_column="1" />
</TableRow>
<TableRow>
<Button
android:id="@+id/button3"
android:layout_width="fill_parent"
android:layout_height="100dip"
android:layout_weight="1"
android:text="Open"
android:layout_column="0"
/>
<Button
android:id="@+id/button4"
android:layout_width="fill_parent"
android:layout_height="100dip"
android:layout_weight="1"
android:text="Comm"
android:layout_column="1" />
</TableRow>
</TableLayout>
Thanks in advance
