I have a TextView and EditText, which needs to be aligned in a row with proper span.
In current layout, EditText is aligned , but appears shrinked, not taking remaining width
Xml:
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:style="@style/AppTheme"
android:layout_marginBottom="10dp"
android:layout_marginTop="10dp">
<TableRow>
<TextView
style="@style/AppTheme.DetailInfo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="New Password:" />
<EditText
style="@style/AppTheme.TextBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:maxLines="1"
android:text= "@={profile.password}"/>
</TableRow>
</TableLayout>