- Currencies: + Added/updated resource strings + Disabled "Quit" (options menu button) - Added update notifications - Added exchange rates update service (project requirement) - Clean-up: + Outsourced conversion data + Layout: Replaced deprecated fill_parent with match_parent
/trunk/res/values/strings.xml |
---|
10,8 → 10,10 |
<string name="temperatures_off_scale"><sup>*</sup> Theoretical value off the scale</string> |
<string name="activity_currencies">Currencies</string> |
<string name="currencies_updating">Updating table rates ...</string> |
<string name="currencies_currency"><b>Currency</b></string> |
<string name="currencies_rate"><b>Rate (1 EUR = ?)</b></string> |
<string name="currencies_rate"><b>Rate (1 EUR)</b></string> |
<string name="currencies_updated"><b>Updated</b></string> |
<string name="caption_update">Update table rates</string> |
<string name="option_quit">Quit</string> |
</resources> |
/trunk/res/menu/options.xml |
---|
6,6 → 6,6 |
android:title="@string/caption_update" /> |
<!-- android:icon="@drawable/ic_quit" --> |
<item android:id="@+id/item_options_quit" |
android:title="@string/option_quit" /> |
<!-- <item android:id="@+id/item_options_quit" |
android:title="@string/option_quit" /> --> |
</menu> |
/trunk/res/layout/activity_lengths.xml |
---|
1,10 → 1,10 |
<?xml version="1.0" encoding="utf-8"?> |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
android:orientation="vertical" android:layout_height="fill_parent" |
android:layout_width="fill_parent"> |
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="fill_parent" |
android:layout_height="wrap_content" android:layout_width="match_parent" |
android:stretchColumns="1,3" android:shrinkColumns="*" |
android:layout_marginTop="10sp"> |
<TableRow android:layout_height="wrap_content"> |
/trunk/res/layout/activity_temperatures.xml |
---|
1,10 → 1,10 |
<?xml version="1.0" encoding="utf-8"?> |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
android:orientation="vertical" android:layout_height="fill_parent" |
android:layout_width="fill_parent"> |
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="fill_parent" |
android:layout_height="wrap_content" android:layout_width="match_parent" |
android:stretchColumns="1,3" android:shrinkColumns="*" |
android:layout_marginTop="10sp"> |
<TableRow android:layout_height="wrap_content"> |
28,8 → 28,9 |
</TableRow> |
</TableLayout> |
<TextView android:text="@string/temperatures_off_scale" |
android:id="@+id/temperatures_text_off_scale" android:layout_width="wrap_content" |
<TextView android:id="@+id/temperatures_text_off_scale" |
android:text="@string/temperatures_off_scale" |
android:layout_width="wrap_content" |
android:layout_height="wrap_content" android:visibility="invisible" /> |
<Button android:text="@string/button_clear" android:id="@+id/temperatures_button_clear" |
android:layout_height="wrap_content" android:layout_width="100sp" |
/trunk/res/layout/activity_currencies.xml |
---|
1,10 → 1,10 |
<?xml version="1.0" encoding="utf-8"?> |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
android:orientation="vertical" android:layout_height="fill_parent" |
android:layout_width="fill_parent"> |
android:orientation="vertical" android:layout_height="match_parent" |
android:layout_width="match_parent"> |
<TableLayout android:id="@+id/currencies_table_widget" |
android:layout_height="wrap_content" android:layout_width="fill_parent" |
android:layout_height="wrap_content" android:layout_width="match_parent" |
android:stretchColumns="1,3" android:shrinkColumns="*" |
android:layout_marginTop="10sp"> |
<TableRow android:layout_height="wrap_content"> |
31,15 → 31,23 |
<Button android:text="@string/button_clear" android:id="@+id/currencies_button_clear" |
android:layout_height="wrap_content" android:layout_width="100sp" |
android:layout_gravity="center_horizontal"></Button> |
<TableLayout android:id="@+id/currencies_table_rates" |
android:scrollbars="vertical" android:layout_height="wrap_content" |
android:layout_width="fill_parent" android:stretchColumns="*"> |
<TextView android:id="@+id/currencies_text_updating" |
android:text="@string/currencies_updating" |
android:layout_height="wrap_content" |
android:layout_width="match_parent" |
android:visibility="gone" /> |
<TableLayout android:id="@+id/currencies_table_rates" |
android:layout_height="match_parent" |
android:layout_width="match_parent" android:stretchColumns="*" |
> |
<View android:layout_height="2dip" android:background="#FF909090" /> |
<TableRow> |
<TextView android:text="@string/currencies_currency" /> |
<TextView android:text="@string/currencies_rate" /> |
<TextView android:text="@string/currencies_updated" /> |
</TableRow> |
<View android:layout_height="1dip" android:background="#FF909090" /> |
</TableLayout> |
</TableLayout> |
</LinearLayout> |