<TableRow
android:id="@+id/tableRow1"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<TextView android:layout_width = "wrap_content"
android:layout_height="wrap_content"
android:textSize = "16dp"
android:text ="@string/lblMinutes"/>
<EditText
android:id="@+id/txtMinutes"
android:layout_width="100dp"
android:layout_height="40dp"
android:inputType="number" >
</EditText>
<Button
android:id="@+id/btnMinutes"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:text="@string/lblBtnMinutes" />
</TableRow>
<TableRow
android:id="@+id/tableRow2"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<GridView
android:id="@+id/gvImages"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:columnWidth="180dp"
android:horizontalSpacing="10dp"
android:numColumns="auto_fit"
android:padding="10dp"
android:stretchMode="columnWidth"
android:verticalSpacing="10dp">
</GridView>
</TableRow>
As you can see, I use a table layout because I wanted three views on one line, and then the gridview below that. If there's a better way to do this, please let me know. Anyway, only my EditText and Button are moved. I don't know why this happens, I think it should be separate since they are different rows, but apparently that's not how it works. Does anyone know how I could solve this problem?

New Topic/Question
Reply



MultiQuote



|