hide the scientific calculator button until it gets fully implemented

This commit is contained in:
tibbi 2018-10-19 18:18:38 +02:00
parent 4a81aeebbc
commit d67b98b880
20 changed files with 22 additions and 3 deletions

View File

@ -84,6 +84,7 @@ class MainActivity : SimpleActivity(), Calculator {
override fun onCreateOptionsMenu(menu: Menu): Boolean { override fun onCreateOptionsMenu(menu: Menu): Boolean {
menuInflater.inflate(R.menu.menu, menu) menuInflater.inflate(R.menu.menu, menu)
menu.findItem(R.id.scientific_calculator).isVisible = false // not implemented yet
return true return true
} }
@ -91,7 +92,7 @@ class MainActivity : SimpleActivity(), Calculator {
when (item.itemId) { when (item.itemId) {
R.id.settings -> launchSettings() R.id.settings -> launchSettings()
R.id.about -> launchAbout() R.id.about -> launchAbout()
R.id.scientific -> launchScientific() R.id.scientific_calculator -> launchScientific()
else -> return super.onOptionsItemSelected(item) else -> return super.onOptionsItemSelected(item)
} }
return true return true

View File

@ -2,8 +2,8 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android" <menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"> xmlns:app="http://schemas.android.com/apk/res-auto">
<item <item
android:id="@+id/scientific" android:id="@+id/scientific_calculator"
android:title="Scientific Calculator" android:title="@string/scientific_calculator"
app:showAsAction="never"/> app:showAsAction="never"/>
<item <item
android:id="@+id/settings" android:id="@+id/settings"

View File

@ -1,6 +1,7 @@
<resources> <resources>
<string name="app_name">الحاسبة البسيطة</string> <string name="app_name">الحاسبة البسيطة</string>
<string name="app_launcher_name">الحاسبة</string> <string name="app_launcher_name">الحاسبة</string>
<string name="scientific_calculator">Scientific Calculator</string>
<!-- Settings --> <!-- Settings -->
<string name="vibrate_on_button_press">الاهتزاز عند الضغط على الازرار</string> <string name="vibrate_on_button_press">الاهتزاز عند الضغط على الازرار</string>

View File

@ -1,6 +1,7 @@
<resources> <resources>
<string name="app_name">Sadə Kalkulyator</string> <string name="app_name">Sadə Kalkulyator</string>
<string name="app_launcher_name">Kalkulyator</string> <string name="app_launcher_name">Kalkulyator</string>
<string name="scientific_calculator">Scientific Calculator</string>
<!-- Settings --> <!-- Settings -->
<string name="vibrate_on_button_press">Düyməyə basdıqda titrə</string> <string name="vibrate_on_button_press">Düyməyə basdıqda titrə</string>

View File

@ -1,6 +1,7 @@
<resources> <resources>
<string name="app_name">Schlichter Rechner</string> <string name="app_name">Schlichter Rechner</string>
<string name="app_launcher_name">Rechner</string>ng> <string name="app_launcher_name">Rechner</string>ng>
<string name="scientific_calculator">Scientific Calculator</string>
<!-- Settings --> <!-- Settings -->
<string name="vibrate_on_button_press">Bei Tastendruck vibrieren</string> <string name="vibrate_on_button_press">Bei Tastendruck vibrieren</string>

View File

@ -1,6 +1,7 @@
<resources> <resources>
<string name="app_name">Simple Calculator</string> <string name="app_name">Simple Calculator</string>
<string name="app_launcher_name">Calculadora</string> <string name="app_launcher_name">Calculadora</string>
<string name="scientific_calculator">Scientific Calculator</string>
<!-- Settings --> <!-- Settings -->
<string name="vibrate_on_button_press">Vibrate on button press</string> <string name="vibrate_on_button_press">Vibrate on button press</string>

View File

@ -1,6 +1,7 @@
<resources> <resources>
<string name="app_name">Simple Calculatrice</string> <string name="app_name">Simple Calculatrice</string>
<string name="app_launcher_name">Calculatrice</string> <string name="app_launcher_name">Calculatrice</string>
<string name="scientific_calculator">Scientific Calculator</string>
<!-- Settings --> <!-- Settings -->
<string name="vibrate_on_button_press">Vibrer lors de l\'appui sur les boutons</string> <string name="vibrate_on_button_press">Vibrer lors de l\'appui sur les boutons</string>

View File

@ -1,6 +1,7 @@
<resources> <resources>
<string name="app_name">Jednostavan kalkulator</string> <string name="app_name">Jednostavan kalkulator</string>
<string name="app_launcher_name">Kalkulator</string> <string name="app_launcher_name">Kalkulator</string>
<string name="scientific_calculator">Scientific Calculator</string>
<!-- Settings --> <!-- Settings -->
<string name="vibrate_on_button_press">Vibriraj prilikom pritiska na gumb</string> <string name="vibrate_on_button_press">Vibriraj prilikom pritiska na gumb</string>

View File

@ -1,6 +1,7 @@
<resources> <resources>
<string name="app_name">Simple Calculator</string> <string name="app_name">Simple Calculator</string>
<string name="app_launcher_name">Calcolatrice</string> <string name="app_launcher_name">Calcolatrice</string>
<string name="scientific_calculator">Scientific Calculator</string>
<!-- Settings --> <!-- Settings -->
<string name="vibrate_on_button_press">Vibra alla pressione di un tasto</string> <string name="vibrate_on_button_press">Vibra alla pressione di un tasto</string>

View File

@ -1,6 +1,7 @@
<resources> <resources>
<string name="app_name">シンプル電卓</string> <string name="app_name">シンプル電卓</string>
<string name="app_launcher_name">電卓</string> <string name="app_launcher_name">電卓</string>
<string name="scientific_calculator">Scientific Calculator</string>
<!-- Settings --> <!-- Settings -->
<string name="vibrate_on_button_press">ボタンのタップ時に振動する</string> <string name="vibrate_on_button_press">ボタンのタップ時に振動する</string>

View File

@ -1,6 +1,7 @@
<resources> <resources>
<string name="app_name">Paprastas skaičiuotuvas</string> <string name="app_name">Paprastas skaičiuotuvas</string>
<string name="app_launcher_name">Skaičiuotuvas</string> <string name="app_launcher_name">Skaičiuotuvas</string>
<string name="scientific_calculator">Scientific Calculator</string>
<!-- Settings --> <!-- Settings -->
<string name="vibrate_on_button_press">Vibruoti kai spaudžiami mygtukai</string> <string name="vibrate_on_button_press">Vibruoti kai spaudžiami mygtukai</string>

View File

@ -1,6 +1,7 @@
<resources> <resources>
<string name="app_name">Eenvoudige Rekenmachine</string> <string name="app_name">Eenvoudige Rekenmachine</string>
<string name="app_launcher_name">Rekenmachine</string> <string name="app_launcher_name">Rekenmachine</string>
<string name="scientific_calculator">Scientific Calculator</string>
<!-- Settings --> <!-- Settings -->
<string name="vibrate_on_button_press">Trillen bij tikken.</string> <string name="vibrate_on_button_press">Trillen bij tikken.</string>

View File

@ -1,6 +1,7 @@
<resources> <resources>
<string name="app_name">Prosty Kalkulator</string> <string name="app_name">Prosty Kalkulator</string>
<string name="app_launcher_name">Kalkulator</string> <string name="app_launcher_name">Kalkulator</string>
<string name="scientific_calculator">Scientific Calculator</string>
<!-- Settings --> <!-- Settings -->
   <string name="vibrate_on_button_press">Wibracja po wciśnięciu przycisku</string>    <string name="vibrate_on_button_press">Wibracja po wciśnięciu przycisku</string>

View File

@ -1,6 +1,7 @@
<resources> <resources>
<string name="app_name">Simple Calculator</string> <string name="app_name">Simple Calculator</string>
<string name="app_launcher_name">Calculadora</string> <string name="app_launcher_name">Calculadora</string>
<string name="scientific_calculator">Scientific Calculator</string>
<!-- Settings --> <!-- Settings -->
<string name="vibrate_on_button_press">Vibrar ao tocar nos botões</string> <string name="vibrate_on_button_press">Vibrar ao tocar nos botões</string>

View File

@ -1,6 +1,7 @@
<resources> <resources>
<string name="app_name">Simple Calculator</string> <string name="app_name">Simple Calculator</string>
<string name="app_launcher_name">Калькулятор</string> <string name="app_launcher_name">Калькулятор</string>
<string name="scientific_calculator">Scientific Calculator</string>
<!-- Settings --> <!-- Settings -->
<string name="vibrate_on_button_press">Вибрация при нажатии кнопок</string> <string name="vibrate_on_button_press">Вибрация при нажатии кнопок</string>

View File

@ -1,6 +1,7 @@
<resources> <resources>
<string name="app_name">Jednoduchá kalkulačka</string> <string name="app_name">Jednoduchá kalkulačka</string>
<string name="app_launcher_name">Kalkulačka</string> <string name="app_launcher_name">Kalkulačka</string>
<string name="scientific_calculator">Vedecká kalkulačka</string>
<!-- Settings --> <!-- Settings -->
<string name="vibrate_on_button_press">Vibrovať pri stlačení tlačidla</string> <string name="vibrate_on_button_press">Vibrovať pri stlačení tlačidla</string>

View File

@ -1,6 +1,7 @@
<resources> <resources>
<string name="app_name">Simple Calculator</string> <string name="app_name">Simple Calculator</string>
<string name="app_launcher_name">Kalkylator</string> <string name="app_launcher_name">Kalkylator</string>
<string name="scientific_calculator">Scientific Calculator</string>
<!-- Settings --> <!-- Settings -->
<string name="vibrate_on_button_press">Vibrera när jag trycker på knapparna</string> <string name="vibrate_on_button_press">Vibrera när jag trycker på knapparna</string>

View File

@ -1,6 +1,7 @@
<resources> <resources>
<string name="app_name">Basit Hesap Makinesi</string> <string name="app_name">Basit Hesap Makinesi</string>
<string name="app_launcher_name">Hesap Makinesi</string> <string name="app_launcher_name">Hesap Makinesi</string>
<string name="scientific_calculator">Scientific Calculator</string>
<!-- Settings --> <!-- Settings -->
<string name="vibrate_on_button_press">Vibrate on button press</string> <string name="vibrate_on_button_press">Vibrate on button press</string>

View File

@ -1,6 +1,7 @@
<resources> <resources>
<string name="app_name">簡易計算機</string> <string name="app_name">簡易計算機</string>
<string name="app_launcher_name">簡易計算機</string> <string name="app_launcher_name">簡易計算機</string>
<string name="scientific_calculator">Scientific Calculator</string>
<!-- Settings --> <!-- Settings -->
<string name="vibrate_on_button_press">按下按鈕時震動</string> <string name="vibrate_on_button_press">按下按鈕時震動</string>

View File

@ -1,6 +1,7 @@
<resources> <resources>
<string name="app_name">Simple Calculator</string> <string name="app_name">Simple Calculator</string>
<string name="app_launcher_name">Calculator</string> <string name="app_launcher_name">Calculator</string>
<string name="scientific_calculator">Scientific Calculator</string>
<!-- Settings --> <!-- Settings -->
<string name="vibrate_on_button_press">Vibrate on button press</string> <string name="vibrate_on_button_press">Vibrate on button press</string>