var activity

This commit is contained in:
serso
2011-10-02 14:12:13 +04:00
parent d4fb589c77
commit 141526450d
16 changed files with 312 additions and 90 deletions

View File

@@ -29,4 +29,13 @@
</LinearLayout>
<TextView a:id="@+id/var_description"
a:layout_width="match_parent"
a:layout_height="match_parent"
a:paddingBottom="6dp"
a:paddingLeft="6dp"
a:paddingRight="6dp"
a:paddingTop="0dp">
</TextView>
</LinearLayout>

View File

@@ -16,7 +16,7 @@
a:layout_width="wrap_content"
a:text="Name"/>
<EditText a:id="@+id/var_name"
<EditText a:id="@+id/var_edit_name"
a:layout_width="match_parent"
a:layout_height="match_parent"
a:textSize="20dp">
@@ -26,7 +26,7 @@
a:layout_width="wrap_content"
a:text="Value"/>
<EditText a:id="@+id/var_value"
<EditText a:id="@+id/var_edit_value"
a:layout_width="match_parent"
a:layout_height="match_parent"
a:inputType="number"
@@ -37,7 +37,7 @@
a:layout_width="wrap_content"
a:text="Description"/>
<EditText a:id="@+id/var_description"
<EditText a:id="@+id/var_edit_description"
a:layout_width="match_parent"
a:layout_height="match_parent"
a:textSize="20dp">

View File

@@ -2,9 +2,12 @@
<menu xmlns:a="http://schemas.android.com/apk/res/android">
<item a:id="@+id/menu_item_settings"
<item a:id="@+id/main_menu_item_settings"
a:title="@string/c_settings"/>
<item a:id="@+id/menu_item_about"
<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>

13
res/menu/var_menu.xml Normal file
View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2009-2011. Created by serso aka se.solovyev.
~ For more information, please, contact se.solovyev@gmail.com
~ or visit http://se.solovyev.org
-->
<menu xmlns:a="http://schemas.android.com/apk/res/android">
<item a:id="@+id/var_menu_add_var"
a:title="@string/c_add"/>
</menu>

View File

@@ -1,4 +1,5 @@
<resources>
<color name="magic_flame">#00ffffff</color>
<color name="button_text">#ffffffff</color>
<color name="button_text_color">#ffffffff</color>
<color name="text_color">#ffffffff</color>
</resources>

View File

@@ -33,4 +33,8 @@
<string name="c_calc_color_display_title">Color expressions</string>
<string name="p_calc_result_precision_title">Precision of result</string>
<string name="c_exit">Exit</string>
<string name="c_add">Add</string>
<string name="c_cancel">Cancel</string>
<string name="c_save">Save</string>
</resources>

View File

@@ -29,7 +29,7 @@
<style name="display_style">
<item name="android:textSize">25dp</item>
<item name="android:background">#000000</item>
<item name="android:textColor">#ffffff</item>
<item name="android:textColor">@color/text_color</item>
<item name="android:gravity">left|top</item>
<item name="android:padding">5dp</item>
<item name="android:layout_width">match_parent</item>