diff options
Diffstat (limited to 'res')
30 files changed, 1297 insertions, 0 deletions
diff --git a/res/drawable/advanced.png b/res/drawable/advanced.png Binary files differnew file mode 100644 index 0000000..aa634e7 --- /dev/null +++ b/res/drawable/advanced.png diff --git a/res/drawable/button.png b/res/drawable/button.png Binary files differnew file mode 100644 index 0000000..f28073c --- /dev/null +++ b/res/drawable/button.png diff --git a/res/drawable/button_bg.png b/res/drawable/button_bg.png Binary files differnew file mode 100644 index 0000000..83eeb0f --- /dev/null +++ b/res/drawable/button_bg.png diff --git a/res/drawable/clear_history.png b/res/drawable/clear_history.png Binary files differnew file mode 100644 index 0000000..ec3dc55 --- /dev/null +++ b/res/drawable/clear_history.png diff --git a/res/drawable/icon.png b/res/drawable/icon.png Binary files differnew file mode 100644 index 0000000..298c267 --- /dev/null +++ b/res/drawable/icon.png diff --git a/res/drawable/lcd.9.png b/res/drawable/lcd.9.png Binary files differnew file mode 100644 index 0000000..942ede9 --- /dev/null +++ b/res/drawable/lcd.9.png diff --git a/res/drawable/simple.png b/res/drawable/simple.png Binary files differnew file mode 100644 index 0000000..563ff0f --- /dev/null +++ b/res/drawable/simple.png diff --git a/res/drawable/small_button.9.png b/res/drawable/small_button.9.png Binary files differnew file mode 100644 index 0000000..c6b60a8 --- /dev/null +++ b/res/drawable/small_button.9.png diff --git a/res/drawable/small_button_pressed.9.png b/res/drawable/small_button_pressed.9.png Binary files differnew file mode 100644 index 0000000..5b5c866 --- /dev/null +++ b/res/drawable/small_button_pressed.9.png diff --git a/res/drawable/small_button_stateful.xml b/res/drawable/small_button_stateful.xml new file mode 100644 index 0000000..a3326dd --- /dev/null +++ b/res/drawable/small_button_stateful.xml @@ -0,0 +1,4 @@ +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true" android:drawable="@drawable/small_button_pressed" /> + <item android:drawable="@drawable/small_button" /> +</selector> diff --git a/res/layout-land/history_item.xml b/res/layout-land/history_item.xml new file mode 100644 index 0000000..cc0a3c6 --- /dev/null +++ b/res/layout-land/history_item.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + > + + <TextView + android:id="@+id/historyExpr" + android:layout_width="0px" + android:layout_height="wrap_content" + android:layout_weight="1" + android:textSize="23dp" + android:singleLine="true" + /> + + <TextView + android:id="@+id/historyResult" + android:layout_width="180px" + android:layout_height="wrap_content" + android:layout_weight="0" + android:textSize="23dp" + android:singleLine="true" + /> + +</LinearLayout> diff --git a/res/layout-land/main.xml b/res/layout-land/main.xml new file mode 100644 index 0000000..c116984 --- /dev/null +++ b/res/layout-land/main.xml @@ -0,0 +1,257 @@ +<?xml version="1.0" encoding="utf-8"?> + +<!-- +/* + * Copyright (C) 2008, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:background="#ff000000"> + + <RelativeLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="0" + android:layout_marginLeft="0px" + android:layout_marginRight="0px" + android:layout_marginBottom="0px" + > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:background="@drawable/lcd" + android:layout_marginRight="0px" + > + + <com.android.calculator2.CalculatorDisplay + android:id="@+id/display" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + > + + <EditText style="@style/display_style" /> + <EditText style="@style/display_style" /> + + </com.android.calculator2.CalculatorDisplay> + </LinearLayout> + </RelativeLayout> + + <com.android.calculator2.PanelSwitcher + android:id="@+id/panelswitch" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + > + + <LinearLayout + android:id="@+id/simplePad" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" + android:layout_gravity="center" + > + <LinearLayout + android:layout_weight="1" + android:layout_width="fill_parent" + android:layout_height="0px" + > + <com.android.calculator2.ColorButton + android:id="@+id/digit7" + android:text="@string/digit7" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/digit8" + android:text="@string/digit8" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/digit9" + android:text="@string/digit9" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/leftParen" + android:text="@string/leftParen" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/rightParen" + android:text="@string/rightParen" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/mul" + android:text="@string/mul" + style="@style/button_style" + /> + </LinearLayout> + + <LinearLayout + android:layout_weight="1" + android:layout_width="fill_parent" + android:layout_height="0px" + > + <com.android.calculator2.ColorButton + android:id="@+id/digit4" + android:text="@string/digit4" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/digit5" + android:text="@string/digit5" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/digit6" + android:text="@string/digit6" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/dot" + android:text="@string/dot" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/div" + android:text="@string/div" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/minus" + android:text="@string/minus" + style="@style/button_style" + /> + </LinearLayout> + + <LinearLayout + android:layout_weight="1" + android:layout_width="fill_parent" + android:layout_height="0px" + > + <com.android.calculator2.ColorButton + android:id="@+id/digit1" + android:text="@string/digit1" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/digit2" + android:text="@string/digit2" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/digit3" + android:text="@string/digit3" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/digit0" + android:text="@string/digit0" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/equal" + android:text="@string/equal" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/plus" + android:text="@string/plus" + style="@style/button_style" + /> + </LinearLayout> + </LinearLayout> + + <LinearLayout + android:id="@+id/advancedPad" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="1" + android:orientation="vertical" + android:layout_gravity="center" + android:layout_marginTop="5px" + android:layout_marginBottom="0px" + > + + <LinearLayout + android:layout_weight="1" + android:layout_width="fill_parent" + android:layout_height="0px" + > + <com.android.calculator2.ColorButton + android:id="@+id/sin" + android:text="@string/sin" + style="@style/button_small_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/cos" + android:text="@string/cos" + style="@style/button_small_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/tan" + android:text="@string/tan" + style="@style/button_small_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/pi" + android:text="@string/pi" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/factorial" + android:text="@string/factorial" + style="@style/button_style" + /> + </LinearLayout> + + <LinearLayout + android:layout_weight="1" + android:layout_width="fill_parent" + android:layout_height="0px" + > + <com.android.calculator2.ColorButton + android:id="@+id/ln" + android:text="@string/ln" + style="@style/button_small_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/lg" + android:text="@string/lg" + style="@style/button_small_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/e" + android:text="@string/e" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/power" + android:text="@string/power" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/sqrt" + android:text="@string/sqrt" + style="@style/button_style" + /> + </LinearLayout> + </LinearLayout> + </com.android.calculator2.PanelSwitcher> +</LinearLayout> diff --git a/res/layout-port/history_item.xml b/res/layout-port/history_item.xml new file mode 100644 index 0000000..cc0a3c6 --- /dev/null +++ b/res/layout-port/history_item.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + > + + <TextView + android:id="@+id/historyExpr" + android:layout_width="0px" + android:layout_height="wrap_content" + android:layout_weight="1" + android:textSize="23dp" + android:singleLine="true" + /> + + <TextView + android:id="@+id/historyResult" + android:layout_width="180px" + android:layout_height="wrap_content" + android:layout_weight="0" + android:textSize="23dp" + android:singleLine="true" + /> + +</LinearLayout> diff --git a/res/layout-port/main.xml b/res/layout-port/main.xml new file mode 100644 index 0000000..b115e53 --- /dev/null +++ b/res/layout-port/main.xml @@ -0,0 +1,299 @@ +<?xml version="1.0" encoding="utf-8"?> + +<!-- +/* + * Copyright (C) 2008, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:background="#ff000000"> + + <RelativeLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="5px" + > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:background="@drawable/lcd" + android:layout_marginRight="0px"> + + <com.android.calculator2.CalculatorDisplay + android:id="@+id/display" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + > + + <EditText style="@style/display_style" /> + <EditText style="@style/display_style" /> + + </com.android.calculator2.CalculatorDisplay> + </LinearLayout> + </RelativeLayout> + + <com.android.calculator2.PanelSwitcher + android:id="@+id/panelswitch" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + > + + <LinearLayout + android:id="@+id/simplePad" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" + android:layout_gravity="center" + > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="8px" + android:layout_marginTop="5px" + > + + <View + android:layout_width="0px" + android:layout_height="0px" + android:layout_weight="1" + /> + + <!-- marginRight has to be 0 to catch border-touch --> + <Button + android:background="@drawable/small_button_stateful" + android:id="@+id/del" + android:text="@string/clear" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:width="90px" + android:height="50px" + android:textColor="#ffffffff" + android:layout_marginRight="0px" + android:layout_marginBottom="3px" + android:layout_weight="0" + /> + </LinearLayout> + + <LinearLayout + android:layout_weight="1" + android:layout_width="fill_parent" + android:layout_height="0px"> + <com.android.calculator2.ColorButton + android:id="@+id/digit7" + android:text="@string/digit7" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/digit8" + android:text="@string/digit8" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/digit9" + android:text="@string/digit9" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/div" + android:text="@string/div" + style="@style/button_style" + /> + </LinearLayout> + + <LinearLayout + android:layout_weight="1" + android:layout_width="fill_parent" + android:layout_height="0px" + > + <com.android.calculator2.ColorButton + android:id="@+id/digit4" + android:text="@string/digit4" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/digit5" + android:text="@string/digit5" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/digit6" + android:text="@string/digit6" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/mul" + android:text="@string/mul" + style="@style/button_style" + /> + </LinearLayout> + + <LinearLayout + android:layout_weight="1" + android:layout_width="fill_parent" + android:layout_height="0px" + > + <com.android.calculator2.ColorButton + android:id="@+id/digit1" + android:text="@string/digit1" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/digit2" + android:text="@string/digit2" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/digit3" + android:text="@string/digit3" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/minus" + android:text="@string/minus" + style="@style/button_style" + /> + </LinearLayout> + + <LinearLayout + android:layout_weight="1" + android:layout_width="fill_parent" + android:layout_height="0px" + > + <com.android.calculator2.ColorButton + android:id="@+id/dot" + android:text="@string/dot" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/digit0" + android:text="@string/digit0" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/equal" + android:text="@string/equal" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/plus" + android:text="@string/plus" + style="@style/button_style" + /> + </LinearLayout> + </LinearLayout> + + <LinearLayout android:id="@+id/advancedPad" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" + android:layout_gravity="center" + > + + <LinearLayout + android:layout_weight="1" + android:layout_width="fill_parent" + android:layout_height="0px" + > + <com.android.calculator2.ColorButton + android:id="@+id/sin" + android:text="@string/sin" + style="@style/button_small_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/cos" + android:text="@string/cos" + style="@style/button_small_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/tan" + android:text="@string/tan" + style="@style/button_small_style" + /> + </LinearLayout> + + <LinearLayout + android:layout_weight="1" + android:layout_width="fill_parent" + android:layout_height="0px" + > + <com.android.calculator2.ColorButton + android:id="@+id/ln" + android:text="@string/ln" + style="@style/button_small_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/lg" + android:text="@string/lg" + style="@style/button_small_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/factorial" + android:text="@string/factorial" + style="@style/button_style" + /> + </LinearLayout> + + <LinearLayout + android:layout_weight="1" + android:layout_width="fill_parent" + android:layout_height="0px" + > + <com.android.calculator2.ColorButton + android:id="@+id/pi" + android:text="@string/pi" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/e" + android:text="@string/e" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/power" + android:text="@string/power" + style="@style/button_style" + /> + </LinearLayout> + + <LinearLayout + android:layout_weight="1" + android:layout_width="fill_parent" + android:layout_height="0px" + > + <com.android.calculator2.ColorButton + android:id="@+id/leftParen" + android:text="@string/leftParen" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/rightParen" + android:text="@string/rightParen" + style="@style/button_style" + /> + <com.android.calculator2.ColorButton + android:id="@+id/sqrt" + android:text="@string/sqrt" + style="@style/button_style" + /> + </LinearLayout> + </LinearLayout> + </com.android.calculator2.PanelSwitcher> +</LinearLayout> diff --git a/res/values-cs/strings.xml b/res/values-cs/strings.xml new file mode 100644 index 0000000..4d673e5 --- /dev/null +++ b/res/values-cs/strings.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<resources xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string name="app_name">"Kalkulačka"</string> + <string name="error">"Chyba"</string> + <string name="digit0">"0"</string> + <string name="digit1">"1"</string> + <string name="digit2">"2"</string> + <string name="digit3">"3"</string> + <string name="digit4">"4"</string> + <string name="digit5">"5"</string> + <string name="digit6">"6"</string> + <string name="digit7">"7"</string> + <string name="digit8">"8"</string> + <string name="digit9">"9"</string> + <string name="del">"ODSTRANIT"</string> + <string name="clear">"VYMAZAT"</string> + <string name="sin">"sin"</string> + <string name="cos">"cos"</string> + <string name="tan">"tan"</string> + <string name="e">"e"</string> + <string name="ln">"ln"</string> + <string name="lg">"log"</string> + <string name="leftParen">"("</string> + <string name="rightParen">")"</string> + <string name="basic">"Základní funkce"</string> + <string name="advanced">"Pokročilé funkce"</string> + <string name="clear_history">"Vymazat historii"</string> +</resources> diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml new file mode 100644 index 0000000..ab6fc36 --- /dev/null +++ b/res/values-de/strings.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<resources xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string name="app_name">"Rechner"</string> + <string name="error">"Fehler"</string> + <string name="digit0">"0"</string> + <string name="digit1">"1"</string> + <string name="digit2">"2"</string> + <string name="digit3">"3"</string> + <string name="digit4">"4"</string> + <string name="digit5">"5"</string> + <string name="digit6">"6"</string> + <string name="digit7">"7"</string> + <string name="digit8">"8"</string> + <string name="digit9">"9"</string> + <string name="del">"C"</string> + <string name="clear">"AC"</string> + <string name="sin">"sin"</string> + <string name="cos">"cos"</string> + <string name="tan">"tan"</string> + <string name="e">"e"</string> + <string name="ln">"ln"</string> + <string name="lg">"log"</string> + <string name="leftParen">"("</string> + <string name="rightParen">")"</string> + <string name="basic">"Grundfunktionen"</string> + <string name="advanced">"Erweiterte Funktionen"</string> + <string name="clear_history">"Verlauf löschen"</string> +</resources> diff --git a/res/values-es/strings.xml b/res/values-es/strings.xml new file mode 100644 index 0000000..4a37445 --- /dev/null +++ b/res/values-es/strings.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<resources xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string name="app_name">"Calculadora"</string> + <string name="error">"Error"</string> + <string name="digit0">"0"</string> + <string name="digit1">"1"</string> + <string name="digit2">"2"</string> + <string name="digit3">"3"</string> + <string name="digit4">"4"</string> + <string name="digit5">"5"</string> + <string name="digit6">"6"</string> + <string name="digit7">"7"</string> + <string name="digit8">"8"</string> + <string name="digit9">"9"</string> + <string name="del">"ELIMINAR"</string> + <string name="clear">"BORRAR"</string> + <string name="sin">"sen"</string> + <string name="cos">"cos"</string> + <string name="tan">"tan"</string> + <string name="e">"e"</string> + <string name="ln">"ln"</string> + <string name="lg">"log"</string> + <string name="leftParen">"("</string> + <string name="rightParen">")"</string> + <string name="basic">"Panel de funciones básicas"</string> + <string name="advanced">"Panel de funciones avanzadas"</string> + <string name="clear_history">"Borrar historial"</string> +</resources> diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml new file mode 100644 index 0000000..26d012a --- /dev/null +++ b/res/values-fr/strings.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<resources xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string name="app_name">"Calculatrice"</string> + <string name="error">"Erreur"</string> + <string name="digit0">"0"</string> + <string name="digit1">"1"</string> + <string name="digit2">"2"</string> + <string name="digit3">"3"</string> + <string name="digit4">"4"</string> + <string name="digit5">"5"</string> + <string name="digit6">"6"</string> + <string name="digit7">"7"</string> + <string name="digit8">"8"</string> + <string name="digit9">"9"</string> + <string name="del">"SUPPRIMER"</string> + <string name="clear">"EFFACER"</string> + <string name="sin">"sin"</string> + <string name="cos">"cos"</string> + <string name="tan">"tan"</string> + <string name="e">"e"</string> + <string name="ln">"ln"</string> + <string name="lg">"log"</string> + <string name="leftParen">"("</string> + <string name="rightParen">")"</string> + <string name="basic">"Panneau de base"</string> + <string name="advanced">"Fonctions avancées"</string> + <string name="clear_history">"Effacer l\'historique"</string> +</resources> diff --git a/res/values-it/strings.xml b/res/values-it/strings.xml new file mode 100644 index 0000000..22e81e0 --- /dev/null +++ b/res/values-it/strings.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<resources xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string name="app_name">"Calcolatrice"</string> + <string name="error">"Errore"</string> + <string name="digit0">"0"</string> + <string name="digit1">"1"</string> + <string name="digit2">"2"</string> + <string name="digit3">"3"</string> + <string name="digit4">"4"</string> + <string name="digit5">"5"</string> + <string name="digit6">"6"</string> + <string name="digit7">"7"</string> + <string name="digit8">"8"</string> + <string name="digit9">"9"</string> + <string name="del">"ELIMINA"</string> + <string name="clear">"CANCELLA"</string> + <string name="sin">"sin"</string> + <string name="cos">"cos"</string> + <string name="tan">"tan"</string> + <string name="e">"e"</string> + <string name="ln">"ln"</string> + <string name="lg">"log"</string> + <string name="leftParen">"("</string> + <string name="rightParen">")"</string> + <string name="basic">"Pannello base"</string> + <string name="advanced">"Pannello avanzato"</string> + <string name="clear_history">"Cancella cronologia"</string> +</resources> diff --git a/res/values-ja/strings.xml b/res/values-ja/strings.xml new file mode 100644 index 0000000..ae74f66 --- /dev/null +++ b/res/values-ja/strings.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<resources xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string name="app_name">"電卓"</string> + <string name="error">"エラー"</string> + <string name="digit0">"0"</string> + <string name="digit1">"1"</string> + <string name="digit2">"2"</string> + <string name="digit3">"3"</string> + <string name="digit4">"4"</string> + <string name="digit5">"5"</string> + <string name="digit6">"6"</string> + <string name="digit7">"7"</string> + <string name="digit8">"8"</string> + <string name="digit9">"9"</string> + <string name="del">"削除"</string> + <string name="clear">"CLEAR"</string> + <string name="sin">"sin"</string> + <string name="cos">"cos"</string> + <string name="tan">"tan"</string> + <string name="e">"e"</string> + <string name="ln">"ln"</string> + <string name="lg">"log"</string> + <string name="leftParen">"("</string> + <string name="rightParen">")"</string> + <string name="basic">"標準機能"</string> + <string name="advanced">"関数機能"</string> + <string name="clear_history">"履歴消去"</string> +</resources> diff --git a/res/values-ko/strings.xml b/res/values-ko/strings.xml new file mode 100644 index 0000000..e7e537c --- /dev/null +++ b/res/values-ko/strings.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<resources xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string name="app_name">"계산기"</string> + <string name="error">"오류"</string> + <string name="digit0">"0"</string> + <string name="digit1">"1"</string> + <string name="digit2">"2"</string> + <string name="digit3">"3"</string> + <string name="digit4">"4"</string> + <string name="digit5">"5"</string> + <string name="digit6">"6"</string> + <string name="digit7">"7"</string> + <string name="digit8">"8"</string> + <string name="digit9">"9"</string> + <string name="del">"삭제"</string> + <string name="clear">"지우기"</string> + <string name="sin">"sin"</string> + <string name="cos">"cos"</string> + <string name="tan">"tan"</string> + <string name="e">"e"</string> + <string name="ln">"ln"</string> + <string name="lg">"log"</string> + <string name="leftParen">"("</string> + <string name="rightParen">")"</string> + <string name="basic">"기본 패널"</string> + <string name="advanced">"고급 패널"</string> + <string name="clear_history">"기록 지우기"</string> +</resources> diff --git a/res/values-nb/strings.xml b/res/values-nb/strings.xml new file mode 100644 index 0000000..ff4c824 --- /dev/null +++ b/res/values-nb/strings.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<resources xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string name="app_name">"Kalkulator"</string> + <string name="error">"Feil"</string> + <string name="digit0">"0"</string> + <string name="digit1">"1"</string> + <string name="digit2">"2"</string> + <string name="digit3">"3"</string> + <string name="digit4">"4"</string> + <string name="digit5">"5"</string> + <string name="digit6">"6"</string> + <string name="digit7">"7"</string> + <string name="digit8">"8"</string> + <string name="digit9">"9"</string> + <string name="del">"SLETT"</string> + <string name="clear">"RYDD"</string> + <string name="sin">"sin"</string> + <string name="cos">"cos"</string> + <string name="tan">"tan"</string> + <string name="e">"e"</string> + <string name="ln">"ln"</string> + <string name="lg">"log"</string> + <string name="leftParen">"("</string> + <string name="rightParen">")"</string> + <string name="basic">"Grunnleggende panel"</string> + <string name="advanced">"Avansert panel"</string> + <string name="clear_history">"Nullstill historie"</string> +</resources> diff --git a/res/values-nl/strings.xml b/res/values-nl/strings.xml new file mode 100644 index 0000000..7c369aa --- /dev/null +++ b/res/values-nl/strings.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<resources xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string name="app_name">"Rekenmachine"</string> + <string name="error">"Fout"</string> + <string name="digit0">"0"</string> + <string name="digit1">"1"</string> + <string name="digit2">"2"</string> + <string name="digit3">"3"</string> + <string name="digit4">"4"</string> + <string name="digit5">"5"</string> + <string name="digit6">"6"</string> + <string name="digit7">"7"</string> + <string name="digit8">"8"</string> + <string name="digit9">"9"</string> + <string name="del">"VERWIJDEREN"</string> + <string name="clear">"WISSEN"</string> + <string name="sin">"sin"</string> + <string name="cos">"cos"</string> + <string name="tan">"tan"</string> + <string name="e">"e"</string> + <string name="ln">"ln"</string> + <string name="lg">"log"</string> + <string name="leftParen">"("</string> + <string name="rightParen">")"</string> + <string name="basic">"Basis"</string> + <string name="advanced">"Geavanceerd"</string> + <string name="clear_history">"Geschiedenis wissen"</string> +</resources> diff --git a/res/values-pl/strings.xml b/res/values-pl/strings.xml new file mode 100644 index 0000000..bf636c5 --- /dev/null +++ b/res/values-pl/strings.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<resources xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string name="app_name">"Kalkulator"</string> + <string name="error">"Błąd"</string> + <string name="digit0">"0"</string> + <string name="digit1">"1"</string> + <string name="digit2">"2"</string> + <string name="digit3">"3"</string> + <string name="digit4">"4"</string> + <string name="digit5">"5"</string> + <string name="digit6">"6"</string> + <string name="digit7">"7"</string> + <string name="digit8">"8"</string> + <string name="digit9">"9"</string> + <string name="del">"USUŃ"</string> + <string name="clear">"WYCZYŚĆ"</string> + <string name="sin">"sin"</string> + <string name="cos">"cos"</string> + <string name="tan">"tg"</string> + <string name="e">"e"</string> + <string name="ln">"ln"</string> + <string name="lg">"log"</string> + <string name="leftParen">"("</string> + <string name="rightParen">")"</string> + <string name="basic">"Panel podstawowy"</string> + <string name="advanced">"Panel zaawansowany"</string> + <string name="clear_history">"Wyczyść historię"</string> +</resources> diff --git a/res/values-ru/strings.xml b/res/values-ru/strings.xml new file mode 100644 index 0000000..9b06fcc --- /dev/null +++ b/res/values-ru/strings.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<resources xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string name="app_name">"Калькулятор"</string> + <string name="error">"Ошибка"</string> + <string name="digit0">"0"</string> + <string name="digit1">"1"</string> + <string name="digit2">"2"</string> + <string name="digit3">"3"</string> + <string name="digit4">"4"</string> + <string name="digit5">"5"</string> + <string name="digit6">"6"</string> + <string name="digit7">"7"</string> + <string name="digit8">"8"</string> + <string name="digit9">"9"</string> + <string name="del">"УДАЛИТЬ"</string> + <string name="clear">"СБРОС"</string> + <string name="sin">"sin"</string> + <string name="cos">"cos"</string> + <string name="tan">"tan"</string> + <string name="e">"e"</string> + <string name="ln">"ln"</string> + <string name="lg">"log"</string> + <string name="leftParen">"("</string> + <string name="rightParen">")"</string> + <string name="basic">"Основная панель"</string> + <string name="advanced">"Расширенная панель"</string> + <string name="clear_history">"Очистить историю"</string> +</resources> diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml new file mode 100644 index 0000000..38431f6 --- /dev/null +++ b/res/values-zh-rCN/strings.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<resources xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string name="app_name">"计算器"</string> + <string name="error">"错误"</string> + <string name="digit0">"0"</string> + <string name="digit1">"1"</string> + <string name="digit2">"2"</string> + <string name="digit3">"3"</string> + <string name="digit4">"4"</string> + <string name="digit5">"5"</string> + <string name="digit6">"6"</string> + <string name="digit7">"7"</string> + <string name="digit8">"8"</string> + <string name="digit9">"9"</string> + <string name="del">"删除"</string> + <string name="clear">"清除"</string> + <string name="sin">"sin"</string> + <string name="cos">"cos"</string> + <string name="tan">"tan"</string> + <string name="e">"e"</string> + <string name="ln">"ln"</string> + <string name="lg">"log"</string> + <string name="leftParen">"("</string> + <string name="rightParen">")"</string> + <string name="basic">"基本面板"</string> + <string name="advanced">"高级面板"</string> + <string name="clear_history">"清除历史记录"</string> +</resources> diff --git a/res/values-zh-rTW/strings.xml b/res/values-zh-rTW/strings.xml new file mode 100644 index 0000000..f0a9646 --- /dev/null +++ b/res/values-zh-rTW/strings.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<resources xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string name="app_name">"小算盤"</string> + <string name="error">"錯誤"</string> + <string name="digit0">"0"</string> + <string name="digit1">"1"</string> + <string name="digit2">"2"</string> + <string name="digit3">"3"</string> + <string name="digit4">"4"</string> + <string name="digit5">"5"</string> + <string name="digit6">"6"</string> + <string name="digit7">"7"</string> + <string name="digit8">"8"</string> + <string name="digit9">"9"</string> + <string name="del">"刪除"</string> + <string name="clear">"清除"</string> + <string name="sin">"sin"</string> + <string name="cos">"cos"</string> + <string name="tan">"tan"</string> + <string name="e">"e"</string> + <string name="ln">"ln"</string> + <string name="lg">"log"</string> + <string name="leftParen">"("</string> + <string name="rightParen">")"</string> + <string name="basic">"基本面板"</string> + <string name="advanced">"進階面板"</string> + <string name="clear_history">"Clear history"</string> +</resources> diff --git a/res/values/colors.xml b/res/values/colors.xml new file mode 100644 index 0000000..76f3f13 --- /dev/null +++ b/res/values/colors.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2007 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<resources> + <color name="magic_flame">#00ff2222</color> + <color name="button_text">#ffffffff</color> +</resources> diff --git a/res/values/strings.xml b/res/values/strings.xml new file mode 100644 index 0000000..817dedf --- /dev/null +++ b/res/values/strings.xml @@ -0,0 +1,76 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <!-- Application name --> + <string name="app_name">Calculator</string> + <!-- If there is a syntax error in the user entered calculation, an error dialog will appear. This is the title. --> + <string name="error">Error</string> + <!-- Displayed numbers for the digit buttons --> + <string name="digit0">0</string> + <!-- Displayed numbers for the digit buttons --> + <string name="digit1">1</string> + <!-- Displayed numbers for the digit buttons --> + <string name="digit2">2</string> + <!-- Displayed numbers for the digit buttons --> + <string name="digit3">3</string> + <!-- Displayed numbers for the digit buttons --> + <string name="digit4">4</string> + <!-- Displayed numbers for the digit buttons --> + <string name="digit5">5</string> + <!-- Displayed numbers for the digit buttons --> + <string name="digit6">6</string> + <!-- Displayed numbers for the digit buttons --> + <string name="digit7">7</string> + <!-- Displayed numbers for the digit buttons --> + <string name="digit8">8</string> + <!-- Displayed numbers for the digit buttons --> + <string name="digit9">9</string> + <!-- Button name on screen to delete the last entered digit or operator --> + <string name="del">DELETE</string> + <!-- Button name on screen to clear the entire calculation field --> + <string name="clear">CLEAR</string> + <!-- Do not translate. Unicode division sign; don't translate. Displayed as button on screen. --> + <string name="div">\u00f7</string> + <!-- Do not translate. Unicode multiplication sign; don't translate. Displayed as button on screen. --> + <string name="mul">\u00d7</string> + <!-- Do not translate. Plus sign, displayed as button on screen --> + <string name="plus">+</string> + <!-- Do not translate. Unicode minus sign; don't translate. Displayed as button on screen. --> + <string name="minus">\u2212</string> + <!-- Do not translate. Decimal point; don't translate. Displayed as button on screen. --> + <string name="dot">.</string> + <!-- Do not translate. Equal sign; don't translate. Displayed as button on screen. --> + <string name="equal">=</string> + <!-- Do not translate. Down arrow; don't translate. Displayed as button on screen. --> + <string name="enter">\u2193</string> + <!-- Displayed on buttons on screen for the sin function. --> + <string name="sin">sin</string> + <!-- Displayed on buttons on screen for the cos function. --> + <string name="cos">cos</string> + <!-- Displayed on buttons on screen for the tan function. --> + <string name="tan">tan</string> + + <!-- Do not translate. Unicode pi sign; don't translate. Displayed as button on screen. --> + <string name="pi">\u03c0</string> + <!-- Displayed on buttons on screen for the e function. --> + <string name="e">e</string> + <!-- Displayed on buttons on screen for the ln function. --> + <string name="ln">ln</string> + <!-- Displayed on buttons on screen for the log function. --> + <string name="lg">log</string> + <!-- Displayed on buttons on screen for a left parenthesis. --> + <string name="leftParen">(</string> + <!-- Displayed on buttons on screen for a right parenthesis. --> + <string name="rightParen">)</string> + <!-- Do not translate. Unicode square root sign; don't translate. Displayed on button on screen. --> + <string name="sqrt">\u221a</string> + <!-- Do not translate. Displayed on buttons on screen. --> + <string name="power">^</string> + <!-- Do not translate. --> + <string name="factorial">!</string> + <!-- Menu item text to take user to the screen with the basic digits and operators. --> + <string name="basic">Basic panel</string> + <!-- Menu item text to take user to the screen with the advanced functions, such as sin, cos, ln, log, etc. --> + <string name="advanced">Advanced panel</string> + <!-- Menu item text to clear the calculation history. --> + <string name="clear_history">Clear history</string> +</resources> diff --git a/res/values/styles.xml b/res/values/styles.xml new file mode 100644 index 0000000..1fc670b --- /dev/null +++ b/res/values/styles.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <style name="button_style"> + <item name="android:textSize">40dp</item> + <item name="android:layout_width">fill_parent</item> + <item name="android:layout_height">fill_parent</item> + <item name="android:layout_weight">1</item> + <item name="android:focusable">true</item> + </style> + + <style name="button_small_style"> + <item name="android:textSize">30dp</item> + <item name="android:layout_width">fill_parent</item> + <item name="android:layout_height">fill_parent</item> + <item name="android:layout_weight">1</item> + <item name="android:focusable">true</item> + </style> + + <style name="display_style"> + <item name="android:textSize">40dp</item> + <item name="android:gravity">right</item> + <item name="android:textColor">#f000</item> + <item name="android:maxLines">1</item> + <item name="android:scrollbars">none</item> + <item name="android:scrollHorizontally">true</item> + <item name="android:layout_width">fill_parent</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:padding">8dp</item> + </style> +</resources> |