This is my current layout.
And my current layout code
<?xml version="1.0" encoding="utf-8"?>
<TableRow xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/transparent" >
<TextView
android:id="@+id/stockView"
android:text="TextView"
android:layout_weight="1" />
<Button
android:id="@+id/stockQuote"
style="?android:attr/buttonStyleSmall"
android:text="@string/get_stock_quote"
android:layout_weight="1" />
<Button
android:id="@+id/webStock"
style="?android:attr/buttonStyleSmall"
android:text="@string/go_to_website"
android:layout_weight="1" />
</TableRow>
Everything works out fine, as I reasoned that because I gave each element a layout_width of "1", they take up the same amount of space in the table row. However I want the text view to take up more room than the button so i changed the text view's layout_weight to 2 so that it can take up half of the extra space while each button takes up 1/4 of the button. After I made this change, this is what I got for my layout.
Does anyone understand why this happened? The text view isn't even visible now. How can I fix this to have text view take up a bit more room?