mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-04 17:37:25 +00:00
Moved all text to resource files. Not yet organized
This commit is contained in:
parent
c4a5f34cf3
commit
4cf46887fb
22 changed files with 250 additions and 133 deletions
|
|
@ -39,7 +39,7 @@ class AppActionMenu(private val activity: MainActivity, private val binding: Act
|
|||
){
|
||||
|
||||
|
||||
ViewCompat.addAccessibilityAction(textView, "App info") { _, _ ->
|
||||
ViewCompat.addAccessibilityAction(textView, activity.getString(R.string.accessibility_info)) { _, _ ->
|
||||
appInfo(appActivity, userHandle)
|
||||
true
|
||||
}
|
||||
|
|
@ -50,7 +50,7 @@ class AppActionMenu(private val activity: MainActivity, private val binding: Act
|
|||
textView.visibility = View.VISIBLE
|
||||
}
|
||||
|
||||
ViewCompat.addAccessibilityAction(textView, "Uninstall app") { _, _ ->
|
||||
ViewCompat.addAccessibilityAction(textView, activity.getString(R.string.accessibility_uninstall)) { _, _ ->
|
||||
uninstallApp(appInfo, userHandle)
|
||||
true
|
||||
}
|
||||
|
|
@ -61,7 +61,7 @@ class AppActionMenu(private val activity: MainActivity, private val binding: Act
|
|||
textView.visibility = View.VISIBLE
|
||||
}
|
||||
|
||||
ViewCompat.addAccessibilityAction(textView, "Rename app") { _, _ ->
|
||||
ViewCompat.addAccessibilityAction(textView, activity.getString(R.string.accessibility_rename)) { _, _ ->
|
||||
renameApp(textView, editLayout, actionMenu, appActivity, appInfo, userHandle, workProfile)
|
||||
true
|
||||
}
|
||||
|
|
@ -70,7 +70,7 @@ class AppActionMenu(private val activity: MainActivity, private val binding: Act
|
|||
renameApp(textView, editLayout, actionMenu, appActivity, appInfo, userHandle, workProfile)
|
||||
}
|
||||
|
||||
ViewCompat.addAccessibilityAction(textView, "Hide app") { _, _ ->
|
||||
ViewCompat.addAccessibilityAction(textView, activity.getString(R.string.accessibility_hide)) { _, _ ->
|
||||
hideApp(editLayout, textView, actionMenu, appInfo, workProfile)
|
||||
true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ class AppMenuAdapter(
|
|||
)
|
||||
|
||||
// Set app name on the menu. If the app has been uninstalled, replace it with "Removing" until the app menu updates.
|
||||
val appLabel: CharSequence = appInfo?.let { activity.packageManager.getApplicationLabel(it) } ?: "Removing..."
|
||||
val appLabel: CharSequence = appInfo?.let { activity.packageManager.getApplicationLabel(it) } ?: activity.getString(R.string.removing)
|
||||
|
||||
if (appInfo != null) {
|
||||
holder.textView.text = sharedPreferenceManager.getAppName(
|
||||
|
|
@ -174,7 +174,7 @@ class AppMenuAdapter(
|
|||
appActivity
|
||||
)
|
||||
}
|
||||
ViewCompat.addAccessibilityAction(holder.textView, "Close App Menu") { _, _ ->
|
||||
ViewCompat.addAccessibilityAction(holder.textView, activity.getString(R.string.close_app_menu)) { _, _ ->
|
||||
activity.backToHome()
|
||||
true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ class ContactsAdapter(
|
|||
|
||||
holder.textView.visibility = View.VISIBLE
|
||||
|
||||
ViewCompat.addAccessibilityAction(holder.textView, "Close App Menu") { _, _ ->
|
||||
ViewCompat.addAccessibilityAction(holder.textView, activity.getString(R.string.close_app_menu)) { _, _ ->
|
||||
activity.backToHome()
|
||||
true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
|
|||
super.onTouchEvent(event)
|
||||
}
|
||||
|
||||
ViewCompat.addAccessibilityAction(textView, "Set Shortcut App") { _, _ ->
|
||||
ViewCompat.addAccessibilityAction(textView, getString(R.string.accessibility_set_shortcut)) { _, _ ->
|
||||
uiUtils.setMenuTitleAlignment(binding.menuTitle)
|
||||
uiUtils.setMenuTitleSize(binding.menuTitle)
|
||||
binding.menuTitle.visibility = View.VISIBLE
|
||||
|
|
@ -243,12 +243,12 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
|
|||
true
|
||||
}
|
||||
|
||||
ViewCompat.addAccessibilityAction(textView, "Launcher Settings") { _, _ ->
|
||||
ViewCompat.addAccessibilityAction(textView, getString(R.string.settings_title)) { _, _ ->
|
||||
startActivity(Intent(this@MainActivity, SettingsActivity::class.java))
|
||||
true
|
||||
}
|
||||
|
||||
ViewCompat.addAccessibilityAction(textView, "Open App Menu") { _, _ ->
|
||||
ViewCompat.addAccessibilityAction(textView, getString(R.string.open_app_menu)) { _, _ ->
|
||||
openAppMenu()
|
||||
true
|
||||
}
|
||||
|
|
@ -296,7 +296,7 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
|
|||
private fun unsetShortcutListeners(textView: TextView) {
|
||||
textView.setOnClickListener {
|
||||
if (canLaunchShortcut) {
|
||||
Toast.makeText(this, "Long click to select an app", Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(this, getString(R.string.shortcut_default_click), Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -417,12 +417,12 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
|
|||
true
|
||||
}
|
||||
|
||||
ViewCompat.addAccessibilityAction(binding.homeView, "Launcher Settings") { _, _ ->
|
||||
ViewCompat.addAccessibilityAction(binding.homeView, getString(R.string.settings_title)) { _, _ ->
|
||||
startActivity(Intent(this@MainActivity, SettingsActivity::class.java))
|
||||
true
|
||||
}
|
||||
|
||||
ViewCompat.addAccessibilityAction(binding.homeView, "Open App Menu") { _, _ ->
|
||||
ViewCompat.addAccessibilityAction(binding.homeView, getString(R.string.open_app_menu)) { _, _ ->
|
||||
openAppMenu()
|
||||
true
|
||||
}
|
||||
|
|
@ -1042,7 +1042,7 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
|
|||
canLaunchShortcut = false
|
||||
launcherApps.startMainActivity(leftSwipeActivity.first!!.componentName, launcherApps.profiles[leftSwipeActivity.second!!], null, null)
|
||||
} else {
|
||||
Toast.makeText(this@MainActivity, "Cannot launch app", Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(this@MainActivity, getString(R.string.launch_error), Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1053,7 +1053,7 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
|
|||
canLaunchShortcut = false
|
||||
launcherApps.startMainActivity(rightSwipeActivity.first!!.componentName, launcherApps.profiles[rightSwipeActivity.second!!], null, null)
|
||||
} else {
|
||||
Toast.makeText(this@MainActivity, "Cannot launch app", Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(this@MainActivity, getString(R.string.launch_error), Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,6 +47,6 @@ class AboutFragment : Fragment(), TitleProvider {
|
|||
}
|
||||
|
||||
override fun getTitle(): String {
|
||||
return "About YAM Launcher"
|
||||
return getString(R.string.about_title)
|
||||
}
|
||||
}
|
||||
|
|
@ -27,7 +27,7 @@ class AppMenuSettingsFragment : PreferenceFragmentCompat(), TitleProvider {
|
|||
}
|
||||
|
||||
override fun getTitle(): String {
|
||||
return "App Menu Settings"
|
||||
return getString(R.string.app_settings_title)
|
||||
}
|
||||
|
||||
fun setContactPreference(isEnabled: Boolean) {
|
||||
|
|
|
|||
|
|
@ -135,14 +135,14 @@ class GestureAppsFragment(private val direction: String) : Fragment(),
|
|||
|
||||
private fun showConfirmationDialog(appInfo: LauncherActivityInfo, appName: String, profile: Int) {
|
||||
AlertDialog.Builder(requireContext()).apply {
|
||||
setTitle("Confirmation")
|
||||
setMessage("Are you sure you want to choose $appName?")
|
||||
setTitle(getString(R.string.confirm_title))
|
||||
setMessage("${getString(R.string.app_confirm_text)} $appName?")
|
||||
|
||||
setPositiveButton("Yes") { _, _ ->
|
||||
setPositiveButton(getString(R.string.confirm_yes)) { _, _ ->
|
||||
performConfirmedAction(appInfo, appName, profile)
|
||||
}
|
||||
|
||||
setNegativeButton("Cancel") { _, _ ->
|
||||
setNegativeButton(getString(R.string.confirm_no)) { _, _ ->
|
||||
}
|
||||
|
||||
}.create().show()
|
||||
|
|
@ -165,7 +165,7 @@ class GestureAppsFragment(private val direction: String) : Fragment(),
|
|||
}
|
||||
|
||||
override fun getTitle(): String {
|
||||
return "Select an App"
|
||||
return getString(R.string.select_an_app)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -135,15 +135,15 @@ class HiddenAppsFragment : Fragment(), HiddenAppsAdapter.OnItemClickListener, Ti
|
|||
|
||||
private fun showConfirmationDialog(appInfo: LauncherActivityInfo, appName: String, profile: Int) {
|
||||
AlertDialog.Builder(requireContext()).apply {
|
||||
setTitle("Confirmation")
|
||||
setMessage("Are you sure you want to unhide $appName?")
|
||||
setPositiveButton("Yes") { _, _ ->
|
||||
setTitle(getString(R.string.confirm_title))
|
||||
setMessage("${getString(R.string.hidden_confirm_text)} $appName?")
|
||||
setPositiveButton(getString(R.string.confirm_yes)) { _, _ ->
|
||||
lifecycleScope.launch {
|
||||
performConfirmedAction(appInfo, profile)
|
||||
}
|
||||
}
|
||||
|
||||
setNegativeButton("Cancel") { _, _ ->
|
||||
setNegativeButton(getString(R.string.confirm_no)) { _, _ ->
|
||||
}
|
||||
}.create().show()
|
||||
}
|
||||
|
|
@ -162,7 +162,7 @@ class HiddenAppsFragment : Fragment(), HiddenAppsAdapter.OnItemClickListener, Ti
|
|||
}
|
||||
|
||||
override fun getTitle(): String {
|
||||
return "Hidden Apps"
|
||||
return getString(R.string.hidden_apps_title)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -84,6 +84,6 @@ class HomeSettingsFragment : PreferenceFragmentCompat(), TitleProvider {
|
|||
}
|
||||
|
||||
override fun getTitle(): String {
|
||||
return "Home Screen Settings"
|
||||
return getString(R.string.home_settings_title)
|
||||
}
|
||||
}
|
||||
|
|
@ -105,22 +105,22 @@ class LocationFragment : Fragment(), LocationListAdapter.OnItemClickListener, Ti
|
|||
}
|
||||
}
|
||||
|
||||
private fun showConfirmationDialog(appName: String?, latitude: String?, longitude: String?) {
|
||||
private fun showConfirmationDialog(locationName: String?, latitude: String?, longitude: String?) {
|
||||
AlertDialog.Builder(requireContext()).apply {
|
||||
setTitle("Confirmation")
|
||||
setMessage("Are you sure you want to select $appName?")
|
||||
setPositiveButton("Yes") { _, _ ->
|
||||
performConfirmedAction(appName, latitude, longitude)
|
||||
setTitle(getString(R.string.confirm_title))
|
||||
setMessage("${getString(R.string.app_confirm_text)} $locationName?")
|
||||
setPositiveButton(getString(R.string.confirm_yes)) { _, _ ->
|
||||
performConfirmedAction(locationName, latitude, longitude)
|
||||
}
|
||||
setNegativeButton("Cancel") { _, _ ->
|
||||
setNegativeButton(R.string.confirm_no) { _, _ ->
|
||||
|
||||
}
|
||||
|
||||
}.create().show()
|
||||
}
|
||||
|
||||
private fun performConfirmedAction(appName: String?, latitude: String?, longitude: String?) {
|
||||
sharedPreferenceManager.setWeatherLocation("latitude=${latitude}&longitude=${longitude}", appName)
|
||||
private fun performConfirmedAction(locationName: String?, latitude: String?, longitude: String?) {
|
||||
sharedPreferenceManager.setWeatherLocation("latitude=${latitude}&longitude=${longitude}", locationName)
|
||||
requireActivity().supportFragmentManager.popBackStack()
|
||||
}
|
||||
|
||||
|
|
@ -130,7 +130,7 @@ class LocationFragment : Fragment(), LocationListAdapter.OnItemClickListener, Ti
|
|||
}
|
||||
|
||||
override fun getTitle(): String {
|
||||
return "Search for Your City"
|
||||
return getString(R.string.find_your_city)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -40,7 +40,7 @@ class SettingsActivity : AppCompatActivity() {
|
|||
setContentView(binding.root)
|
||||
|
||||
supportActionBar?.setDisplayHomeAsUpEnabled(true)
|
||||
supportActionBar?.title = "Launcher Settings"
|
||||
supportActionBar?.title = getString(R.string.settings_title)
|
||||
supportActionBar?.setDisplayShowTitleEnabled(true)
|
||||
|
||||
if (supportFragmentManager.backStackEntryCount == 0) {
|
||||
|
|
@ -123,9 +123,9 @@ class SettingsActivity : AppCompatActivity() {
|
|||
contentResolver.openOutputStream(uri)?.use { outputStream ->
|
||||
outputStream.write(sharedPreferencesText.toByteArray())
|
||||
}
|
||||
Toast.makeText(this, "Backup successful :)", Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(this, getString(R.string.backup_success), Toast.LENGTH_SHORT).show()
|
||||
} catch (e: Exception) {
|
||||
Toast.makeText(this, "Backup failed :(", Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(this, getString(R.string.backup_fail), Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -143,7 +143,7 @@ class SettingsActivity : AppCompatActivity() {
|
|||
try {
|
||||
val backupData = JSONObject(jsonData)
|
||||
if (backupData.getString("app_id") != application.packageName) {
|
||||
throw IllegalArgumentException("Not a YAM Launcher backup")
|
||||
throw IllegalArgumentException(getString(R.string.restore_wrong_app))
|
||||
}
|
||||
val data = backupData.getJSONObject("data")
|
||||
|
||||
|
|
@ -168,14 +168,14 @@ class SettingsActivity : AppCompatActivity() {
|
|||
|
||||
editor.apply()
|
||||
|
||||
Toast.makeText(this, "Restore successful :)", Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(this, getString(R.string.restore_success), Toast.LENGTH_SHORT).show()
|
||||
} catch(e: IllegalArgumentException) {
|
||||
Toast.makeText(this, e.message, Toast.LENGTH_SHORT).show()
|
||||
} catch (e: Exception) {
|
||||
Toast.makeText(this, "Restore failed :( (corrupt file?)", Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(this, getString(R.string.restore_fail), Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
} else {
|
||||
Toast.makeText(this, "Failed to read file", Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(this, getString(R.string.restore_error), Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -221,7 +221,7 @@ class SettingsActivity : AppCompatActivity() {
|
|||
if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
|
||||
fragment.setContactPreference(true)
|
||||
} else {
|
||||
Toast.makeText(this, "Permission Denied", Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(this, getString(R.string.permission_denied), Toast.LENGTH_SHORT).show()
|
||||
fragment.setContactPreference(false)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ class SettingsFragment : PreferenceFragmentCompat(), TitleProvider {
|
|||
}
|
||||
|
||||
override fun getTitle(): String {
|
||||
return "Launcher Settings"
|
||||
return getString(R.string.settings_title)
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import android.graphics.Color
|
|||
import android.util.TypedValue
|
||||
import android.widget.TextView
|
||||
import androidx.preference.PreferenceManager
|
||||
import eu.ottop.yamlauncher.R
|
||||
|
||||
class SharedPreferenceManager (private val context: Context) {
|
||||
|
||||
|
|
@ -258,8 +259,8 @@ class SharedPreferenceManager (private val context: Context) {
|
|||
|
||||
fun resetAllPreferences() {
|
||||
AlertDialog.Builder(context).apply {
|
||||
setTitle("Confirmation")
|
||||
setMessage("You will lose ALL changes that you have made to the launcher settings, shortcuts, hidden apps, etc.\n\nAre you sure?")
|
||||
setTitle(context.getString(R.string.confirm_title))
|
||||
setMessage(context.getString(R.string.reset_confirm_text))
|
||||
setPositiveButton("Yes") { _, _ ->
|
||||
performReset()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,6 @@ class UISettingsFragment : PreferenceFragmentCompat(), TitleProvider {
|
|||
}
|
||||
|
||||
override fun getTitle(): String {
|
||||
return "General UI Settings"
|
||||
return getString(R.string.ui_settings_title)
|
||||
}
|
||||
}
|
||||
|
|
@ -6,6 +6,7 @@ import android.content.pm.LauncherActivityInfo
|
|||
import android.content.pm.LauncherApps
|
||||
import android.os.UserHandle
|
||||
import android.widget.Toast
|
||||
import eu.ottop.yamlauncher.R
|
||||
import eu.ottop.yamlauncher.settings.SharedPreferenceManager
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.withContext
|
||||
|
|
@ -84,7 +85,7 @@ class AppUtils(private val context: Context, private val launcherApps: LauncherA
|
|||
if (mainActivity != null) {
|
||||
launcherApps.startMainActivity(mainActivity.componentName, userHandle, null, null)
|
||||
} else {
|
||||
Toast.makeText(context, "Cannot launch app", Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(context, context.getString(R.string.launch_error), Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -11,6 +11,7 @@ import android.content.pm.ServiceInfo
|
|||
import android.provider.Settings
|
||||
import android.view.accessibility.AccessibilityManager
|
||||
import androidx.appcompat.app.AppCompatActivity.ACCESSIBILITY_SERVICE
|
||||
import eu.ottop.yamlauncher.R
|
||||
import eu.ottop.yamlauncher.settings.SharedPreferenceManager
|
||||
|
||||
class GestureUtils(private val context: Context) {
|
||||
|
|
@ -50,15 +51,15 @@ class GestureUtils(private val context: Context) {
|
|||
|
||||
fun promptEnableAccessibility() {
|
||||
AlertDialog.Builder(context).apply {
|
||||
setTitle("Confirmation")
|
||||
setMessage("To lock with double tap, enable YAM Launcher in accessibility settings.")
|
||||
setPositiveButton("Yes") { _, _ ->
|
||||
setTitle(context.getString(R.string.confirm_title))
|
||||
setMessage(context.getString(R.string.screenlock_confirmation))
|
||||
setPositiveButton(context.getString(R.string.confirm_yes)) { _, _ ->
|
||||
// Perform action on confirmation
|
||||
val intent = Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS)
|
||||
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
|
||||
context.startActivity(intent)
|
||||
}
|
||||
setNegativeButton("Cancel") { _, _ ->
|
||||
setNegativeButton(context.getString(R.string.confirm_no)) { _, _ ->
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import android.location.LocationManager
|
|||
import androidx.core.app.ActivityCompat
|
||||
import androidx.core.content.ContextCompat
|
||||
import eu.ottop.yamlauncher.MainActivity
|
||||
import eu.ottop.yamlauncher.R
|
||||
import eu.ottop.yamlauncher.settings.SharedPreferenceManager
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
|
|
@ -43,7 +44,7 @@ class WeatherSystem(private val context: Context) {
|
|||
CoroutineScope(Dispatchers.IO).launch {
|
||||
val latitude = location.latitude
|
||||
val longitude = location.longitude
|
||||
sharedPreferenceManager.setWeatherLocation("latitude=${latitude}&longitude=${longitude}", "Latest GPS location")
|
||||
sharedPreferenceManager.setWeatherLocation("latitude=${latitude}&longitude=${longitude}", context.getString(R.string.latest_location))
|
||||
activity.updateWeatherText()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,25 +5,84 @@
|
|||
|
||||
<string name="shortcut_default">App</string>
|
||||
|
||||
<!--App Menu Titles-->
|
||||
<string name="shortcut_default_click">Long click to select an app</string>
|
||||
|
||||
<string name="accessibility_set_shortcut">Set Shortcut App</string>
|
||||
|
||||
<!--App Menu Items-->
|
||||
<string name="select_an_app">Select an app</string>
|
||||
<string name="unhide_an_app">Unhide an app</string>
|
||||
<string name="find_your_city">Find your city</string>
|
||||
<string name="find_your_city">"Search for Your City"</string>
|
||||
|
||||
<string name="search">Search…</string>
|
||||
|
||||
<string name="switch_to_contacts">Switch to Contacts</string>
|
||||
<string name="switch_to_apps">Switch to Apps</string>
|
||||
|
||||
<string name="confirm_title">Confirmation</string>
|
||||
<string name="app_confirm_text">Are you sure you want to choose</string>
|
||||
<string name="confirm_yes">Yes</string>
|
||||
<string name="confirm_no">Cancel</string>
|
||||
<string name="hidden_confirm_text">Are you sure you want to unhide</string>
|
||||
|
||||
<string name="removing">Removing...</string>
|
||||
|
||||
<string name="close_app_menu">Close App Menu</string>
|
||||
<string name="open_app_menu">Open App Menu</string>
|
||||
|
||||
<string name="launch_error">Cannot launch app</string>
|
||||
|
||||
<!--Action Menu Items-->
|
||||
<string name="reset">Reset</string>
|
||||
<string name="info">Info</string>
|
||||
<string name="uninstall">Uninstall</string>
|
||||
<string name="rename">Rename</string>
|
||||
<string name="hide">Hide</string>
|
||||
<string name="close">Close</string>
|
||||
<string name="accessibility_info">App info</string>
|
||||
<string name="accessibility_uninstall">Uninstall app</string>
|
||||
<string name="accessibility_rename">Rename app</string>
|
||||
<string name="accessibility_hide">Hide app</string>
|
||||
|
||||
<!--Settings Page-->
|
||||
<string name="settings_title">Launcher Settings</string>
|
||||
|
||||
<string name="default_home">Set Default Home</string>
|
||||
|
||||
<string name="customization">Customization</string>
|
||||
|
||||
<string name="ui_settings_title">General UI Settings</string>
|
||||
<string name="ui_settings_text">General UI</string>
|
||||
<string name="ui_settings_summary">Configure the overall look</string>
|
||||
<string name="appearance">Appearance</string>
|
||||
|
||||
<string name="home_settings_title">Home Screen Settings</string>
|
||||
<string name="home_settings_text">Home Screen</string>
|
||||
<string name="home_settings_summary">Configure the home screen</string>
|
||||
<string name="app_settings_title">App Menu Settings</string>
|
||||
<string name="app_settings_text">App Menu</string>
|
||||
<string name="app_settings_summary">Configure the application menu</string>
|
||||
<string name="hidden_apps_title">Hidden Apps</string>
|
||||
<string name="hidden_apps_text">Manage Hidden Apps</string>
|
||||
<string name="hidden_apps_summary">Unhide Apps</string>
|
||||
<string name="about">About</string>
|
||||
<string name="reset">Reset</string>
|
||||
<string name="restart_text">Restart YAM Launcher</string>
|
||||
<string name="reset_text">Reset All Settings</string>
|
||||
<string name="reset_confirm_text">You will lose ALL changes that you have made to the launcher settings, shortcuts, hidden apps, etc.\n\nAre you sure?</string>
|
||||
<string name="backup_restore">Backup and Restore</string>
|
||||
<string name="backup">Backup</string>
|
||||
<string name="backup_summary">Backup your settings</string>
|
||||
<string name="restore">Restore</string>
|
||||
<string name="restore_summary">Restore a backup</string>
|
||||
<string name="backup_success">Backup successful :)</string>
|
||||
<string name="backup_fail">Backup failed :(</string>
|
||||
<string name="restore_success">Restore successful :)</string>
|
||||
<string name="restore_fail">Restore failed :( (corrupt file?)</string>
|
||||
<string name="restore_wrong_app">Not a YAM Launcher backup</string>
|
||||
<string name="restore_error">Failed to read file</string>
|
||||
<string name="permission_denied">Permission Denied</string>
|
||||
|
||||
<!--About Page Items-->
|
||||
<string name="about_title">About YAM Launcher</string>
|
||||
<string name="app_icon">App Icon</string>
|
||||
<string name="creditName">By Otto Petäjä</string>
|
||||
<string name="source_code">Source Code</string>
|
||||
|
|
@ -46,5 +105,59 @@
|
|||
<string name="location_link"><![CDATA[Location data by <a href="https://open-meteo.com/">Open-Meteo.com</a> (<a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>)]]></string>
|
||||
<string name="region_text">%1$s%2$s</string>
|
||||
|
||||
<string name="latest_location">Latest GPS location</string>
|
||||
|
||||
<string name="screenlock_confirmation">To lock with double tap, enable YAM Launcher in accessibility settings.</string>
|
||||
<string name="accessibility_service_description">The permission is required for double tap to work for locking the screen.\n\nIt is only needed if you want to use the double tap to lock screen feature in YAM Launcher.</string>
|
||||
<string name="background_color">Background Color</string>
|
||||
<string name="text_color">Text Color</string>
|
||||
<string name="text_font">Text Font</string>
|
||||
<string name="text_style">Text Style</string>
|
||||
<string name="animation_speed">Animation Speed</string>
|
||||
<string name="swipe_threshold">Swipe Threshold</string>
|
||||
<string name="operation">Operation</string>
|
||||
<string name="swipe_velocity_threshold">Swipe Velocity Threshold</string>
|
||||
<string name="show_status_bar">Show Status Bar</string>
|
||||
<string name="apps">Apps</string>
|
||||
<string name="app_alignment">App Alignment</string>
|
||||
<string name="app_size">App Size</string>
|
||||
<string name="app_spacing">App Spacing</string>
|
||||
<string name="contacts_menu">Contacts Menu</string>
|
||||
<string name="search_text">Search</string>
|
||||
<string name="enable_search">Enable Search</string>
|
||||
<string name="search_alignment">Search Alignment</string>
|
||||
<string name="search_size">Search Size</string>
|
||||
<string name="automatically_open_keyboard">Automatically Open Keyboard</string>
|
||||
<string name="automatic_app_opening">Automatic App Opening</string>
|
||||
<string name="auto_launch_summary">Automatically launch an app when it\'s the last search result</string>
|
||||
<string name="clock">Clock</string>
|
||||
<string name="show_clock">Show Clock</string>
|
||||
<string name="clock_alignment">Clock Alignment</string>
|
||||
<string name="clock_size">Clock Size</string>
|
||||
<string name="clicking_time_opens_clock">Clicking Time Opens Clock</string>
|
||||
<string name="custom_clock_gesture">Custom Clock</string>
|
||||
<string name="set_clock_app">Set Clock App</string>
|
||||
<string name="date">Date</string>
|
||||
<string name="show_date">Show Date</string>
|
||||
<string name="date_size">Date Size</string>
|
||||
<string name="battery_indicator">Battery Indicator</string>
|
||||
<string name="clicking_date_opens_calendar">Clicking Date Opens Calendar</string>
|
||||
<string name="custom_date_gesture">Custom Calendar</string>
|
||||
<string name="set_calendar_app">Set Calendar App</string>
|
||||
<string name="weather">Weather</string>
|
||||
<string name="gps_location">GPS Location</string>
|
||||
<string name="set_manual_location">Set Manual Location</string>
|
||||
<string name="units">Units</string>
|
||||
<string name="shortcuts">Shortcuts</string>
|
||||
<string name="number_of_shortcuts">Number of Shortcuts</string>
|
||||
<string name="horizontal_alignment">Horizontal Alignment</string>
|
||||
<string name="vertical_alignment">Vertical Alignment</string>
|
||||
<string name="shortcut_size">Shortcut Size</string>
|
||||
<string name="shortcut_spacing">Shortcut Spacing</string>
|
||||
<string name="gestures">Gestures</string>
|
||||
<string name="swipe_left">Swipe Left</string>
|
||||
<string name="left_swipe_app">Left Swipe App</string>
|
||||
<string name="swipe_right">Swipe Right</string>
|
||||
<string name="right_swipe_app">Right Swipe App</string>
|
||||
<string name="double_tap_to_lock_screen">Double Tap to Lock Screen</string>
|
||||
</resources>
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<PreferenceCategory
|
||||
app:allowDividerAbove="false"
|
||||
app:title="Apps">
|
||||
app:title="@string/apps">
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
android:entries="@array/h_alignment_options"
|
||||
android:entryValues="@array/h_alignment_values"
|
||||
app:key="appMenuAlignment"
|
||||
app:title="App Alignment"
|
||||
app:title="@string/app_alignment"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
android:entries="@array/size_options"
|
||||
android:entryValues="@array/size_values"
|
||||
app:key="appMenuSize"
|
||||
app:title="App Size"
|
||||
app:title="@string/app_size"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -30,25 +30,25 @@
|
|||
android:entries="@array/app_spacing_options"
|
||||
android:entryValues="@array/app_spacing_values"
|
||||
app:key="appSpacing"
|
||||
app:title="App Spacing"
|
||||
app:title="@string/app_spacing"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<SwitchPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="false"
|
||||
android:title="Contacts Menu"
|
||||
android:title="@string/contacts_menu"
|
||||
app:key="contactsEnabled" />
|
||||
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory
|
||||
app:allowDividerAbove="false"
|
||||
app:title="Search">
|
||||
app:title="@string/search_text">
|
||||
|
||||
<SwitchPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="true"
|
||||
android:title="Enable Search"
|
||||
android:title="@string/enable_search"
|
||||
app:key="searchEnabled" />
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -58,7 +58,7 @@
|
|||
android:entries="@array/h_alignment_options"
|
||||
android:entryValues="@array/h_alignment_values"
|
||||
app:key="searchAlignment"
|
||||
app:title="Search Alignment"
|
||||
app:title="@string/search_alignment"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -68,23 +68,23 @@
|
|||
android:entries="@array/size_options"
|
||||
android:entryValues="@array/size_values"
|
||||
app:key="searchSize"
|
||||
app:title="Search Size"
|
||||
app:title="@string/search_size"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<SwitchPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="false"
|
||||
android:title="Automatically Open Keyboard"
|
||||
android:title="@string/automatically_open_keyboard"
|
||||
app:dependency="searchEnabled"
|
||||
app:key="autoKeyboard" />
|
||||
<SwitchPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="false"
|
||||
android:title="Automatic App Opening"
|
||||
android:title="@string/automatic_app_opening"
|
||||
app:dependency="searchEnabled"
|
||||
app:key="autoLaunch"
|
||||
app:summary="Automatically launch an app when it's the last search result" />
|
||||
app:summary="@string/auto_launch_summary" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="Clock"
|
||||
android:title="@string/clock"
|
||||
app:allowDividerAbove="false"
|
||||
app:allowDividerBelow="false">
|
||||
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="true"
|
||||
android:title="Show Clock"
|
||||
android:title="@string/show_clock"
|
||||
app:key="clockEnabled" />
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:defaultValue="left"
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
android:entries="@array/h_alignment_options"
|
||||
android:entryValues="@array/h_alignment_values"
|
||||
app:key="clockAlignment"
|
||||
app:title="Clock Alignment"
|
||||
app:title="@string/clock_alignment"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -29,20 +29,20 @@
|
|||
android:entries="@array/size_options"
|
||||
android:entryValues="@array/size_values"
|
||||
app:key="clockSize"
|
||||
app:title="Clock Size"
|
||||
app:title="@string/clock_size"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<SwitchPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="true"
|
||||
android:title="Clicking Time Opens Clock"
|
||||
android:title="@string/clicking_time_opens_clock"
|
||||
app:dependency="clockEnabled"
|
||||
app:key="clockClick" />
|
||||
<SwitchPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="false"
|
||||
android:title="Custom Clock"
|
||||
android:title="@string/custom_clock_gesture"
|
||||
app:dependency="clockClick"
|
||||
app:key="clockSwipe" />
|
||||
<Preference
|
||||
|
|
@ -51,10 +51,10 @@
|
|||
app:dependency="clockSwipe"
|
||||
app:key="clockSwipeApp"
|
||||
app:selectable="true"
|
||||
app:title="Set Clock App" />
|
||||
app:title="@string/set_clock_app" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory
|
||||
android:title="Date"
|
||||
android:title="@string/date"
|
||||
app:allowDividerAbove="false"
|
||||
app:allowDividerBelow="false">
|
||||
|
||||
|
|
@ -62,7 +62,7 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="true"
|
||||
android:title="Show Date"
|
||||
android:title="@string/show_date"
|
||||
app:key="dateEnabled" />
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -72,27 +72,27 @@
|
|||
android:entries="@array/size_options"
|
||||
android:entryValues="@array/size_values"
|
||||
app:key="dateSize"
|
||||
app:title="Date Size"
|
||||
app:title="@string/date_size"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<SwitchPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="false"
|
||||
android:title="Battery Indicator"
|
||||
android:title="@string/battery_indicator"
|
||||
app:dependency="dateEnabled"
|
||||
app:key="batteryEnabled" />
|
||||
<SwitchPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="true"
|
||||
android:title="Clicking Date Opens Calendar"
|
||||
android:title="@string/clicking_date_opens_calendar"
|
||||
app:dependency="dateEnabled"
|
||||
app:key="dateClick" />
|
||||
<SwitchPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="false"
|
||||
android:title="Custom Calendar"
|
||||
android:title="@string/custom_date_gesture"
|
||||
app:dependency="dateClick"
|
||||
app:key="dateSwipe" />
|
||||
<Preference
|
||||
|
|
@ -101,26 +101,26 @@
|
|||
app:dependency="dateSwipe"
|
||||
app:key="dateSwipeApp"
|
||||
app:selectable="true"
|
||||
app:title="Set Calendar App" />
|
||||
app:title="@string/set_calendar_app" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:allowDividerAbove="false"
|
||||
app:allowDividerBelow="false"
|
||||
app:title="Weather">
|
||||
app:title="@string/weather">
|
||||
<SwitchPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="false"
|
||||
android:title="Weather"
|
||||
android:title="@string/weather"
|
||||
app:dependency="dateEnabled"
|
||||
app:key="weatherEnabled" />
|
||||
<SwitchPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="false"
|
||||
android:title="GPS Location"
|
||||
android:title="@string/gps_location"
|
||||
app:dependency="weatherEnabled"
|
||||
app:key="gpsLocation" />
|
||||
<Preference
|
||||
|
|
@ -129,7 +129,7 @@
|
|||
app:dependency="weatherEnabled"
|
||||
app:key="manualLocation"
|
||||
app:selectable="true"
|
||||
app:title="Set Manual Location" />
|
||||
app:title="@string/set_manual_location" />
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
@ -138,7 +138,7 @@
|
|||
android:entries="@array/temp_units"
|
||||
android:entryValues="@array/unit_values"
|
||||
app:key="tempUnits"
|
||||
app:title="Units"
|
||||
app:title="@string/units"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory
|
||||
|
|
@ -146,7 +146,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
app:allowDividerAbove="false"
|
||||
app:allowDividerBelow="false"
|
||||
app:title="Shortcuts">
|
||||
app:title="@string/shortcuts">
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
@ -154,7 +154,7 @@
|
|||
android:entries="@array/shortcut_options"
|
||||
android:entryValues="@array/shortcut_options"
|
||||
app:key="shortcutNo"
|
||||
app:title="Number of Shortcuts"
|
||||
app:title="@string/number_of_shortcuts"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -163,7 +163,7 @@
|
|||
android:entries="@array/h_alignment_options"
|
||||
android:entryValues="@array/h_alignment_values"
|
||||
app:key="shortcutAlignment"
|
||||
app:title="Horizontal Alignment"
|
||||
app:title="@string/horizontal_alignment"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -172,7 +172,7 @@
|
|||
android:entries="@array/v_alignment_options"
|
||||
android:entryValues="@array/v_alignment_values"
|
||||
app:key="shortcutVAlignment"
|
||||
app:title="Vertical Alignment"
|
||||
app:title="@string/vertical_alignment"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -181,7 +181,7 @@
|
|||
android:entries="@array/size_options"
|
||||
android:entryValues="@array/size_values"
|
||||
app:key="shortcutSize"
|
||||
app:title="Shortcut Size"
|
||||
app:title="@string/shortcut_size"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -190,7 +190,7 @@
|
|||
android:entries="@array/shortcut_spacing_options"
|
||||
android:entryValues="@array/shortcut_spacing_values"
|
||||
app:key="shortcutWeight"
|
||||
app:title="Shortcut Spacing"
|
||||
app:title="@string/shortcut_spacing"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory
|
||||
|
|
@ -198,12 +198,12 @@
|
|||
android:layout_height="wrap_content"
|
||||
app:allowDividerAbove="false"
|
||||
app:allowDividerBelow="false"
|
||||
app:title="Gestures">
|
||||
app:title="@string/gestures">
|
||||
<SwitchPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="false"
|
||||
android:title="Swipe Left"
|
||||
android:title="@string/swipe_left"
|
||||
app:key="leftSwipe" />
|
||||
<Preference
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -211,12 +211,12 @@
|
|||
app:dependency="leftSwipe"
|
||||
app:key="leftSwipeApp"
|
||||
app:selectable="true"
|
||||
app:title="Left Swipe App" />
|
||||
app:title="@string/left_swipe_app" />
|
||||
<SwitchPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="false"
|
||||
android:title="Swipe Right"
|
||||
android:title="@string/swipe_right"
|
||||
app:key="rightSwipe" />
|
||||
<Preference
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -224,12 +224,12 @@
|
|||
app:dependency="rightSwipe"
|
||||
app:key="rightSwipeApp"
|
||||
app:selectable="true"
|
||||
app:title="Right Swipe App" />
|
||||
app:title="@string/right_swipe_app" />
|
||||
<SwitchPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="false"
|
||||
android:title="Double Tap to Lock Screen"
|
||||
android:title="@string/double_tap_to_lock_screen"
|
||||
app:key="doubleTap" />
|
||||
</PreferenceCategory>
|
||||
|
||||
|
|
|
|||
|
|
@ -7,97 +7,97 @@
|
|||
android:layout_height="wrap_content"
|
||||
app:key="defaultHome"
|
||||
app:selectable="true"
|
||||
app:title="Set Default Home" />
|
||||
app:title="@string/default_home" />
|
||||
|
||||
<PreferenceCategory
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:allowDividerAbove="false"
|
||||
app:title="Customization" >
|
||||
app:title="@string/customization" >
|
||||
<Preference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:key="uiSettings"
|
||||
app:selectable="true"
|
||||
app:summary="Configure the overall look"
|
||||
app:title="General UI" />
|
||||
app:summary="@string/ui_settings_summary"
|
||||
app:title="@string/ui_settings_text" />
|
||||
<Preference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:key="homeSettings"
|
||||
app:selectable="true"
|
||||
app:summary="Configure the home screen"
|
||||
app:title="Home Screen" />
|
||||
app:summary="@string/home_settings_summary"
|
||||
app:title="@string/home_settings_text" />
|
||||
<Preference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:key="appMenuSettings"
|
||||
app:selectable="true"
|
||||
app:summary="Configure the application menu"
|
||||
app:title="App Menu" />
|
||||
app:summary="@string/app_settings_summary"
|
||||
app:title="@string/app_settings_text" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:allowDividerAbove="false"
|
||||
app:title="Hidden Apps">
|
||||
app:title="@string/hidden_apps_title">
|
||||
<Preference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:key="hiddenApps"
|
||||
app:selectable="true"
|
||||
app:summary="Unhide Apps"
|
||||
app:title="Manage Hidden Apps" />
|
||||
app:summary="@string/hidden_apps_summary"
|
||||
app:title="@string/hidden_apps_text" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:allowDividerAbove="false"
|
||||
app:title="Backup and Restore">
|
||||
app:title="@string/backup_restore">
|
||||
<Preference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:key="backup"
|
||||
app:selectable="true"
|
||||
app:summary="Backup your settings"
|
||||
app:title="Backup" />
|
||||
app:summary="@string/backup_summary"
|
||||
app:title="@string/backup" />
|
||||
<Preference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:key="restore"
|
||||
app:selectable="true"
|
||||
app:summary="Restore a backup"
|
||||
app:title="Restore" />
|
||||
app:summary="@string/restore_summary"
|
||||
app:title="@string/restore" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:allowDividerAbove="false"
|
||||
app:title="About">
|
||||
app:title="@string/about">
|
||||
<Preference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:key="aboutPage"
|
||||
app:selectable="true"
|
||||
app:title="About YAM Launcher" />
|
||||
app:title="@string/about_title" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:allowDividerAbove="false"
|
||||
app:title="Reset">
|
||||
app:title="@string/reset">
|
||||
<Preference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:key="restartLauncher"
|
||||
app:selectable="true"
|
||||
app:title="Restart YAM Launcher" />
|
||||
app:title="@string/restart_text" />
|
||||
<Preference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:key="resetAll"
|
||||
app:selectable="true"
|
||||
app:title="Reset All Settings" />
|
||||
app:title="@string/reset_text" />
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
<PreferenceCategory
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:title="Appearance"
|
||||
android:title="@string/appearance"
|
||||
app:allowDividerAbove="false">
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
android:entries="@array/bg_options"
|
||||
android:entryValues="@array/bg_values"
|
||||
app:key="bgColor"
|
||||
app:title="Background Color"
|
||||
app:title="@string/background_color"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
android:entries="@array/color_options"
|
||||
android:entryValues="@array/color_values"
|
||||
app:key="textColor"
|
||||
app:title="Text Color"
|
||||
app:title="@string/text_color"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
android:entries="@array/font_options"
|
||||
android:entryValues="@array/font_values"
|
||||
app:key="textFont"
|
||||
app:title="Text Font"
|
||||
app:title="@string/text_font"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
|
|
@ -41,11 +41,11 @@
|
|||
android:entries="@array/style_options"
|
||||
android:entryValues="@array/style_values"
|
||||
app:key="textStyle"
|
||||
app:title="Text Style"
|
||||
app:title="@string/text_style"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory
|
||||
android:title="Operation"
|
||||
android:title="@string/operation"
|
||||
app:allowDividerAbove="false">
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -54,7 +54,7 @@
|
|||
android:entries="@array/animation_options"
|
||||
android:entryValues="@array/animation_values"
|
||||
app:key="animationSpeed"
|
||||
app:title="Animation Speed"
|
||||
app:title="@string/animation_speed"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -63,7 +63,7 @@
|
|||
android:entries="@array/animation_options"
|
||||
android:entryValues="@array/swipe_values"
|
||||
app:key="swipeThreshold"
|
||||
app:title="Swipe Threshold"
|
||||
app:title="@string/swipe_threshold"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -72,13 +72,13 @@
|
|||
android:entries="@array/animation_options"
|
||||
android:entryValues="@array/swipe_values"
|
||||
app:key="swipeVelocity"
|
||||
app:title="Swipe Velocity Threshold"
|
||||
app:title="@string/swipe_velocity_threshold"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<SwitchPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="false"
|
||||
android:title="Show Status Bar"
|
||||
android:title="@string/show_status_bar"
|
||||
app:key="barVisibility" />
|
||||
</PreferenceCategory>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue