0

I am very new to android app development.In the below code, I am using TableLayout to place my contents but getting some extra spaces in table row. Please suggest how to remove it.

 <TableRow
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <TextView
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:text="DataStage 8.5"
            android:id="@+id/textViewDS8.5"
            android:layout_column="0"
            android:textStyle="bold|italic"
            android:textColor="#090909"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
    </TableRow>

Extra Space In App

Praveenks
  • 1,436
  • 9
  • 40
  • 79
  • Are you wanting the text to appear in the center together or have the right column appear where the arrows are? – BR89 Jul 10 '16 at 17:30

1 Answers1

0

In place of using TableRow you can use gridlayout

GridLayout (not GridView) how to stretch all children evenly

this is almost the similar or you can use linear layout and set its orientation horizantal and set the weight of the text view 0.5 in this way both the text will cover half the screen and no free space

Community
  • 1
  • 1
Neelay Srivastava
  • 1,041
  • 3
  • 15
  • 46