diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 319e89c1..7496edb7 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -34,6 +34,14 @@ android:name=".activities.MainActivity" android:exported="false" /> + + + + showHistory() R.id.more_apps_from_us -> launchMoreAppsFromUsIntent() + R.id.unit_converter -> launchUnitConverter() R.id.settings -> launchSettings() R.id.about -> launchAbout() else -> return@setOnMenuItemClickListener false @@ -174,6 +175,11 @@ class MainActivity : SimpleActivity(), Calculator { } } + private fun launchUnitConverter() { + hideKeyboard() + startActivity(Intent(applicationContext, UnitConverterPickerActivity::class.java)) + } + private fun launchSettings() { hideKeyboard() startActivity(Intent(applicationContext, SettingsActivity::class.java)) diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/activities/UnitConverterActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/activities/UnitConverterActivity.kt new file mode 100644 index 00000000..177e3cc8 --- /dev/null +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/activities/UnitConverterActivity.kt @@ -0,0 +1,157 @@ +package com.simplemobiletools.calculator.activities + +import android.content.res.Configuration +import android.os.Bundle +import android.view.View +import android.view.WindowManager +import androidx.core.content.res.ResourcesCompat +import com.simplemobiletools.calculator.R +import com.simplemobiletools.calculator.databinding.ActivityUnitConverterBinding +import com.simplemobiletools.calculator.extensions.config +import com.simplemobiletools.calculator.extensions.updateViewColors +import com.simplemobiletools.calculator.helpers.COMMA +import com.simplemobiletools.calculator.helpers.CONVERTER_STATE +import com.simplemobiletools.calculator.helpers.DOT +import com.simplemobiletools.calculator.helpers.converters.Converter +import com.simplemobiletools.commons.extensions.getProperTextColor +import com.simplemobiletools.commons.extensions.performHapticFeedback +import com.simplemobiletools.commons.extensions.viewBinding +import com.simplemobiletools.commons.helpers.LOWER_ALPHA_INT +import com.simplemobiletools.commons.helpers.MEDIUM_ALPHA_INT +import com.simplemobiletools.commons.helpers.NavigationIcon + +class UnitConverterActivity : SimpleActivity() { + companion object { + const val EXTRA_CONVERTER_ID = "converter_id" + } + + private val binding by viewBinding(ActivityUnitConverterBinding::inflate) + private var vibrateOnButtonPress = true + private lateinit var converter: Converter + + override fun onCreate(savedInstanceState: Bundle?) { + isMaterialActivity = true + super.onCreate(savedInstanceState) + setContentView(binding.root) + + if (resources.configuration.orientation == Configuration.ORIENTATION_LANDSCAPE) { + binding.unitConverterToolbar.inflateMenu(R.menu.converter_menu) + setupOptionsMenu() + } + + updateMaterialActivityViews(binding.unitConverterCoordinator, null, useTransparentNavigation = false, useTopSearchMenu = false) + setupMaterialScrollListener(binding.nestedScrollview, binding.unitConverterToolbar) + + val converter = Converter.ALL.getOrNull(intent.getIntExtra(EXTRA_CONVERTER_ID, 0)) + + if (converter == null) { + finish() + return + } + this.converter = converter + + binding.viewUnitConverter.btnClear.setVibratingOnClickListener { + binding.viewUnitConverter.viewConverter.root.deleteCharacter() + } + binding.viewUnitConverter.btnClear.setOnLongClickListener { + binding.viewUnitConverter.viewConverter.root.clear() + true + } + + getButtonIds().forEach { + it.setVibratingOnClickListener { view -> + binding.viewUnitConverter.viewConverter.root.numpadClicked(view.id) + } + } + + binding.viewUnitConverter.viewConverter.root.setConverter(converter) + binding.unitConverterToolbar.setTitle(converter.nameResId) + + if (savedInstanceState != null) { + savedInstanceState.getBundle(CONVERTER_STATE)?.also { + binding.viewUnitConverter.viewConverter.root.restoreFromSavedState(it) + } + } + } + + private fun setupOptionsMenu() { + binding.unitConverterToolbar.setOnMenuItemClickListener { menuItem -> + when (menuItem.itemId) { + R.id.swap_units -> binding.viewUnitConverter.viewConverter.root.switch() + else -> return@setOnMenuItemClickListener false + } + return@setOnMenuItemClickListener true + } + } + + override fun onResume() { + super.onResume() + + setupToolbar(binding.unitConverterToolbar, NavigationIcon.Arrow) + binding.viewUnitConverter.viewConverter.root.updateColors() + binding.viewUnitConverter.converterHolder.let { updateViewColors(it, getProperTextColor()) } + + if (config.preventPhoneFromSleeping) { + window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON) + } + + setupDecimalSeparator() + + vibrateOnButtonPress = config.vibrateOnButtonPress + + binding.viewUnitConverter.apply { + arrayOf(btnClear, btnDecimal).forEach { + it.background = ResourcesCompat.getDrawable(resources, com.simplemobiletools.commons.R.drawable.pill_background, theme) + it.background?.alpha = MEDIUM_ALPHA_INT + } + + arrayOf(btn0, btn1, btn2, btn3, btn4, btn5, btn6, btn7, btn8, btn9).forEach { + it.background = ResourcesCompat.getDrawable(resources, com.simplemobiletools.commons.R.drawable.pill_background, theme) + it.background?.alpha = LOWER_ALPHA_INT + } + } + } + + override fun onPause() { + super.onPause() + if (config.preventPhoneFromSleeping) { + window.clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON) + } + } + + override fun onSaveInstanceState(outState: Bundle) { + super.onSaveInstanceState(outState) + outState.putBundle(CONVERTER_STATE, binding.viewUnitConverter.viewConverter.root.saveState()) + } + + private fun checkHaptic(view: View) { + if (vibrateOnButtonPress) { + view.performHapticFeedback() + } + } + + private fun getButtonIds() = binding.viewUnitConverter.run { + arrayOf(btnDecimal, btn0, btn1, btn2, btn3, btn4, btn5, btn6, btn7, btn8, btn9) + } + + private fun View.setVibratingOnClickListener(callback: (view: View) -> Unit) { + setOnClickListener { + callback(it) + checkHaptic(it) + } + } + + private fun setupDecimalSeparator() { + val decimalSeparator: String + val groupingSeparator: String + if (config.useCommaAsDecimalMark) { + decimalSeparator = COMMA + groupingSeparator = DOT + } else { + decimalSeparator = DOT + groupingSeparator = COMMA + } + binding.viewUnitConverter.viewConverter.root.updateSeparators(decimalSeparator, groupingSeparator) + binding.viewUnitConverter.btnDecimal.text = decimalSeparator + } +} diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/activities/UnitConverterPickerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/activities/UnitConverterPickerActivity.kt new file mode 100644 index 00000000..47b404e0 --- /dev/null +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/activities/UnitConverterPickerActivity.kt @@ -0,0 +1,52 @@ +package com.simplemobiletools.calculator.activities + +import android.content.Intent +import android.os.Bundle +import android.view.WindowManager +import com.simplemobiletools.calculator.R +import com.simplemobiletools.calculator.adapters.UnitTypesAdapter +import com.simplemobiletools.calculator.databinding.ActivityUnitConverterPickerBinding +import com.simplemobiletools.calculator.extensions.config +import com.simplemobiletools.calculator.helpers.converters.Converter +import com.simplemobiletools.commons.extensions.viewBinding +import com.simplemobiletools.commons.helpers.NavigationIcon +import com.simplemobiletools.commons.views.AutoGridLayoutManager + +class UnitConverterPickerActivity : SimpleActivity() { + private val binding by viewBinding(ActivityUnitConverterPickerBinding::inflate) + + override fun onCreate(savedInstanceState: Bundle?) { + isMaterialActivity = true + super.onCreate(savedInstanceState) + setContentView(binding.root) + updateMaterialActivityViews(binding.unitConverterPickerCoordinator, null, useTransparentNavigation = false, useTopSearchMenu = false) + setupMaterialScrollListener(binding.unitTypesGrid, binding.unitConverterPickerToolbar) + + binding.unitTypesGrid.layoutManager = AutoGridLayoutManager(this, resources.getDimensionPixelSize(R.dimen.unit_type_size)) + binding.unitTypesGrid.adapter = UnitTypesAdapter(this, Converter.ALL) { + Intent(this, UnitConverterActivity::class.java).apply { + putExtra(UnitConverterActivity.EXTRA_CONVERTER_ID, it) + startActivity(this) + } + } + + binding.unitConverterPickerToolbar.setTitle(R.string.unit_converter) + } + + override fun onResume() { + super.onResume() + + setupToolbar(binding.unitConverterPickerToolbar, NavigationIcon.Arrow) + + if (config.preventPhoneFromSleeping) { + window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON) + } + } + + override fun onPause() { + super.onPause() + if (config.preventPhoneFromSleeping) { + window.clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON) + } + } +} diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/activities/WidgetConfigureActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/activities/WidgetConfigureActivity.kt index 0fca9887..03b99ffd 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calculator/activities/WidgetConfigureActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/activities/WidgetConfigureActivity.kt @@ -12,7 +12,6 @@ import android.widget.TextView import com.simplemobiletools.calculator.R import com.simplemobiletools.calculator.databinding.WidgetConfigBinding import com.simplemobiletools.calculator.extensions.config -import com.simplemobiletools.calculator.extensions.viewBinding import com.simplemobiletools.calculator.helpers.MyWidgetProvider import com.simplemobiletools.commons.dialogs.ColorPickerDialog import com.simplemobiletools.commons.dialogs.FeatureLockedDialog diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/adapters/UnitTypesAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/adapters/UnitTypesAdapter.kt new file mode 100644 index 00000000..392cdb70 --- /dev/null +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/adapters/UnitTypesAdapter.kt @@ -0,0 +1,50 @@ +package com.simplemobiletools.calculator.adapters + +import android.graphics.drawable.LayerDrawable +import android.graphics.drawable.RippleDrawable +import android.view.View +import android.view.ViewGroup +import androidx.core.content.res.ResourcesCompat +import androidx.recyclerview.widget.RecyclerView +import com.simplemobiletools.calculator.R +import com.simplemobiletools.calculator.activities.SimpleActivity +import com.simplemobiletools.calculator.databinding.ItemUnitTypeBinding +import com.simplemobiletools.calculator.extensions.getStrokeColor +import com.simplemobiletools.calculator.helpers.converters.Converter +import com.simplemobiletools.commons.extensions.* + +class UnitTypesAdapter (val activity: SimpleActivity, val items: List, val itemClick: (id: Int) -> Unit) : RecyclerView.Adapter() { + override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder = + ViewHolder(ItemUnitTypeBinding.inflate(activity.layoutInflater, parent, false)) + + override fun onBindViewHolder(holder: ViewHolder, position: Int) { + val item = items[position] + holder.bindView(item, position) + } + + override fun getItemCount() = items.size + + inner class ViewHolder(private val binding: ItemUnitTypeBinding) : RecyclerView.ViewHolder(binding.root) { + fun bindView(item: Converter, id: Int): View { + itemView.apply { + binding.unitImage.setImageResource(item.imageResId) + binding.unitLabel.setText(item.nameResId) + + val rippleBg = ResourcesCompat.getDrawable(resources, R.drawable.unit_type_background, context.theme) as RippleDrawable + val layerDrawable = rippleBg.findDrawableByLayerId(R.id.background_holder) as LayerDrawable + layerDrawable.findDrawableByLayerId(R.id.background_stroke).applyColorFilter(context.getStrokeColor()) + layerDrawable.findDrawableByLayerId(R.id.background_shape).applyColorFilter(context.getProperBackgroundColor().darkenColor(2)) + binding.unitBackground.background = rippleBg + + binding.unitLabel.setTextColor(activity.getProperTextColor()) + binding.unitImage.applyColorFilter(activity.getProperPrimaryColor()) + + setOnClickListener { + itemClick(id) + } + } + + return itemView + } + } +} diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/extensions/Binding.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/extensions/Binding.kt deleted file mode 100644 index 98a4ea20..00000000 --- a/app/src/main/kotlin/com/simplemobiletools/calculator/extensions/Binding.kt +++ /dev/null @@ -1,10 +0,0 @@ -package com.simplemobiletools.calculator.extensions - -import android.app.Activity -import android.view.LayoutInflater -import androidx.viewbinding.ViewBinding - -inline fun Activity.viewBinding(crossinline bindingInflater: (LayoutInflater) -> T) = - lazy(LazyThreadSafetyMode.NONE) { - bindingInflater.invoke(layoutInflater) - } diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/extensions/Context.kt index 82ab729f..ee059d3b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calculator/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/extensions/Context.kt @@ -4,6 +4,7 @@ import android.appwidget.AppWidgetManager import android.content.ComponentName import android.content.Context import android.content.Intent +import android.graphics.Color import android.net.Uri import android.os.Build import android.provider.Settings @@ -15,6 +16,9 @@ import com.simplemobiletools.calculator.databases.CalculatorDatabase import com.simplemobiletools.calculator.helpers.Config import com.simplemobiletools.calculator.helpers.MyWidgetProvider import com.simplemobiletools.calculator.interfaces.CalculatorDao +import com.simplemobiletools.commons.extensions.getProperBackgroundColor +import com.simplemobiletools.commons.extensions.isUsingSystemDarkTheme +import com.simplemobiletools.commons.extensions.lightenColor import com.simplemobiletools.commons.extensions.showErrorToast val Context.config: Config get() = Config.newInstance(applicationContext) @@ -64,3 +68,20 @@ fun Context.launchChangeAppLanguageIntent() { } } } + +fun Context.getStrokeColor(): Int { + return if (config.isUsingSystemTheme) { + if (isUsingSystemDarkTheme()) { + resources.getColor(com.simplemobiletools.commons.R.color.md_grey_800, theme) + } else { + resources.getColor(com.simplemobiletools.commons.R.color.md_grey_400, theme) + } + } else { + val lighterColor = getProperBackgroundColor().lightenColor() + if (lighterColor == Color.WHITE || lighterColor == Color.BLACK) { + resources.getColor(com.simplemobiletools.commons.R.color.divider_grey, theme) + } else { + lighterColor + } + } +} diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/Constants.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/Constants.kt index aa4c0362..225bdcb8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/Constants.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/Constants.kt @@ -30,6 +30,8 @@ const val COMMA = "," // shared prefs const val USE_COMMA_AS_DECIMAL_MARK = "use_comma_as_decimal_mark" + +// calculator state const val RES = "res" const val PREVIOUS_CALCULATION = "previousCalculation" const val LAST_KEY = "lastKey" @@ -38,3 +40,9 @@ const val BASE_VALUE = "baseValue" const val SECOND_VALUE = "secondValue" const val INPUT_DISPLAYED_FORMULA = "inputDisplayedFormula" const val CALCULATOR_STATE = "calculatorState" + +// converter state +const val TOP_UNIT = "top_unit" +const val BOTTOM_UNIT = "bottom_unit" +const val CONVERTER_VALUE = "converter_value" +const val CONVERTER_STATE = "converter_state" diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/AreaConverter.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/AreaConverter.kt new file mode 100644 index 00000000..da196fe1 --- /dev/null +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/AreaConverter.kt @@ -0,0 +1,85 @@ +package com.simplemobiletools.calculator.helpers.converters + +import com.simplemobiletools.calculator.R + +object AreaConverter : Converter { + override val nameResId: Int = R.string.unit_area + override val imageResId: Int = R.drawable.ic_box_vector + + sealed class Unit(nameResId: Int, symbolResId: Int, factor: Double) : Converter.Unit(nameResId, symbolResId, factor) { + data object SquareKilometer : Unit( + nameResId = R.string.unit_area_square_kilometer, + symbolResId = R.string.unit_area_square_kilometer_symbol, + factor = 1000000.0 + ) + + data object SquareMeter : Unit( + nameResId = R.string.unit_area_square_meter, + symbolResId = R.string.unit_area_square_meter_symbol, + factor = 1.0 + ) + + data object SquareCentimeter : Unit( + nameResId = R.string.unit_area_square_centimeter, + symbolResId = R.string.unit_area_square_centimeter_symbol, + factor = 0.0001 + ) + + data object SquareMillimeter : Unit( + nameResId = R.string.unit_area_square_millimeter, + symbolResId = R.string.unit_area_square_millimeter_symbol, + factor = 0.000001 + ) + + data object SquareMile : Unit( + nameResId = R.string.unit_area_square_mile, + symbolResId = R.string.unit_area_square_mile_symbol, + factor = 2_589_988.110336 + ) + + data object SquareYard : Unit( + nameResId = R.string.unit_area_square_yard, + symbolResId = R.string.unit_area_square_yard_symbol, + factor = 0.83612736 + ) + + data object SquareFoot : Unit( + nameResId = R.string.unit_area_square_foot, + symbolResId = R.string.unit_area_square_foot_symbol, + factor = 0.09290304 + ) + + data object SquareInch : Unit( + nameResId = R.string.unit_area_square_inch, + symbolResId = R.string.unit_area_square_inch_symbol, + factor = 0.00064516 + ) + + data object Acre : Unit( + nameResId = R.string.unit_area_acre, + symbolResId = R.string.unit_area_acre_symbol, + factor = 4_046.8564224 + ) + + data object Hectare : Unit( + nameResId = R.string.unit_area_hectare, + symbolResId = R.string.unit_area_hectare_symbol, + factor = 10_000.0 + ) + } + + override val units: List = listOf( + Unit.SquareKilometer, + Unit.SquareMeter, + Unit.SquareCentimeter, + Unit.SquareMillimeter, + Unit.SquareMile, + Unit.SquareYard, + Unit.SquareFoot, + Unit.SquareInch, + Unit.Acre, + Unit.Hectare, + ) + override val defaultTopUnit: Unit = Unit.SquareKilometer + override val defaultBottomUnit: Unit = Unit.SquareMeter +} diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/Base.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/Base.kt new file mode 100644 index 00000000..e53aeef8 --- /dev/null +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/Base.kt @@ -0,0 +1,48 @@ +package com.simplemobiletools.calculator.helpers.converters + +import android.content.Context +import com.simplemobiletools.calculator.R + +interface Converter { + companion object { + val ALL = listOf( + LengthConverter, + AreaConverter, + VolumeConverter, + MassConverter, + TemperatureConverter, + TimeConverter + ) + } + + val nameResId: Int + val imageResId: Int + val units: List + val defaultTopUnit: Unit + val defaultBottomUnit: Unit + + fun convert(from: ValueWithUnit, to: Unit): ValueWithUnit { + return ValueWithUnit(to.fromBase(from.unit.toBase(from.value)), to) + } + + open class Unit( + val nameResId: Int, + val symbolResId: Int, + val factor: Double + ) { + + open fun toBase(value: Double) = value * factor + + open fun fromBase(value: Double) = value / factor + + fun withValue(value: Double) = ValueWithUnit(value, this) + + fun getNameWithSymbol(context: Context) = context.getString( + R.string.unit_name_with_symbol_format, + context.getString(nameResId), + context.getString(symbolResId) + ) + } +} + +data class ValueWithUnit(val value: Double, val unit: T) diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/LengthConverter.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/LengthConverter.kt new file mode 100644 index 00000000..3df75b2e --- /dev/null +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/LengthConverter.kt @@ -0,0 +1,127 @@ +package com.simplemobiletools.calculator.helpers.converters + +import com.simplemobiletools.calculator.R + +object LengthConverter : Converter { + override val nameResId: Int = R.string.unit_length + override val imageResId: Int = R.drawable.ic_height_vector + + sealed class Unit(nameResId: Int, symbolResId: Int, factor: Double) : Converter.Unit(nameResId, symbolResId, factor) { + data object Kilometer : Unit( + nameResId = R.string.unit_length_kilometer, + symbolResId = R.string.unit_length_kilometer_symbol, + factor = 1000.0 + ) + + data object Meter : Unit( + nameResId = R.string.unit_length_meter, + symbolResId = R.string.unit_length_meter_symbol, + factor = 1.0 + ) + + data object Centimeter : Unit( + nameResId = R.string.unit_length_centimeter, + symbolResId = R.string.unit_length_centimeter_symbol, + factor = 0.01 + ) + + data object Millimeter : Unit( + nameResId = R.string.unit_length_millimeter, + symbolResId = R.string.unit_length_millimeter_symbol, + factor = 0.001 + ) + + data object Micrometer : Unit( + nameResId = R.string.unit_length_micrometer, + symbolResId = R.string.unit_length_micrometer_symbol, + factor = 0.000001 + ) + + data object Nanometer : Unit( + nameResId = R.string.unit_length_nanometer, + symbolResId = R.string.unit_length_nanometer_symbol, + factor = 0.000000001 + ) + + data object Angstrom : Unit( + nameResId = R.string.unit_length_angstrom, + symbolResId = R.string.unit_length_angstrom_symbol, + factor = 1e-10 + ) + + data object Mile : Unit( + nameResId = R.string.unit_length_mile, + symbolResId = R.string.unit_length_mile_symbol, + factor = 1_609.344 + ) + + data object Yard : Unit( + nameResId = R.string.unit_length_yard, + symbolResId = R.string.unit_length_yard_symbol, + factor = 0.9144 + ) + + data object Foot : Unit( + nameResId = R.string.unit_length_foot, + symbolResId = R.string.unit_length_foot_symbol, + factor = 0.3048 + ) + + data object Inch : Unit( + nameResId = R.string.unit_length_inch, + symbolResId = R.string.unit_length_inch_symbol, + factor = 0.0254 + ) + + data object Fathom : Unit( + nameResId = R.string.unit_length_fathom, + symbolResId = R.string.unit_length_fathom_symbol, + factor = 1.852 + ) + + data object NauticalMile : Unit( + nameResId = R.string.unit_length_nautical_mile, + symbolResId = R.string.unit_length_nautical_mile_symbol, + factor = 1_852.0 + ) + + data object AstronomicalUnit : Unit( + nameResId = R.string.unit_length_astronomical_unit, + symbolResId = R.string.unit_length_astronomical_unit_symbol, + factor = 1.495979e+11 + ) + + data object Parsec : Unit( + nameResId = R.string.unit_length_parsec, + symbolResId = R.string.unit_length_parsec_symbol, + factor = 3.0857e+16 + ) + + data object LightYear : Unit( + nameResId = R.string.unit_length_light_year, + symbolResId = R.string.unit_length_light_year_symbol, + factor = 9.4607e+15 + ) + } + + override val units: List = listOf( + Unit.Kilometer, + Unit.Meter, + Unit.Centimeter, + Unit.Millimeter, + Unit.Micrometer, + Unit.Nanometer, + Unit.Angstrom, + Unit.Mile, + Unit.Yard, + Unit.Foot, + Unit.Inch, + Unit.Fathom, + Unit.NauticalMile, + Unit.AstronomicalUnit, + Unit.Parsec, + Unit.LightYear + ) + override val defaultTopUnit: Unit = Unit.Kilometer + override val defaultBottomUnit: Unit = Unit.Meter +} diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/MassConverter.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/MassConverter.kt new file mode 100644 index 00000000..c12c8074 --- /dev/null +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/MassConverter.kt @@ -0,0 +1,114 @@ +package com.simplemobiletools.calculator.helpers.converters + +import com.simplemobiletools.calculator.R + +object MassConverter : Converter { + override val nameResId: Int = R.string.unit_mass + override val imageResId: Int = R.drawable.ic_scale_vector + + sealed class Unit(nameResId: Int, symbolResId: Int, factor: Double) : Converter.Unit(nameResId, symbolResId, factor) { + data object Gram : Unit( + nameResId = R.string.unit_mass_gram, + symbolResId = R.string.unit_mass_gram_symbol, + factor = 0.001 + ) + + data object Kilogram : Unit( + nameResId = R.string.unit_mass_kilogram, + symbolResId = R.string.unit_mass_kilogram_symbol, + factor = 1.0 + ) + + data object Milligram : Unit( + nameResId = R.string.unit_mass_milligram, + symbolResId = R.string.unit_mass_milligram_symbol, + factor = 0.000001 + ) + + data object Microgram : Unit( + nameResId = R.string.unit_mass_microgram, + symbolResId = R.string.unit_mass_microgram_symbol, + factor = 0.000000001 + ) + + data object Tonne : Unit( + nameResId = R.string.unit_mass_tonne, + symbolResId = R.string.unit_mass_tonne_symbol, + factor = 1_000.0 + ) + + data object Pound : Unit( + nameResId = R.string.unit_mass_pound, + symbolResId = R.string.unit_mass_pound_symbol, + factor = 0.45359237 + ) + + data object Ounce : Unit( + nameResId = R.string.unit_mass_ounce, + symbolResId = R.string.unit_mass_ounce_symbol, + factor = 0.028349523125 + ) + + data object Grain : Unit( + nameResId = R.string.unit_mass_grain, + symbolResId = R.string.unit_mass_grain_symbol, + factor = 0.00006479891 + ) + + data object Dram : Unit( + nameResId = R.string.unit_mass_dram, + symbolResId = R.string.unit_mass_dram_symbol, + factor = 0.0017718451953125 + ) + + data object Stone : Unit( + nameResId = R.string.unit_mass_stone, + symbolResId = R.string.unit_mass_stone_symbol, + factor = 6.35029318 + ) + + data object LongTon : Unit( + nameResId = R.string.unit_mass_long_ton, + symbolResId = R.string.unit_mass_long_ton_symbol, + factor = 1_016.0469088 + ) + + data object ShortTon : Unit( + nameResId = R.string.unit_mass_short_ton, + symbolResId = R.string.unit_mass_short_ton_symbol, + factor = 907.18474 + ) + + data object Carat : Unit( + nameResId = R.string.unit_mass_carat, + symbolResId = R.string.unit_mass_carat_symbol, + factor = 0.0002051965483 + ) + + data object CaratMetric : Unit( + nameResId = R.string.unit_mass_carat_metric, + symbolResId = R.string.unit_mass_carat_metric_symbol, + factor = 0.0002 + ) + } + + override val units: List = listOf( + Unit.Gram, + Unit.Kilogram, + Unit.Milligram, + Unit.Microgram, + Unit.Tonne, + Unit.Pound, + Unit.Ounce, + Unit.Grain, + Unit.Dram, + Unit.Stone, + Unit.LongTon, + Unit.ShortTon, + Unit.Carat, + Unit.CaratMetric, + ) + + override val defaultTopUnit: Unit = Unit.Pound + override val defaultBottomUnit: Unit = Unit.Kilogram +} diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/TemperatureConverter.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/TemperatureConverter.kt new file mode 100644 index 00000000..b03fffed --- /dev/null +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/TemperatureConverter.kt @@ -0,0 +1,56 @@ +package com.simplemobiletools.calculator.helpers.converters + +import com.simplemobiletools.calculator.R + +object TemperatureConverter : Converter { + override val nameResId: Int = R.string.unit_temperature + override val imageResId: Int = R.drawable.ic_thermostat_vector + + sealed class Unit(nameResId: Int, symbolResId: Int, factor: Double) : Converter.Unit(nameResId, symbolResId, factor) { + + data object Celsius : Unit( + nameResId = R.string.unit_temperature_celsius, + symbolResId = R.string.unit_temperature_celsius_symbol, + factor = 1.0 + ) { + const val KELVIN_OFFSET = 273.15 + + override fun toBase(value: Double): Double = value + KELVIN_OFFSET + override fun fromBase(value: Double): Double = value - KELVIN_OFFSET + } + + data object Fahrenheit : Unit( + nameResId = R.string.unit_temperature_fahrenheit, + symbolResId = R.string.unit_temperature_fahrenheit_symbol, + factor = 9.0 / 5 + ) { + private const val CELSIUS_OFFSET = 32 + + override fun toBase(value: Double): Double = Celsius.toBase((value - CELSIUS_OFFSET) / factor) + + override fun fromBase(value: Double): Double = (Celsius.fromBase(value) * factor) + CELSIUS_OFFSET + } + + data object Rankine : Unit( + nameResId = R.string.unit_temperature_rankine, + symbolResId = R.string.unit_temperature_rankine_symbol, + factor = 5.0 / 9 + ) + + data object Kelvin : Unit( + nameResId = R.string.unit_temperature_kelvin, + symbolResId = R.string.unit_temperature_kelvin_symbol, + factor = 1.0 + ) + } + + override val units: List = listOf( + Unit.Celsius, + Unit.Fahrenheit, + Unit.Rankine, + Unit.Kelvin, + ) + + override val defaultTopUnit: Unit = Unit.Celsius + override val defaultBottomUnit: Unit = Unit.Kelvin +} diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/TimeConverter.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/TimeConverter.kt new file mode 100644 index 00000000..88e10cc7 --- /dev/null +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/TimeConverter.kt @@ -0,0 +1,72 @@ +package com.simplemobiletools.calculator.helpers.converters + +import com.simplemobiletools.calculator.R + +object TimeConverter : Converter { + override val nameResId: Int = R.string.unit_time + override val imageResId: Int = com.simplemobiletools.commons.R.drawable.ic_clock_vector + + sealed class Unit(nameResId: Int, symbolResId: Int, factor: Double) : Converter.Unit(nameResId, symbolResId, factor) { + companion object { + private const val MINUTE = 60.0 + private const val HOUR = 60.0 * MINUTE + private const val DAY = HOUR * 24.0 + private const val GREGORIAN_YEAR = DAY * 365.2425 + } + + data object Hour : Unit( + nameResId = R.string.unit_time_hour, + symbolResId = R.string.unit_time_hour_symbol, + factor = HOUR + ) + + data object Minute : Unit( + nameResId = R.string.unit_time_minute, + symbolResId = R.string.unit_time_minute_symbol, + factor = MINUTE + ) + + data object Second : Unit( + nameResId = R.string.unit_time_second, + symbolResId = R.string.unit_time_second_symbol, + factor = 1.0 + ) + + data object Millisecond : Unit( + nameResId = R.string.unit_time_millisecond, + symbolResId = R.string.unit_time_millisecond_symbol, + factor = 0.001 + ) + + data object Day : Unit( + nameResId = R.string.unit_time_day, + symbolResId = R.string.unit_time_day_symbol, + factor = DAY + ) + + data object Week : Unit( + nameResId = R.string.unit_time_week, + symbolResId = R.string.unit_time_week_symbol, + factor = DAY * 7 + ) + + data object Year : Unit( + nameResId = R.string.unit_time_year, + symbolResId = R.string.unit_time_year_symbol, + factor = GREGORIAN_YEAR + ) + } + + override val units: List = listOf( + Unit.Hour, + Unit.Minute, + Unit.Second, + Unit.Millisecond, + Unit.Day, + Unit.Week, + Unit.Year, + ) + + override val defaultTopUnit: Unit = Unit.Hour + override val defaultBottomUnit: Unit = Unit.Second +} diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/VolumeConverter.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/VolumeConverter.kt new file mode 100644 index 00000000..9327a1a5 --- /dev/null +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/converters/VolumeConverter.kt @@ -0,0 +1,177 @@ +package com.simplemobiletools.calculator.helpers.converters + +import com.simplemobiletools.calculator.R + +object VolumeConverter : Converter { + override val nameResId: Int = R.string.unit_volume + override val imageResId: Int = R.drawable.ic_drop_vector + + sealed class Unit(nameResId: Int, symbolResId: Int, factor: Double) : Converter.Unit(nameResId, symbolResId, factor) { + data object CubicMeter : Unit( + nameResId = R.string.unit_volume_cubic_meter, + symbolResId = R.string.unit_volume_cubic_meter_symbol, + factor = 1.0 + ) + + data object CubicDecimeter : Unit( + nameResId = R.string.unit_volume_cubic_decimeter, + symbolResId = R.string.unit_volume_cubic_decimeter_symbol, + factor = 0.001 + ) + + data object CubicCentimeter : Unit( + nameResId = R.string.unit_volume_cubic_centimeter, + symbolResId = R.string.unit_volume_cubic_centimeter_symbol, + factor = 0.000001 + ) + + data object CubicMillimeter : Unit( + nameResId = R.string.unit_volume_cubic_millimeter, + symbolResId = R.string.unit_volume_cubic_millimeter_symbol, + factor = 0.000000001 + ) + + data object Liter : Unit( + nameResId = R.string.unit_volume_liter, + symbolResId = R.string.unit_volume_liter_symbol, + factor = 0.001 + ) + + data object Centiliter : Unit( + nameResId = R.string.unit_volume_centiliter, + symbolResId = R.string.unit_volume_centiliter_symbol, + factor = 0.0001 + ) + + data object Deciliter : Unit( + nameResId = R.string.unit_volume_deciliter, + symbolResId = R.string.unit_volume_deciliter_symbol, + factor = 0.00001 + ) + + data object Milliliter : Unit( + nameResId = R.string.unit_volume_milliliter, + symbolResId = R.string.unit_volume_milliliter_symbol, + factor = 0.000001 + ) + + data object AcreFoot : Unit( + nameResId = R.string.unit_volume_acre_foot, + symbolResId = R.string.unit_volume_acre_foot_symbol, + factor = 1_233.48183754752 + ) + + data object CubicFoot : Unit( + nameResId = R.string.unit_volume_cubic_foot, + symbolResId = R.string.unit_volume_cubic_foot_symbol, + factor = 0.028316846592 + ) + + data object CubicInch : Unit( + nameResId = R.string.unit_volume_cubic_inch, + symbolResId = R.string.unit_volume_cubic_inch_symbol, + factor = 0.000016387064 + ) + + data object BarrelUS : Unit( + nameResId = R.string.unit_volume_barrel_us, + symbolResId = R.string.unit_volume_barrel_us_symbol, + factor = 0.119240471196 + ) + + data object GallonUS : Unit( + nameResId = R.string.unit_volume_gallon_us, + symbolResId = R.string.unit_volume_gallon_us_symbol, + factor = 0.003785411784 + ) + + data object QuartUS : Unit( + nameResId = R.string.unit_volume_quart_us, + symbolResId = R.string.unit_volume_quart_us_symbol, + factor = 0.000946352946 + ) + + data object PintUS : Unit( + nameResId = R.string.unit_volume_pint_us, + symbolResId = R.string.unit_volume_pint_us_symbol, + factor = 0.000473176473 + ) + + data object GillUS : Unit( + nameResId = R.string.unit_volume_gill_us, + symbolResId = R.string.unit_volume_gill_us_symbol, + factor = 0.00011829411825 + ) + + data object FluidOunceUS : Unit( + nameResId = R.string.unit_volume_fluid_ounce_us, + symbolResId = R.string.unit_volume_fluid_ounce_us_symbol, + factor = 0.00003 + ) + + data object BarrelImperial : Unit( + nameResId = R.string.unit_volume_barrel_imperial, + symbolResId = R.string.unit_volume_barrel_imperial_symbol, + factor = 0.16365924 + ) + + data object GallonImperial : Unit( + nameResId = R.string.unit_volume_gallon_imperial, + symbolResId = R.string.unit_volume_gallon_imperial_symbol, + factor = 0.00454609 + ) + + data object QuartImperial : Unit( + nameResId = R.string.unit_volume_quart_imperial, + symbolResId = R.string.unit_volume_quart_imperial_symbol, + factor = 0.0011365225 + ) + + data object PintImperial : Unit( + nameResId = R.string.unit_volume_pint_imperial, + symbolResId = R.string.unit_volume_pint_imperial_symbol, + factor = 0.00056826125 + ) + + data object GillImperial : Unit( + nameResId = R.string.unit_volume_gill_imperial, + symbolResId = R.string.unit_volume_gill_imperial_symbol, + factor = 0.0001420653125 + ) + + data object FluidOunceImperial : Unit( + nameResId = R.string.unit_volume_fluid_ounce_imperial, + symbolResId = R.string.unit_volume_fluid_ounce_imperial_symbol, + factor = 0.0000284130625 + ) + } + + override val units: List = listOf( + Unit.CubicMeter, + Unit.CubicDecimeter, + Unit.CubicCentimeter, + Unit.CubicMillimeter, + Unit.Liter, + Unit.Centiliter, + Unit.Deciliter, + Unit.Milliliter, + Unit.AcreFoot, + Unit.CubicFoot, + Unit.CubicInch, + Unit.BarrelUS, + Unit.GallonUS, + Unit.QuartUS, + Unit.PintUS, + Unit.GillUS, + Unit.FluidOunceUS, + Unit.BarrelImperial, + Unit.GallonImperial, + Unit.QuartImperial, + Unit.PintImperial, + Unit.GillImperial, + Unit.FluidOunceImperial, + ) + + override val defaultTopUnit: Unit = Unit.Liter + override val defaultBottomUnit: Unit = Unit.CubicMeter +} diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/views/ConverterView.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/views/ConverterView.kt new file mode 100644 index 00000000..3fa37746 --- /dev/null +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/views/ConverterView.kt @@ -0,0 +1,264 @@ +package com.simplemobiletools.calculator.views + +import android.app.Activity +import android.content.Context +import android.content.res.ColorStateList +import android.graphics.drawable.GradientDrawable +import android.graphics.drawable.LayerDrawable +import android.graphics.drawable.RippleDrawable +import android.os.Bundle +import android.util.AttributeSet +import android.view.View +import android.widget.LinearLayout +import androidx.core.content.res.ResourcesCompat +import androidx.core.widget.TextViewCompat +import com.simplemobiletools.calculator.R +import com.simplemobiletools.calculator.databinding.ViewConverterBinding +import com.simplemobiletools.calculator.helpers.* +import com.simplemobiletools.calculator.helpers.converters.Converter +import com.simplemobiletools.commons.dialogs.RadioGroupDialog +import com.simplemobiletools.commons.extensions.* +import com.simplemobiletools.commons.helpers.LOWER_ALPHA +import com.simplemobiletools.commons.helpers.MEDIUM_ALPHA_INT +import com.simplemobiletools.commons.models.RadioItem +import me.grantland.widget.AutofitHelper +import kotlin.reflect.KMutableProperty0 + +class ConverterView @JvmOverloads constructor( + context: Context, attrs: AttributeSet? = null +) : LinearLayout(context, attrs) { + + private lateinit var binding: ViewConverterBinding + + private var converter: Converter? = null + private var topUnit: Converter.Unit? = null + private var bottomUnit: Converter.Unit? = null + + private var decimalSeparator: String = DOT + private var groupingSeparator: String = COMMA + private val formatter = NumberFormatHelper( + decimalSeparator = decimalSeparator, groupingSeparator = groupingSeparator + ) + + override fun onFinishInflate() { + super.onFinishInflate() + binding = ViewConverterBinding.bind(this) + + AutofitHelper.create(binding.topUnitText) + AutofitHelper.create(binding.bottomUnitText) + + binding.swapButton?.setOnClickListener { switch() } + + binding.topUnitHolder.setClickListenerForUnitSelector(::topUnit, ::bottomUnit) + binding.bottomUnitHolder.setClickListenerForUnitSelector(::bottomUnit, ::topUnit) + binding.topUnitHolder.setOnLongClickListener { + context.copyToClipboard(binding.topUnitText.text.toString()) + true + } + binding.bottomUnitHolder.setOnLongClickListener { + context.copyToClipboard(binding.bottomUnitText.text.toString()) + true + } + + updateColors() + } + + fun setConverter(converter: Converter) { + this.converter = converter + topUnit = converter.defaultTopUnit + bottomUnit = converter.defaultBottomUnit + + binding.topUnitText.text = "0" + updateBottomValue() + updateUnitLabelsAndSymbols() + } + + fun updateColors() { + listOf(binding.topUnitText, binding.bottomUnitText, binding.topUnitName, binding.bottomUnitName).forEach { + it.setTextColor(context.getProperTextColor()) + } + listOf(binding.topUnitName, binding.bottomUnitName).forEach { + TextViewCompat.setCompoundDrawableTintList( + it, + ColorStateList.valueOf(context.getProperPrimaryColor()) + ) + } + + val rippleDrawable = ResourcesCompat.getDrawable( + resources, R.drawable.colored_ripple, context.theme + )?.constantState?.newDrawable()?.mutate() as RippleDrawable + val rippleColoredLayer = rippleDrawable.findDrawableByLayerId(R.id.colored_background) as GradientDrawable + rippleColoredLayer.applyColorFilter(context.getProperPrimaryColor().lightenColor().adjustAlpha(LOWER_ALPHA)) + binding.topUnitHolder.background = rippleDrawable + binding.swapButton?.applyColorFilter(context.getProperPrimaryColor()) + + listOf(binding.topUnitSymbol, binding.bottomUnitSymbol).forEach { + val drawable = ResourcesCompat.getDrawable( + resources, com.simplemobiletools.commons.R.drawable.pill_background, context.theme + )?.constantState?.newDrawable()?.mutate() as RippleDrawable + val bgLayerList = drawable.findDrawableByLayerId(com.simplemobiletools.commons.R.id.button_pill_background_holder) as LayerDrawable + val bgLayer = bgLayerList.findDrawableByLayerId(com.simplemobiletools.commons.R.id.button_pill_background_shape) as GradientDrawable + bgLayer.cornerRadius = context.resources.getDimension(com.simplemobiletools.commons.R.dimen.rounded_corner_radius_big) + it.background = drawable + it.background?.alpha = MEDIUM_ALPHA_INT + } + } + + fun clear() { + binding.topUnitText.text = "0" + binding.bottomUnitText.text = "0" + } + + fun deleteCharacter() { + var newValue = binding.topUnitText.text.dropLast(1) + newValue = newValue.trimEnd(groupingSeparator.single()) + if (newValue == "") { + newValue = "0" + } + + val value = formatter.removeGroupingSeparator(newValue.toString()).toDouble() + binding.topUnitText.text = formatter.doubleToString(value) + + updateBottomValue() + } + + fun numpadClicked(id: Int) { + when (id) { + R.id.btn_decimal -> decimalClicked() + R.id.btn_0 -> zeroClicked() + R.id.btn_1 -> addDigit(1) + R.id.btn_2 -> addDigit(2) + R.id.btn_3 -> addDigit(3) + R.id.btn_4 -> addDigit(4) + R.id.btn_5 -> addDigit(5) + R.id.btn_6 -> addDigit(6) + R.id.btn_7 -> addDigit(7) + R.id.btn_8 -> addDigit(8) + R.id.btn_9 -> addDigit(9) + } + + updateBottomValue() + } + + private fun decimalClicked() { + var value = binding.topUnitText.text.toString() + if (!value.contains(decimalSeparator)) { + when (value) { + "0" -> value = "0$decimalSeparator" + "" -> value += "0$decimalSeparator" + else -> value += decimalSeparator + } + + binding.topUnitText.text = value + } + } + + private fun zeroClicked() { + val value = binding.topUnitText.text + if (value != "0" || value.contains(decimalSeparator)) { + addDigit(0) + } + } + + private fun addDigit(digit: Int) { + var value = binding.topUnitText.text.toString() + if (value == "0") { + value = "" + } + + value += digit + value = formatter.addGroupingSeparators(value) + binding.topUnitText.text = value + } + + fun switch() { + ::topUnit.swapWith(::bottomUnit) + updateBottomValue() + updateUnitLabelsAndSymbols() + } + + private fun updateUnitLabelsAndSymbols() { + binding.topUnitName.text = topUnit?.nameResId?.let { context.getString(it) } + binding.bottomUnitName.text = bottomUnit?.nameResId?.let { context.getString(it) } + + binding.topUnitSymbol.text = topUnit?.symbolResId?.let { context.getString(it) } + binding.bottomUnitSymbol.text = bottomUnit?.symbolResId?.let { context.getString(it) } + + binding.topUnitSymbol.layoutParams.width = LayoutParams.WRAP_CONTENT + binding.bottomUnitSymbol.layoutParams.width = LayoutParams.WRAP_CONTENT + + val symbolHeight = context.resources.getDimensionPixelSize(R.dimen.unit_symbol_size) + binding.topUnitSymbol.measure( + MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), + MeasureSpec.makeMeasureSpec(symbolHeight, MeasureSpec.EXACTLY) + ) + binding.bottomUnitSymbol.measure( + MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), + MeasureSpec.makeMeasureSpec(symbolHeight, MeasureSpec.EXACTLY) + ) + + val width = listOf(symbolHeight, binding.topUnitSymbol.measuredWidth, binding.bottomUnitSymbol.measuredWidth).max() + binding.topUnitSymbol.layoutParams.width = width + binding.bottomUnitSymbol.layoutParams.width = width + binding.topUnitSymbol.requestLayout() + binding.bottomUnitSymbol.requestLayout() + } + + private fun updateBottomValue() { + converter?.apply { + val converted = convert(topUnit!!.withValue(formatter.removeGroupingSeparator(binding.topUnitText.text.toString()).toDouble()), bottomUnit!!).value + binding.bottomUnitText.text = formatter.doubleToString(converted) + } + } + + fun updateSeparators(decimalSeparator: String, groupingSeparator: String) { + if (this.decimalSeparator != decimalSeparator || this.groupingSeparator != groupingSeparator) { + this.decimalSeparator = decimalSeparator + this.groupingSeparator = groupingSeparator + formatter.decimalSeparator = decimalSeparator + formatter.groupingSeparator = groupingSeparator + binding.topUnitText.text = "0" + binding.bottomUnitText.text = "0" + } + } + + private fun KMutableProperty0.swapWith(other: KMutableProperty0) { + this.get().also { + this.set(other.get()) + other.set(it) + } + } + + private fun View.setClickListenerForUnitSelector(propertyToChange: KMutableProperty0, otherProperty: KMutableProperty0) { + setOnClickListener { + val items = ArrayList(converter!!.units.mapIndexed { index, unit -> + RadioItem(index, unit.getNameWithSymbol(context), unit) + }) + RadioGroupDialog(context as Activity, items, converter!!.units.indexOf(propertyToChange.get())) { + val unit = it as Converter.Unit + if (unit == otherProperty.get()) { + switch() + } else if (unit != propertyToChange.get()) { + propertyToChange.set(unit) + updateBottomValue() + } + updateUnitLabelsAndSymbols() + } + } + } + + fun saveState(): Bundle = Bundle().apply { + putInt(TOP_UNIT, converter!!.units.indexOf(topUnit!!)) + putInt(BOTTOM_UNIT, converter!!.units.indexOf(bottomUnit!!)) + putString(CONVERTER_VALUE, binding.topUnitText.text.toString()) + } + + fun restoreFromSavedState(state: Bundle) { + topUnit = converter!!.units[state.getInt(TOP_UNIT)] + bottomUnit = converter!!.units[state.getInt(BOTTOM_UNIT)] + binding.topUnitText.text = state.getString(CONVERTER_VALUE) + + updateBottomValue() + updateUnitLabelsAndSymbols() + } +} diff --git a/app/src/main/res/drawable/colored_ripple.xml b/app/src/main/res/drawable/colored_ripple.xml new file mode 100644 index 00000000..ab4e36e4 --- /dev/null +++ b/app/src/main/res/drawable/colored_ripple.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/ic_arrow_drop_down_vector.xml b/app/src/main/res/drawable/ic_arrow_drop_down_vector.xml new file mode 100644 index 00000000..3dbfedba --- /dev/null +++ b/app/src/main/res/drawable/ic_arrow_drop_down_vector.xml @@ -0,0 +1,5 @@ + + + diff --git a/app/src/main/res/drawable/ic_box_vector.xml b/app/src/main/res/drawable/ic_box_vector.xml new file mode 100644 index 00000000..b1bf0ac5 --- /dev/null +++ b/app/src/main/res/drawable/ic_box_vector.xml @@ -0,0 +1,5 @@ + + + diff --git a/app/src/main/res/drawable/ic_drop_vector.xml b/app/src/main/res/drawable/ic_drop_vector.xml new file mode 100644 index 00000000..f141fb3a --- /dev/null +++ b/app/src/main/res/drawable/ic_drop_vector.xml @@ -0,0 +1,5 @@ + + + diff --git a/app/src/main/res/drawable/ic_height_vector.xml b/app/src/main/res/drawable/ic_height_vector.xml new file mode 100644 index 00000000..0392a75e --- /dev/null +++ b/app/src/main/res/drawable/ic_height_vector.xml @@ -0,0 +1,5 @@ + + + diff --git a/app/src/main/res/drawable/ic_scale_vector.xml b/app/src/main/res/drawable/ic_scale_vector.xml new file mode 100644 index 00000000..54782c4c --- /dev/null +++ b/app/src/main/res/drawable/ic_scale_vector.xml @@ -0,0 +1,5 @@ + + + diff --git a/app/src/main/res/drawable/ic_square_foot_vector.xml b/app/src/main/res/drawable/ic_square_foot_vector.xml new file mode 100644 index 00000000..b3701480 --- /dev/null +++ b/app/src/main/res/drawable/ic_square_foot_vector.xml @@ -0,0 +1,5 @@ + + + diff --git a/app/src/main/res/drawable/ic_swap_vertical_vector.xml b/app/src/main/res/drawable/ic_swap_vertical_vector.xml new file mode 100644 index 00000000..d113e11a --- /dev/null +++ b/app/src/main/res/drawable/ic_swap_vertical_vector.xml @@ -0,0 +1,5 @@ + + + diff --git a/app/src/main/res/drawable/ic_thermostat_vector.xml b/app/src/main/res/drawable/ic_thermostat_vector.xml new file mode 100644 index 00000000..13c773a6 --- /dev/null +++ b/app/src/main/res/drawable/ic_thermostat_vector.xml @@ -0,0 +1,5 @@ + + + diff --git a/app/src/main/res/drawable/ripple_circle_background.xml b/app/src/main/res/drawable/ripple_circle_background.xml new file mode 100644 index 00000000..081e2acd --- /dev/null +++ b/app/src/main/res/drawable/ripple_circle_background.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/app/src/main/res/drawable/unit_type_background.xml b/app/src/main/res/drawable/unit_type_background.xml new file mode 100644 index 00000000..4388d332 --- /dev/null +++ b/app/src/main/res/drawable/unit_type_background.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout-land/view_converter.xml b/app/src/main/res/layout-land/view_converter.xml new file mode 100644 index 00000000..974fc907 --- /dev/null +++ b/app/src/main/res/layout-land/view_converter.xml @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/activity_unit_converter.xml b/app/src/main/res/layout/activity_unit_converter.xml new file mode 100644 index 00000000..d5d93d12 --- /dev/null +++ b/app/src/main/res/layout/activity_unit_converter.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + diff --git a/app/src/main/res/layout/activity_unit_converter_picker.xml b/app/src/main/res/layout/activity_unit_converter_picker.xml new file mode 100644 index 00000000..ec38eb1d --- /dev/null +++ b/app/src/main/res/layout/activity_unit_converter_picker.xml @@ -0,0 +1,31 @@ + + + + + + + + diff --git a/app/src/main/res/layout/item_unit_type.xml b/app/src/main/res/layout/item_unit_type.xml new file mode 100644 index 00000000..ee372221 --- /dev/null +++ b/app/src/main/res/layout/item_unit_type.xml @@ -0,0 +1,33 @@ + + + + + + + + diff --git a/app/src/main/res/layout/view_converter.xml b/app/src/main/res/layout/view_converter.xml new file mode 100644 index 00000000..78ca140e --- /dev/null +++ b/app/src/main/res/layout/view_converter.xml @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/view_unit_converter.xml b/app/src/main/res/layout/view_unit_converter.xml new file mode 100644 index 00000000..f57f887f --- /dev/null +++ b/app/src/main/res/layout/view_unit_converter.xml @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/menu/converter_menu.xml b/app/src/main/res/menu/converter_menu.xml new file mode 100644 index 00000000..c27c4182 --- /dev/null +++ b/app/src/main/res/menu/converter_menu.xml @@ -0,0 +1,11 @@ + + + + diff --git a/app/src/main/res/menu/menu.xml b/app/src/main/res/menu/menu.xml index 24183ca4..6b23e7e4 100644 --- a/app/src/main/res/menu/menu.xml +++ b/app/src/main/res/menu/menu.xml @@ -8,6 +8,11 @@ android:icon="@drawable/ic_clock_vector" android:title="@string/history" app:showAsAction="always" /> + الحاسبة البسيطة الحاسبة الحاسبة العلمية + Unit converter + Swap units خطأ: القسمة على صفر @@ -13,6 +15,87 @@ الاهتزاز عند الضغط على الازرار استخدام الفاصلة كعلامة عشرية + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year كيف يعمل الزر C (مسح)؟ النقر على ذلك سوف يزيل حرف واحد في وقت واحد. الضغط لفترة طويلة سوف إعادة تعيين جميع الحقول في وقت واحد. @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-az/strings.xml b/app/src/main/res/values-az/strings.xml index f4be96f2..a7f00c2b 100644 --- a/app/src/main/res/values-az/strings.xml +++ b/app/src/main/res/values-az/strings.xml @@ -2,6 +2,8 @@ Sadə Kalkulyator Kalkulyator Scientific Calculator + Unit converter + Swap units Səhv: sıfıra bölünmə @@ -15,6 +17,87 @@ Düyməyə basdıqda titrə Use comma as a decimal mark + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year C (Sil) düyməsi necə işləyir? diff --git a/app/src/main/res/values-be/strings.xml b/app/src/main/res/values-be/strings.xml index 51e2b755..8819a9fd 100644 --- a/app/src/main/res/values-be/strings.xml +++ b/app/src/main/res/values-be/strings.xml @@ -3,6 +3,8 @@ Simple Calculator Калькулятар Навуковы калькулятар + Unit converter + Swap units Памылка: дзяленне на нуль @@ -13,6 +15,87 @@ Вібраваць пры націску на кнопкі Выкарыстоўваць коску ў якасці дзесятковага падзельніка + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Як працуе кнопка C (Ачыстка)\? Крананне да яе выдаляе адзін сімвал. Доўгае націсканне на яе ачышчае адразу ўсе палі. @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-bg/strings.xml b/app/src/main/res/values-bg/strings.xml index f4387338..9f347a89 100644 --- a/app/src/main/res/values-bg/strings.xml +++ b/app/src/main/res/values-bg/strings.xml @@ -3,6 +3,8 @@ Обикновен Калкулатор Калкулатор Научен калкулатор + Unit converter + Swap units Грешка: деление на нула @@ -13,6 +15,87 @@ Вибриране при натискане на бутоните Използване на запетая като десетичен знак + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Как работи бутонът C (Clear)\? Натискането му ще премахва по един символ. Дълго натискане ще изчисти наведнъж всички полета. @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-bs/strings.xml b/app/src/main/res/values-bs/strings.xml new file mode 100644 index 00000000..471d5e0e --- /dev/null +++ b/app/src/main/res/values-bs/strings.xml @@ -0,0 +1,106 @@ + + + Jednostavni kalkulator + Kalkulator + Naučni kalkulator + Pretvarač jedinica + Zamijeni jedinice + + Greška: dijeljenje s nulom + + Historija + Historija je prazna + Izbriši + Historija je izbrisana + + Vibriraj prilikom pritiskanja gumba + Koristi zarez kao decimalni znak + + Dužina + Kilometar + Metar + Centimetar + Milimetar + Mikrometar + Nanometar + Angstrom + Milja + Jard + Stopa + Palac + Fathom + Nautička milja + Astronomska jedinica + Parsek + Svjetlosna godina + Površina + Kvadratni kilometar + Kvadratni metar + Kvadratni centimetar + Kvadratni milimetar + Kvadratna milja + Kvadratni jard + Kvadratna stopa + Kvadratni palac + Aker + Hektar + Zapremina + Kubni metar + Kubni decimetar + Kubni centimetar + Kubni milimetar + Litar + Centilitar + Decilitar + Mililitar + Aker stopa + Kubna stopa + Kubni palac + Barel (SAD) + Galon (SAD) + Četvrtina (SAD) + Pinta (SAD) + Gill (SAD) + Unca tekuća(SAD) + Barel (Imperijalni) + Galon (Imperijalni) + Četvrtina (Imperijalna) + Pinta (Imperijalna) + Gill (Imperijalni) + Unca tekuća (Imperijalna) + Masa + Gram + Kilogram + Miligram + Mikrogram + Tona + Funta + Unca + Grain + Dram + Stone + Long Tona + Short Tona + Karat + Karat (Metrični) + Temperatura + Celzijus + Farenhajt + Rankine + Kelvin + Vrijeme + Sat + Minuta + Sekunda + Milisekunda + Dan + Sedmica + Godina + + Kako funkcionira gumb C (Izbriši)\? + Dodirom gumba uklanjaju se znakovi jedan po jedan. Dugim pritiskom gumba brišu se svi znakovi. + + diff --git a/app/src/main/res/values-ca/strings.xml b/app/src/main/res/values-ca/strings.xml index ea2cc4cf..8a4878cf 100644 --- a/app/src/main/res/values-ca/strings.xml +++ b/app/src/main/res/values-ca/strings.xml @@ -3,6 +3,8 @@ Simple Calculator Calculadora Calculadora científica + Unit converter + Swap units Error: divisió per zero @@ -13,6 +15,87 @@ Vibra en prémer els botons Utilitza la coma com a marca decimal + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Com funciona el botó C (Esborra)\? En tocar-lo, s\'eliminarà un caràcter a la vegada. Si el premeu prolongadament, es reiniciaran tots els camps de cop. @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml index 131255e6..65b03d22 100644 --- a/app/src/main/res/values-cs/strings.xml +++ b/app/src/main/res/values-cs/strings.xml @@ -3,6 +3,8 @@ Jednoduchá kalkulačka Kalkulačka Vědecká kalkulačka + Unit converter + Swap units Chyba: dělení nulou @@ -13,6 +15,87 @@ Vibrovat při stisku tlačítka Použít čárku jako oddělovač desetin + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Jak funguje tlačítko C? Stisknutím odmažete jeden znak. Dlouhým podržením smažete naráz všechna pole. @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-cy/strings.xml b/app/src/main/res/values-cy/strings.xml index bf7db4ad..60bc63ed 100644 --- a/app/src/main/res/values-cy/strings.xml +++ b/app/src/main/res/values-cy/strings.xml @@ -3,6 +3,8 @@ Simple Calculator Cyfrifiannell Cyfrifiannell Gwyddonol + Unit converter + Swap units Gwall: rhannu â sero @@ -13,6 +15,87 @@ Dirgrynu wrth wasgu botymau Defnyddio atalnod fel pwynt degol + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Sut mae\'r botwm C (clirio) yn gweithio? Mae ei dapio yn tynnu un rhif ar y tro. Mae ei dal yn ailosod pob maes gyda\'i gilydd ar unwaith. @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-da/strings.xml b/app/src/main/res/values-da/strings.xml index 0d56d90b..4642b7c4 100644 --- a/app/src/main/res/values-da/strings.xml +++ b/app/src/main/res/values-da/strings.xml @@ -3,6 +3,8 @@ Simpel lommeregner Lommeregner Videnskabelig lommeregner + Unit converter + Swap units Fejl: division med nul @@ -13,6 +15,87 @@ Vibrer ved knaptryk Use comma as a decimal mark + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Hvordan virker knappen C (Slet)\? Hvis du trykker på det, fjernes et tegn ad gangen. Langt tryk vil nulstille alle felter på én gang. diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index b3e753ba..808e2fc4 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -3,6 +3,8 @@ Schlichter Rechner Rechnerng> Wissenschaftlicher Rechner + Unit converter + Swap units Fehler: Division durch Null @@ -13,6 +15,87 @@ Bei Tastendruck vibrieren Komma als Dezimaltrennzeichen verwenden + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Wie funktioniert die C-Taste (Löschen)\? Bei einmaliger Berührung wird ein Zeichen entfernt. Bei langer Berührung werden alle Felder zurück gesetzt. @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-el/strings.xml b/app/src/main/res/values-el/strings.xml index bc06d927..24192841 100644 --- a/app/src/main/res/values-el/strings.xml +++ b/app/src/main/res/values-el/strings.xml @@ -2,6 +2,8 @@ Απλή Αριθμομηχανή Αριθμομηχανή Επιστημονική Αριθμομηχανή + Unit converter + Swap units Σφάλμα: διαίρεση με μηδέν @@ -15,6 +17,87 @@ Δόνηση στο πάτημα πλήκτρου Χρήση κόμματος ως δεκαδικό σημείο + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Πώς λειτουργεί το κουμπί C (Καθαρισμός); diff --git a/app/src/main/res/values-eo/strings.xml b/app/src/main/res/values-eo/strings.xml index d67cce2d..5a8643ac 100644 --- a/app/src/main/res/values-eo/strings.xml +++ b/app/src/main/res/values-eo/strings.xml @@ -3,6 +3,8 @@ Simpla Kalkulilo Kalkulilo Sciena kalkulilo + Unit converter + Swap units Eraro: divido per nul @@ -13,6 +15,87 @@ Vibrigi je butonpremo Use comma as a decimal mark + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Kiel funkcias la butono C («Forviŝi»)\? Frapetado sur ĝi forviŝos signojn po unu por frapeto. Longa premado forviŝos ĉiujn kampojn samtempe. diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index c0192689..f08344ae 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -3,6 +3,8 @@ Simple Calculator Calculadora Calculadora científica + Unit converter + Swap units Error: división por cero @@ -13,6 +15,87 @@ Vibrar al presionar un botón Usar una coma como marca decimal + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year ¿Cómo funciona el botón C (Borrar)\? Presionándolo una vez eliminará un solo carácter. Mantenerlo presionado reiniciará todos los campos. @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-et/strings.xml b/app/src/main/res/values-et/strings.xml index a0eb7e4e..bccf69e2 100644 --- a/app/src/main/res/values-et/strings.xml +++ b/app/src/main/res/values-et/strings.xml @@ -3,6 +3,8 @@ Lihtne kalkulaator Kalkulaator Teadusrežiim + Unit converter + Swap units Viga: nulliga jagamine @@ -13,6 +15,87 @@ Nupuvajutusel vibreeri Kasutage koma kui kümnendmärki + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Kuidas C (Clear) nupp toimib\? Üks klõpsatus kustutab ühe numbri. Pikk vajutus eemaldab kogu sisestuse. @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-fi/strings.xml b/app/src/main/res/values-fi/strings.xml index f3f87c58..38cde23e 100644 --- a/app/src/main/res/values-fi/strings.xml +++ b/app/src/main/res/values-fi/strings.xml @@ -3,6 +3,8 @@ Yksinkertainen laskin Laskin Funktiolaskin + Unit converter + Swap units Virhe: jako nollalla @@ -13,6 +15,87 @@ Värähdä painikkeista Käytä pilkkua desimaalierottimena + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Miten C (Tyhjennä) -painike toimii\? Sen napautus poistaa yhden merkin kerrallaan ja pitkä painallus tyhjentää kaikki kentät. @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-fil/strings.xml b/app/src/main/res/values-fil/strings.xml index 911be3e2..e06220d7 100644 --- a/app/src/main/res/values-fil/strings.xml +++ b/app/src/main/res/values-fil/strings.xml @@ -3,6 +3,8 @@ Simpleng Calculator Calculator Scientific Calculator + Unit converter + Swap units Error: paghahati sa zero Nakaraan Walang nakaraan @@ -10,6 +12,87 @@ Nalinis na ang nakaraan Mag-vibrate sa pagpindot Gumamit ng kuwit bilang decimal mark + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Paano gumagana ang C (Clear) button\? Matatanggal ng isang karakter kapag pinindot ito nang isang beses. Ire-reset naman ang lahat ng mga field kapag mahabang pinindot ito. - \ No newline at end of file + diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 876db975..44504cc5 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -3,6 +3,8 @@ Calculatrice simple Calculatrice Calculatrice scientifique + Unit converter + Swap units Erreur : division par zéro @@ -13,6 +15,87 @@ Vibrer lors de l\'appui sur les touches Utiliser la virgule comme séparateur décimal + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Comment fonctionne le bouton C (Effacer) \? En appuyant dessus, vous effacerez un caractère à la fois. Un appui prolongé réinitialisera tous les champs d\'un seul coup. diff --git a/app/src/main/res/values-gl/strings.xml b/app/src/main/res/values-gl/strings.xml index debd20d5..4248f2b7 100644 --- a/app/src/main/res/values-gl/strings.xml +++ b/app/src/main/res/values-gl/strings.xml @@ -3,6 +3,8 @@ Calculadora sinxela Calculadora Calculadora Científica + Unit converter + Swap units Erro: división por cero @@ -13,6 +15,87 @@ Vibrar ao premer nun botón Usar cómaa como marca decimal + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Como funciona o botón C (Borrar)? O premer, eliminarase un carácter á vez. O premer de forma continua, restableceranse todos os campos á vez. @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-hi/strings.xml b/app/src/main/res/values-hi/strings.xml index 10b56a98..d0040dd5 100644 --- a/app/src/main/res/values-hi/strings.xml +++ b/app/src/main/res/values-hi/strings.xml @@ -3,6 +3,8 @@ सरल कैलकुलेटर कैलकुलेटर वैज्ञानिक कैलकुलेटर + Unit converter + Swap units त्रुटि: शून्य से विभाजन इतिहास इतिहास खाली है @@ -10,6 +12,87 @@ इतिहास साफ हो चुका है बटन प्रेस पर कंपन दशमलव चिह्न के रूप में अल्पविराम का उपयोग करें + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year सी (क्लियर) बटन कैसे काम करता है\? इस पर टैप करने से एक बार में एक कैरेक्टर हट जाएगा। लंबे समय तक इसे दबाने से एक ही बार में सभी फ़ील्ड रीसेट हो जाएंगे। - \ No newline at end of file + diff --git a/app/src/main/res/values-hr/strings.xml b/app/src/main/res/values-hr/strings.xml index 2477ae0c..e700f69d 100644 --- a/app/src/main/res/values-hr/strings.xml +++ b/app/src/main/res/values-hr/strings.xml @@ -3,6 +3,8 @@ Jednostavan kalkulator Kalkulator Znanstveni kalkulator + Pretvarač jedinica + Zamijeni jedinice Greška: dijeljenje s nulom @@ -13,6 +15,87 @@ Vibriraj prilikom pritiskanja gumba Koristi zarez kao decimalni znak + + Duljina + Kilometar + Metar + Centimetar + Milimetar + Mikrometar + Nanometar + Angstrom + Milja + Jard + Stopa + Palac + Fathom + Nautička milja + Astronomska jedinica + Parsek + Svjetlosna godina + Površina + Četvorni kilometar + Četvorni metar + Četvorni centimetar + Četvorni milimetar + Četvorna milja + Četvorni jard + Četvorna stopa + Četvorni palac + Aker + Hektar + Obujam + Kubični metar + Kubični decimetar + Kubični centimetar + Kubični milimetar + Litra + Centilitra + Decilitra + Mililitra + Aker stopa + Kubična stopa + Kubični palac + Barel (SAD) + Galon (SAD) + Četvrtina (SAD) + Pinta (SAD) + Gill (SAD) + Unca tekuća(SAD) + Barel (Imperijalni) + Galon (Imperijalni) + Četvrtina (Imperijalna) + Pinta (Imperijalna) + Gill (Imperijalni) + Unca tekuća (Imperijalna) + Masa + Gram + Kilogram + Miligram + Mikrogram + Tona + Funta + Unca + Grain + Dram + Stone + Long Tona + Short Tona + Karat + Karat (Metrični) + Temperatura + Celzijus + Fahrenheit + Rankine + Kelvin + Vrijeme + Sat + Minuta + Sekunda + Milisekunda + Dan + Tjedan + Godina Kako funkcionira gumb C (Izbriši)\? Dodirom gumba uklanjaju se znakovi jedan po jedan. Dugim pritiskom gumba obnavljaju se sva polja. diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index ea6829c6..181e8d46 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -3,6 +3,8 @@ Egyszerű számológép Számológép Tudományos számológép + Unit converter + Swap units Hiba: nullával való osztás @@ -13,6 +15,87 @@ Rezgés gombnyomáskor Tizedesjelként vessző használata + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Hogyan működik a C (törlés) gomb\? A koppintás egyszerre egy karaktert töröl. A hosszú lenyomás egyszerre állítja vissza az összes mezőt. @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-in/strings.xml b/app/src/main/res/values-in/strings.xml index 7db9ba8c..acb9b825 100644 --- a/app/src/main/res/values-in/strings.xml +++ b/app/src/main/res/values-in/strings.xml @@ -3,6 +3,8 @@ Simple Calculator Kalkulator Kalkulator Sains + Unit converter + Swap units Kesalahan: pembagian dengan nol @@ -13,6 +15,87 @@ Getar saat tombol ditekan Gunakan koma sebagai tanda desimal + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Bagaimana tombol C (Clear) bekerja? Menyentuhnya sekali akan menghapus satu karakter. Menyentuhnya lama akan mengosongkan seluruh ruas sekaligus. @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-is/strings.xml b/app/src/main/res/values-is/strings.xml index 71462453..aae8843a 100644 --- a/app/src/main/res/values-is/strings.xml +++ b/app/src/main/res/values-is/strings.xml @@ -3,6 +3,8 @@ Simple Calculator Calculator Vísindareiknivél + Unit converter + Swap units Error: division by zero @@ -13,7 +15,88 @@ Titra þegar pikkað er á takka Nota kommu sem tugabrotskommu + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Hvernig virkar C (Hreinsa) hnappurinn\? Með því að pikka á hann verður einn stafur fjarlægður í einu. Haltu inni til þess að endurstilla alla reiti í einu. - \ No newline at end of file + diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index d3039861..bea8d674 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -3,6 +3,8 @@ Calcolatrice Semplice Calcolatrice Calcolatrice scientifica + Unit converter + Swap units Errore: divisione per zero @@ -13,6 +15,87 @@ Vibra alla pressione di un tasto Usa la virgola come segno decimale + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Come funziona il tasto C (Cancella)? Premendo il tasto una volta verrà eliminato un singolo carattere; tenendolo premuto invece eliminerà tutta la stringa. @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-iw/strings.xml b/app/src/main/res/values-iw/strings.xml index 12e6b0a4..1505a4e1 100755 --- a/app/src/main/res/values-iw/strings.xml +++ b/app/src/main/res/values-iw/strings.xml @@ -3,6 +3,8 @@ מחשבון פשוט מחשבון מחשבון מדעי + Unit converter + Swap units שגיאה: חלוקה באפס @@ -13,6 +15,87 @@ רטט בעת לחיצה Use comma as a decimal mark + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year כיצד פועל לחצן C (ניקוי)\? הקשה עליו תסיר תו אחד בכל פעם. לחיצה ארוכה עליו תאפס את כל השדות בבת אחת. diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 397c1956..4607c1e8 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -3,6 +3,8 @@ シンプル電卓 電卓 科学計算電卓 + Unit converter + Swap units エラー:ゼロによる除算 @@ -13,6 +15,87 @@ ボタンのタップ時に振動する カンマを小数点として使う + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year C (クリア) ボタンはどのように機能しますか? ボタンをタップするたびに1文字ずつ削除されます。ボタンを長押しするとすべてのフィールドがリセットされます。 @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-kn/strings.xml b/app/src/main/res/values-kn/strings.xml index 153ddaed..558157f3 100644 --- a/app/src/main/res/values-kn/strings.xml +++ b/app/src/main/res/values-kn/strings.xml @@ -3,6 +3,8 @@ ಸರಳ ಕ್ಯಾಲ್ಕುಲೇಟರ್ ಕ್ಯಾಲ್ಕುಲೇಟರ್ ವೈಜ್ಞಾನಿಕ ಕ್ಯಾಲ್ಕುಲೇಟರ್ + Unit converter + Swap units ದೋಷ : ಶೂನ್ಯದಿಂದ ವಿಭಜನೆ @@ -13,6 +15,87 @@ Vibrate on button press ಅಲ್ಪವಿರಾಮವನ್ನು ದಶಮಾಂಶ ಚಿಹ್ನೆಯಾಗಿ ಬಳಸಿ + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year ಸಿ (ತೆರವುಗೊಳಿಸಿ) ಬಟನ್ ಹೇಗೆ ಕೆಲಸ ಮಾಡುತ್ತದೆ\? ಅದರ ಮೇಲೆ ಟ್ಯಾಪ್ ಮಾಡುವುದರಿಂದ ಒಂದು ಸಮಯದಲ್ಲಿ ಒಂದು ಅಕ್ಷರವನ್ನು ತೆಗೆದುಹಾಕಲಾಗುತ್ತದೆ. ದೀರ್ಘವಾಗಿ ಒತ್ತಿದರೆ ಎಲ್ಲಾ ಕ್ಷೇತ್ರಗಳನ್ನು ಒಂದೇ ಬಾರಿಗೆ ಮರುಹೊಂದಿಸುತ್ತದೆ. diff --git a/app/src/main/res/values-ko/strings.xml b/app/src/main/res/values-ko/strings.xml index 74890af8..14109cfb 100644 --- a/app/src/main/res/values-ko/strings.xml +++ b/app/src/main/res/values-ko/strings.xml @@ -3,6 +3,8 @@ 간단한 계산기 계산기 과학 계산기 + Unit converter + Swap units 오류: 0으로 나누기 @@ -13,6 +15,87 @@ 진동 버튼을 누릅니다 쉼표를 소수점으로 사용합니다 + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year C(지우기) 버튼은 어떻게 작동합니까\? 누르면 한 번에 한 문자씩 제거됩니다. 길게 누르면 모든 필드가 한 번에 재설정됩니다. diff --git a/app/src/main/res/values-kr/strings.xml b/app/src/main/res/values-kr/strings.xml index 720ad97e..1786fdd3 100644 --- a/app/src/main/res/values-kr/strings.xml +++ b/app/src/main/res/values-kr/strings.xml @@ -2,6 +2,8 @@ 심플한 계산기 계산기 공학용 계산기 + Unit converter + Swap units 에러: 공으로 나눌 할수 없어요 @@ -15,6 +17,87 @@ 버튼 탭시 진동 Use comma as a decimal mark + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year C (Clear) 버튼을 어떻게 사용합니까? diff --git a/app/src/main/res/values-lt/strings.xml b/app/src/main/res/values-lt/strings.xml index 46cfc9e1..f8b1f3e4 100644 --- a/app/src/main/res/values-lt/strings.xml +++ b/app/src/main/res/values-lt/strings.xml @@ -3,6 +3,8 @@ Paprastas skaičiuotuvas Skaičiuotuvas Mokslinis skaičiuotuvas + Unit converter + Swap units Klaida: dalyba iš nulio @@ -13,6 +15,87 @@ Vibruoti, kai paspaudžiami mygtukai Naudoti kablelį kaip dešimtainių dalių skirtuką + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Kaip veikia C (Išvalymo) mygtukas\? Kiekvieną kartą ant jo bakstelėjus, bus šalinama po vieną simbolį. Ilgai jį palaikius, bus iš karto atstatyti visi laukai. @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-lv/strings.xml b/app/src/main/res/values-lv/strings.xml index 369f2021..9692cc07 100644 --- a/app/src/main/res/values-lv/strings.xml +++ b/app/src/main/res/values-lv/strings.xml @@ -3,6 +3,8 @@ Vienkāršs kalkulators Kalkulators Zinātniskais kalkulators + Unit converter + Swap units Kļūda: dalīšana ar nulli @@ -13,6 +15,87 @@ Vibrēšana pēc pogas nospiešanas Izmanto komatu kā decimālzīmi + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Kā darbojas poga C (Notīrīt)\? Pieskarieties tai, lai noņemtu vienu rakstzīmi vienlaikus. Ilgstoši nospiežot to, tiks atiestatīti visi lauki vienlaicīgi. diff --git a/app/src/main/res/values-mk/strings.xml b/app/src/main/res/values-mk/strings.xml index ee6205a7..6b81a703 100644 --- a/app/src/main/res/values-mk/strings.xml +++ b/app/src/main/res/values-mk/strings.xml @@ -3,6 +3,8 @@ Едноставен калкулатор Калкулатор Научен калкулатор + Unit converter + Swap units Грешка: поделба по нула @@ -13,6 +15,87 @@ Вибрирајте на копчето притиснете Користете замена како знак за децимален знак + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Како функционира копчето C (Clear) \? Прислушкувањето на него ќе отстрани еден лик во исто време. Долгото притискање ќе ги ресетира сите полиња одеднаш. diff --git a/app/src/main/res/values-ml/strings.xml b/app/src/main/res/values-ml/strings.xml index ed3859b1..f4df9dd5 100644 --- a/app/src/main/res/values-ml/strings.xml +++ b/app/src/main/res/values-ml/strings.xml @@ -3,6 +3,8 @@ സിമ്പിൾ കാൽക്കുലേറ്റർ കാൽക്കുലേറ്റർ ശാസ്ത്രീയ കാൽക്കുലേറ്റർ + Unit converter + Swap units പിശക്: 0 കൊണ്ട് ഹരിക്കാനാവില്ല @@ -13,6 +15,87 @@ ബട്ടൺ അമർത്തുമ്പോൾ വൈബ്രേറ്റ് ചെയ്യുക ദശാംശ ചിഹ്നമായി കോമ(,) ഉപയോഗിക്കുക + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year C(ക്ലിയർ ) ബട്ടൺ പ്രവർത്തിക്കുന്നത് എങ്ങനെ\? ടാപ്പ് ചെയ്യുമ്പോൾ ഒരു സമയം ഒരു പ്രതീകത്തെ നീക്കംചെയ്യും. ദീർഘനേരം അമർത്തിയാൽ എല്ലാ ഫീൽഡുകളും പുനഃസജ്ജമാക്കും. @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-ms/strings.xml b/app/src/main/res/values-ms/strings.xml index c98ea691..01070257 100644 --- a/app/src/main/res/values-ms/strings.xml +++ b/app/src/main/res/values-ms/strings.xml @@ -2,6 +2,8 @@ Kalkulator Ringkas Kalkulator Kalkulator Saintifik + Unit converter + Swap units Amaran: pembahagian dengan sifar @@ -15,6 +17,87 @@ Getar semasa butang ditekan Use comma as a decimal mark + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Bagaimana Butang C (Menghapus) Digunakan? diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml index 47302db4..62ef147a 100644 --- a/app/src/main/res/values-nl/strings.xml +++ b/app/src/main/res/values-nl/strings.xml @@ -3,6 +3,8 @@ Eenvoudige Rekenmachine Rekenmachine Wetenschappelijke Rekenmachine + Unit converter + Swap units Fout: delen door nul @@ -13,6 +15,87 @@ Trillen bij het indrukken van toetsen Komma als decimaalteken gebruiken + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Hoe werkt de knop C (Clear)\? Kort indrukken verwijdert één karakter per keer. Lang drukken wist direct alle velden. @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-no-rNO/strings.xml b/app/src/main/res/values-no-rNO/strings.xml index 2ea2ed45..2ec739e8 100644 --- a/app/src/main/res/values-no-rNO/strings.xml +++ b/app/src/main/res/values-no-rNO/strings.xml @@ -3,6 +3,8 @@ Enkel kalkulator Kalkulator Vitenskapelig kalkulator + Unit converter + Swap units FeiL: Deling på null @@ -13,6 +15,87 @@ Vibrer ved knappetrykk Use comma as a decimal mark + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Hvordan fungerer C (Clear)-knappen\? Å trykke på den fjerner ett tegn av gangen. Lang-trykk tilbakestiller alle felter. غلطی آئی اے، صفر نال ونڈ @@ -13,7 +15,88 @@ Vibrate on button press Use comma as a decimal mark + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year How does the C (Clear) button work\? Tapping on it will remove one character at a time. Long pressing it will reset all fields at once. - \ No newline at end of file + diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml index a3aeedd4..8b1946df 100644 --- a/app/src/main/res/values-pl/strings.xml +++ b/app/src/main/res/values-pl/strings.xml @@ -3,6 +3,8 @@ Prosty kalkulator Kalkulator Kalkulator naukowy + Unit converter + Swap units Błąd: dzielenie przez zero @@ -13,6 +15,87 @@ Wibracja przy naciśnięciu przycisku Używaj przecinka jako separatora dziesiętnego + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Jak działa przycisk C (Wyczyść)? Naciśnięcie go usunie jeden znak naraz. Długie naciśnięcie zresetuje wszystkie pola jednocześnie. diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index 3f5b6b79..df6e5085 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -3,6 +3,8 @@ Calculadora Simples Calculadora Calculadora Científica + Unit converter + Swap units Erro: divisão por zero @@ -13,6 +15,87 @@ Vibrar ao pressionar um botão Usar virgula como marca decimal + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Como funciona o botão C (Clear)\? Um toque remove um caractere de cada vez. Um toque longo redefine todos os campos de uma vez. diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml index 6efcda1a..0748a611 100644 --- a/app/src/main/res/values-pt/strings.xml +++ b/app/src/main/res/values-pt/strings.xml @@ -3,6 +3,8 @@ Simple Calculator Calculadora Calculadora científica + Unit converter + Swap units Erro: divisão por zero @@ -13,6 +15,87 @@ Vibrar ao tocar nos botões Usar vírgula como separador decimal + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Como funciona o botão C (limpar)\? Ao tocar uma vez, os caracteres serão apagados um a um. Um toque longo apaga todos os caracteres ao mesmo tempo. @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-ro/strings.xml b/app/src/main/res/values-ro/strings.xml index 796bede0..3cd0d9f5 100644 --- a/app/src/main/res/values-ro/strings.xml +++ b/app/src/main/res/values-ro/strings.xml @@ -3,6 +3,8 @@ Calculator simplu Calculator Calculator Ştiințific + Unit converter + Swap units Eroare: împărțire la zero @@ -13,6 +15,87 @@ Vibrează la apăsarea butoanelor Utilizează virgula ca separator zecimal + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Cum funcționează butonul Ș (Șterge)\? Apăsând pe el, veți elimina câte un caracter pe rând. Apăsarea lungă va reseta toate câmpurile deodată. @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index db1b516c..e45190f0 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -3,6 +3,8 @@ Простой калькулятор Калькулятор Научный калькулятор + Unit converter + Swap units Ошибка: деление на ноль @@ -13,6 +15,87 @@ Вибрация при нажатии кнопок Использовать запятую в качестве десятичного знака + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Как работает кнопка C (Очистка)\? Нажатие на неё удалит один символ. Долгое нажатие сбросит все поля сразу. @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-sk/strings.xml b/app/src/main/res/values-sk/strings.xml index d1a3ed6e..e88d3e24 100644 --- a/app/src/main/res/values-sk/strings.xml +++ b/app/src/main/res/values-sk/strings.xml @@ -3,6 +3,8 @@ Jednoduchá kalkulačka Kalkulačka Vedecká kalkulačka + Prevodník jednotiek + Vymeniť jednotky Chyba: delenie nulou @@ -13,6 +15,87 @@ Vibrovať pri stlačení tlačidla Používať čiarku na oddelenie desatinných čísel + + Dĺžka + Kilometer + Meter + Centimeter + Milimeter + Mikrometer + Nanometer + Angstrom + Míľa + Yard + Noha + Palec + Fathom + Námorná míľa + Astronomická jednotka + Parsek + Svetelný rok + Plocha + Kilometer štvorcový + Meter štvorcový + Centimeter štvorcový + Milimeter štvorcový + Míľa štvorcová + Yard štvorcový + Noha štvorcová + Palec štvorcový + Aker + Hektár + Objem + Meter kubický + Decimeter kubický + Centimeter kubický + Milimeter kubický + Liter + Centiliter + Deciliter + Mililiter + Akrová noha + Noha kubická + Palec kubický + Sud (US) + Galón (US) + Quart (US) + Pinta (US) + Gill (US) + Tekutá unca (US) + Barel (Imperiálny) + Galón (Imperiálny) + Quart (Imperiálny) + Pint (Imperiálny) + Gill (Imperiálny) + Tekutá unca (Imperiálna) + Hmotnosť + Gram + Kilogram + Miligram + Mikrogram + Tona + Libra + Uncia + Zrno + Dram + Kameň + Dlhá tona + Krátka tona + Karát + Karát (Metrický) + Teplota + Celzius + Fahrenheit + Rankine + Kelvin + Čas + Hodina + Minúta + Sekunda + Mikrosekunda + Deň + Týždeň + Rok Ako funguje tlačidlo C? Jedným stlačením viete vymazať 1 znak. Dlhé podržanie vymaže všetky polia naraz. diff --git a/app/src/main/res/values-sl/strings.xml b/app/src/main/res/values-sl/strings.xml index ae3d4e99..8ea3b09c 100644 --- a/app/src/main/res/values-sl/strings.xml +++ b/app/src/main/res/values-sl/strings.xml @@ -3,6 +3,8 @@ Preprost kalkulator Kalkulator Znanstveni kalkulator + Unit converter + Swap units Napaka: deljenje z ničlo Zgodovina Zgodovina je prazna @@ -10,6 +12,87 @@ Zgodovina je bila izbrisana Vibriraj ob pritisku gumba Uporabite vejico kot decimalno znamenje + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Kako deluje gumb C (Clear)\? Če ga stisnete, odstranite po en lik naenkrat. Z dolgim pritiskom nanj boste odstranili vsa polja naenkrat. - \ No newline at end of file + diff --git a/app/src/main/res/values-sr/strings.xml b/app/src/main/res/values-sr/strings.xml index 8a5b2408..84f16af4 100644 --- a/app/src/main/res/values-sr/strings.xml +++ b/app/src/main/res/values-sr/strings.xml @@ -3,6 +3,8 @@ Једноставан калкулатор Калкулатор Научни калкулатор + Претварач јединица + Замијени јединице Грешка : дељење нулом @@ -13,6 +15,87 @@ Вибрирајте притиснути дугметом Коришћење зареза као децималног знака + + Дужина + Километар + Метар + Центиметар + Милиметар + Микрометар + Нанометар + Ангстром + Миља + Јард + Стопа + Палац + Фатом + Наутичка миља + Астрономска јединица + Парсек + Светлосна година + Површина + Квадратни километар + Квадратни метар + Квадратни центиметар + Квадратни милиметар + Квадратна милја + Квадратни јард + Квадратна стопа + Квадратни палац + Акер + Хектар + Запремина + Кубни метар + Кубни дециметар + Кубни центиметар + Кубни милиметар + Литар + Центилитар + Децилитар + Милилитар + Акер стопа + Кубна стопа + Кубни палац + Барел (САД) + Галон (САД) + Четвртина (САД) + Пинта (САД) + Гил (САД) + Текућа унца (САД) + Барел (Империјални) + Галон (Империјални) + Четвртина (Империјални) + Пинта (Империјални) + Гил (Империјални) + Текућа унца (Империјални) + Маса + Грам + Килограм + Милиграм + Микрограм + Тона + Фунта + Унца + Граин + Драм + Стоне + Лонг тона + Шорт тона + Карат + Карат (Метричнки) + Температуре + Целзијус + Фаренхајт + Ранкин + Келвин + Време + Сат + Минута + Секунда + Милисекунда + Дан + Седмица + Година Како дугме Ц (Обриши) функционише\? Додиривање на њега ће уклонити један по један знак. Дуго притискање ће успоставити почетне вредности свих поља одједном. diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index bd6cf68a..b3228c82 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -3,6 +3,8 @@ Simpel kalkylator Kalkylator Avancerad kalkylator + Unit converter + Swap units Fel: delning med noll @@ -13,6 +15,87 @@ Vibrera när jag trycker på knapparna Använd komma som decimaltecken + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Hur funkar C (Rensa) knappen\? Om du trycker på den tar du bort ett tecken i taget. Om du trycker länge på den återställs alla fält på en gång. diff --git a/app/src/main/res/values-ta/strings.xml b/app/src/main/res/values-ta/strings.xml index 1f395c81..234ee58a 100644 --- a/app/src/main/res/values-ta/strings.xml +++ b/app/src/main/res/values-ta/strings.xml @@ -3,6 +3,8 @@ எளிய கால்குலேட்டர் கால்குலேட்டர் அறிவியல் கால்குலேட்டர் + Unit converter + Swap units பிழை: பூஜ்ஜியத்தால் வகுத்தல் @@ -13,6 +15,87 @@ Vibrate on button press கமாவை தசம குறியாகப் பயன்படுத்தவும் + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year சி (தெளிவு) பொத்தான் எப்படி வேலை செய்கிறது\? அதைத் தட்டினால் ஒரு நேரத்தில் ஒரு எழுத்து நீக்கப்படும். நீண்ட நேரம் அழுத்தினால், எல்லாப் புலங்களையும் ஒரே நேரத்தில் மீட்டமைக்கும். diff --git a/app/src/main/res/values-te/strings.xml b/app/src/main/res/values-te/strings.xml index e99866a0..3d70c4ca 100644 --- a/app/src/main/res/values-te/strings.xml +++ b/app/src/main/res/values-te/strings.xml @@ -3,6 +3,8 @@ సాధారణ కాలిక్యులేటర్ గనన యంత్రము శాస్త్రీయ గనన యంత్రము + Unit converter + Swap units లోపం: సున్నాతో భాగించటం @@ -13,6 +15,87 @@ Vibrate on button press కామాను దశాంశ గుర్తుగా ఉపయోగించండి + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year C (క్లియర్) బటన్ ఎలా పని చేస్తుంది\? దానిపై నొక్కడం ద్వారా ఒక్కో అక్షరం తీసివేయబడుతుంది. ఎక్కువసేపు నొక్కితే, అన్ని ఫీల్డ్‌లు ఒకేసారి రీసెట్ చేయబడతాయి. diff --git a/app/src/main/res/values-th/strings.xml b/app/src/main/res/values-th/strings.xml index 214962e0..aca49275 100644 --- a/app/src/main/res/values-th/strings.xml +++ b/app/src/main/res/values-th/strings.xml @@ -3,6 +3,8 @@ Simple Calculator Calculator Scientific Calculator + Unit converter + Swap units Error: division by zero @@ -16,6 +18,87 @@ Vibrate on button press Use comma as a decimal mark + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year How does the C (Clear) button work? diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml index acdbf07c..6aef7f95 100644 --- a/app/src/main/res/values-tr/strings.xml +++ b/app/src/main/res/values-tr/strings.xml @@ -3,6 +3,8 @@ Basit Hesap Makinesi Hesap Makinesi Bilimsel Hesap Makinesi + Unit converter + Swap units Hata: sıfıra bölme @@ -13,6 +15,87 @@ Düğmeye basıldığında titret Ondalık işareti olarak virgül kullan + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year C (Temizle) düğmesi nasıl çalışır? Üzerine dokunmak, bir seferde bir karakteri kaldıracaktır. Uzun basma, tüm alanları bir kerede sıfırlayacaktır. diff --git a/app/src/main/res/values-uk/strings.xml b/app/src/main/res/values-uk/strings.xml index 208a90dd..9b503eea 100644 --- a/app/src/main/res/values-uk/strings.xml +++ b/app/src/main/res/values-uk/strings.xml @@ -3,6 +3,8 @@ Простий Калькулятор Калькулятор Науковий Калькулятор + Unit converter + Swap units Помилка: ділення на нуль @@ -13,6 +15,87 @@ Вібрувати з натиском кнопок Як десятковий знак використовувати кому + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year Як працює кнопка C (Очистити)? Короткий натиск видалить один символ за раз. Тривалий натиск одразу очистить всі поля. diff --git a/app/src/main/res/values-zgh/strings.xml b/app/src/main/res/values-zgh/strings.xml index e8a0fd2d..e30802ea 100644 --- a/app/src/main/res/values-zgh/strings.xml +++ b/app/src/main/res/values-zgh/strings.xml @@ -3,6 +3,8 @@ ⵜⴰⵙⵎⵙⵙⵉⴹⵏⵜ ⵜⴰⴼⵔⴰⵔⵜ ⵜⴰⵙⵎⵙⵙⵉⴹⵏⵜ ⵜⴰⵙⵎⵙⵙⵉⴹⵏⵜ ⵜⴰⵎⴰⵙⵙⴰⵏⵜ + Unit converter + Swap units ⵜⴰⵣⴳⵍⵜ: ⴰⴱⵟⵟⵓ ⵅⴼ ⵓⵎⵢⴰ @@ -13,6 +15,87 @@ ⴰⵔⵎⵉⵎⵎⵉ ⴳ ⵡⴰⴱⴱⴰⵥ ⵅⴼ ⵜⴳⵎⵎⵓⵜⵉⵏ ⵙⵎⵔⵙ ⵜⵉⵙⴽⵔⵜ ⴷ ⵜⴰⵎⴰⵜⴰⵔⵜ ⵜⴰⵎⵔⴰⵡⴰⵏⵜ + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year ⵎⴰⵎⴽ ⵜⵙⵡⵓⵔⵓⵢ ⵜⴳⵎⵎⵓⵜ C (ⴽⴽⵙ)\? ⴰⴱⴱⴰⵥ ⵅⴼ ⵓⵢⵏⵏⴰ ⴰⴷ ⵉⴽⴽⵙ ⵢⴰⵏ ⵓⵙⴽⴽⵉⵍ ⴳ ⵢⴰⵏ ⵓⵣⵎⵣ. ⵎⵛ ⵉⵍⵍⴰ ⵡⴰⴱⴱⴰⵥ ⴰⵙⵓⵍⴰⵏ ⵔⴰⴷ ⵜⵜⵓⵙⵏⴼⵍⵏ ⵎⴰⵕⵕⴰ ⵉⴳⵔⴰⵏ ⴳ ⵢⴰⵏ ⵓⵣⵎⵣ. diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 6c7e63ba..c0a73890 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -3,6 +3,8 @@ 简单计算器 计算器 科学计算器 + Unit converter + Swap units 错误: 被零除 @@ -13,6 +15,87 @@ 按下按键后震动 用逗号作小数点 + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year 如何使用 C (清除) 按钮? 点按它一次删除一个字母。长按它将立即重置所有字段。 @@ -20,4 +103,4 @@ Haven't found some strings? There's more at https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res --> - \ No newline at end of file + diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index f39df6f3..bd82d37d 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -3,6 +3,8 @@ 簡易計算機 計算機 科學計算機 + Unit converter + Swap units 錯誤:除以零 @@ -13,6 +15,87 @@ 按下按鈕時震動 Use comma as a decimal mark + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year C(清除)按鈕如何使用? 按一次會刪除一個字元。長按會馬上重設全部欄位。 diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index d81400a7..2e55331d 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -8,4 +8,8 @@ 34sp 20sp 40sp + + 120dp + 40dp + 64dp diff --git a/app/src/main/res/values/donottranslate.xml b/app/src/main/res/values/donottranslate.xml index 4a86eb13..3caf507b 100644 --- a/app/src/main/res/values/donottranslate.xml +++ b/app/src/main/res/values/donottranslate.xml @@ -2,6 +2,82 @@ com.simplemobiletools.calculator + %s (%s) + km + m + cm + mm + μm + nm + Å + mi + yd + ft + in + fathom + NM + au + pc + ly + km² + + cm² + mm² + sq mi + sq yd + sq ft + sq in + ac + ha + + dm³ + cm³ + mm³ + L + cL + dL + mL + ac ft + ft³ + in³ + fl bl (US) + gal (US) + qt (US) + pt (US fl) + gi (US) + US fl oz + bl (imp) + gal (imp) + qt (imp) + pt (imp) + gi (imp) + fl oz (imp) + g + kg + mg + μm + t + lb + oz + gr + dr + st + ton + sh tn + kt + ct + °C + °F + °R + K + h + m + s + ms + d + wk + y + Allow customizing the bottom navigation bar color Added a toggle for preventing the phone from sleeping, enabled by default diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 214962e0..2cc9922f 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -3,6 +3,8 @@ Simple Calculator Calculator Scientific Calculator + Unit converter + Swap units Error: division by zero @@ -17,6 +19,88 @@ Vibrate on button press Use comma as a decimal mark + + Length + Kilometer + Meter + Centimeter + Millimeter + Micrometer + Nanometer + Angstrom + Mile + Yard + Foot + Inch + Fathom + Nautical Mile + Astronomical Unit + Parsec + Light Year + Area + Square Kilometer + Square Meter + Square Centimeter + Square Millimeter + Square Mile + Square Yard + Square Foot + Square Inch + Acre + Hectare + Volume + Cubic Meter + Cubic Decimeter + Cubic Centimeter + Cubic Millimeter + Liter + Centiliter + Deciliter + Milliliter + Acre Foot + Cubic Foot + Cubic Inch + Barrel (US) + Gallon (US) + Quart (US) + Pint (US) + Gill (US) + Fluid Ounce (US) + Barrel (Imperial) + Gallon (Imperial) + Quart (Imperial) + Pint (Imperial) + Gill (Imperial) + Fluid Ounce (Imperial) + Mass + Gram + Kilogram + Milligram + Microgram + Tonne + Pound + Ounce + Grain + Dram + Stone + Long Ton + Short Ton + Carat + Carat (Metric) + Temperature + Celsius + Fahrenheit + Rankine + Kelvin + Time + Hour + Minute + Second + Microsecond + Day + Week + Year + How does the C (Clear) button work? Tapping on it will remove one character at a time. Long pressing it will reset all fields at once. diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index fc3179ea..b588c1cb 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -20,7 +20,7 @@ exp4j = "0.4.8" #Room room = "2.5.2" #Simple tools -simple-commons = "7c1e5b5777" +simple-commons = "65105a24a2" #Gradle gradlePlugins-agp = "8.1.1" #build