Subversion Repositories ES

Compare Revisions

Last modification

Ignore whitespace Rev 18 → Rev 19

/trunk/res/layout/activity_lengths.xml
3,29 → 3,34
android:orientation="vertical" android:layout_height="match_parent"
android:layout_width="match_parent">
 
<TableLayout android:id="@+id/TableLayout01"
android:layout_height="wrap_content" android:layout_width="match_parent"
android:stretchColumns="1,3" android:shrinkColumns="*"
<LinearLayout android:orientation="horizontal"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_marginTop="10sp">
<TableRow android:layout_height="wrap_content">
<EditText android:layout_column="1" android:id="@+id/edit_value1"
android:inputType="numberDecimal" />
<TextView android:layout_column="2" android:text="="
android:gravity="center" android:textSize="25sp" />
<EditText android:layout_column="3" android:id="@+id/edit_value2"
android:inputType="numberDecimal" />
</TableRow>
<TableRow android:layout_height="wrap_content">
<Spinner android:layout_column="1" android:id="@+id/spinner_unit1"
android:drawSelectorOnTop="true" android:entries="@array/length_units_display"
android:entryValues="@array/length_units_values" />
<TextView android:layout_column="2" android:text="" />
<Spinner android:layout_column="3" android:id="@+id/spinner_unit2"
android:drawSelectorOnTop="true" android:entries="@array/length_units_display"
android:entryValues="@array/length_units_values" />
</TableRow>
</TableLayout>
<EditText android:id="@+id/edit_value1"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_weight="1" android:inputType="numberDecimal" />
<TextView android:text="=" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:minWidth="10sp"
android:gravity="center" android:textSize="25sp" />
<EditText android:id="@+id/edit_value2"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_weight="1" android:inputType="numberDecimal" />
</LinearLayout>
 
<LinearLayout android:orientation="horizontal"
android:layout_width="match_parent" android:layout_height="wrap_content">
<Spinner android:id="@+id/spinner_unit1"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_weight="1" android:drawSelectorOnTop="true"
android:entries="@array/length_units_display" android:entryValues="@array/length_units_values" />
<TextView android:text="" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:minWidth="10sp" />
<Spinner android:id="@+id/spinner_unit2"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_weight="1" android:drawSelectorOnTop="true"
android:entries="@array/length_units_display" android:entryValues="@array/length_units_values" />
</LinearLayout>
 
<Button android:text="@string/button_clear" android:id="@+id/lengths_button_clear"
android:layout_height="wrap_content" android:layout_width="100sp"
android:layout_gravity="center_horizontal" />