Conversion tool
This commit is contained in:
74
calculatorpp/res/layout/unit_converter.xml
Normal file
74
calculatorpp/res/layout/unit_converter.xml
Normal file
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
a:layout_width="fill_parent"
|
||||
a:layout_height="fill_parent"
|
||||
a:paddingLeft="10dp"
|
||||
a:paddingRight="10dp"
|
||||
a:orientation="vertical">
|
||||
|
||||
<LinearLayout a:layout_width="fill_parent"
|
||||
a:layout_height="fill_parent"
|
||||
a:paddingBottom="10dp"
|
||||
a:orientation="horizontal">
|
||||
|
||||
<Spinner a:id="@+id/unit_types_from"
|
||||
a:layout_width="wrap_content"
|
||||
a:layout_height="fill_parent"/>
|
||||
|
||||
|
||||
<EditText a:id="@+id/units_from"
|
||||
a:inputType="text"
|
||||
a:singleLine="true"
|
||||
a:layout_width="fill_parent"
|
||||
a:layout_height="fill_parent"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout a:layout_width="fill_parent"
|
||||
a:paddingBottom="10dp"
|
||||
a:layout_height="fill_parent"
|
||||
a:orientation="horizontal">
|
||||
|
||||
<Spinner a:id="@+id/unit_types_to"
|
||||
a:layout_width="wrap_content"
|
||||
a:layout_height="fill_parent"/>
|
||||
|
||||
<EditText a:id="@+id/units_to"
|
||||
a:editable="false"
|
||||
a:inputType="none"
|
||||
a:singleLine="true"
|
||||
a:layout_width="fill_parent"
|
||||
a:layout_height="fill_parent"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout a:layout_width="fill_parent"
|
||||
a:paddingBottom="10dp"
|
||||
a:layout_height="fill_parent"
|
||||
a:gravity="center"
|
||||
a:orientation="horizontal">
|
||||
|
||||
<Button a:id="@+id/unit_converter_ok_button"
|
||||
a:text="@android:string/ok"
|
||||
a:paddingLeft="30dp"
|
||||
a:paddingRight="30dp"
|
||||
a:layout_width="wrap_content"
|
||||
a:layout_height="wrap_content"/>
|
||||
|
||||
<Button a:id="@+id/unit_converter_copy_button"
|
||||
a:text="@android:string/copy"
|
||||
a:paddingLeft="30dp"
|
||||
a:paddingRight="30dp"
|
||||
a:layout_width="wrap_content"
|
||||
a:layout_height="wrap_content"/>
|
||||
|
||||
<Button a:id="@+id/unit_converter_custom_button"
|
||||
a:paddingLeft="30dp"
|
||||
a:paddingRight="30dp"
|
||||
a:layout_width="wrap_content"
|
||||
a:layout_height="wrap_content"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
@@ -8,12 +8,16 @@
|
||||
<item a:id="@+id/main_menu_item_history"
|
||||
a:title="@string/c_history"/>
|
||||
|
||||
<item a:id="@+id/main_menu_conversion_tool"
|
||||
a:title="@string/c_conversion_tool"/>
|
||||
|
||||
<item a:id="@+id/main_menu_item_help"
|
||||
a:title="@string/c_help"/>
|
||||
|
||||
<item a:id="@+id/main_menu_item_about"
|
||||
a:title="@string/c_about"/>
|
||||
|
||||
|
||||
<item a:id="@+id/main_menu_item_exit"
|
||||
a:title="@string/c_exit"/>
|
||||
</menu>
|
@@ -195,6 +195,7 @@
|
||||
|
||||
<string name="c_angle_units_changed_to">Angle units changed to \'%s\'!</string>
|
||||
<string name="c_numeral_base_changed_to">Numeral base changed to \'%s\'!</string>
|
||||
<string name="c_conversion_tool">Conversion tool</string>
|
||||
|
||||
|
||||
</resources>
|
Reference in New Issue
Block a user