android:versionName="4.0.1" >
<uses-sdk
- android:minSdkVersion="4"
- android:targetSdkVersion="16" />
+ android:minSdkVersion="10"
+ android:targetSdkVersion="17" />
<uses-feature
android:name="android.hardware.touchscreen"
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
+ android:allowBackup="true"
android:name=".DictionaryApplication"
android:icon="@drawable/icon"
android:label="@string/app_name"
- android:theme="@style/Theme.Light" >
+ android:theme="@style/AppTheme" >
<meta-data
android:name="com.google.android.backup.api_key"
<activity android:name=".DictionaryEditActivity" />
<activity android:name=".AboutActivity" />
<activity android:name=".HtmlDisplayActivity" />
- <activity android:name=".PreferenceActivity" />
+ <activity android:name=".SettingsActivity" />
<activity
android:name=".DownloadActivity"
android:configChanges="keyboardHidden|orientation" />
+++ /dev/null
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system use,
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-
-# Indicates whether an apk should be generated for each density.
-split.density=false
-# Project target.
-target=android-17
-android.library.reference.1=../Util
--- /dev/null
+# To enable ProGuard in your project, edit project.properties
+# to define the proguard.config property as described in that file.
+#
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in ${sdk.dir}/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the ProGuard
+# include property in project.properties.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
--- /dev/null
+<menu xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <item
+ android:id="@+id/action_settings"
+ android:orderInCategory="100"
+ android:showAsAction="never"
+ android:title="@string/settings"/>
+
+</menu>
<!-- Global. -->
<string name="about">Über QuickDic…</string>
- <string name="preferences">Einstellungen…</string>
+ <string name="settings">Einstellungen…</string>
<string name="help">Hilfe</string>
<string name="reportIssue">Problem melden…</string>
<string name="fontWorkaround">Detected font problem (common on Sony Ericsson devices), switching back to default font.</string>
<!-- Global. -->
<string name="about">Acerca de QuickDic…</string>
- <string name="preferences">Preferencias…</string>
+ <string name="settings">Preferencias…</string>
<string name="help">Ayuda</string>
<string name="reportIssue">Informar de errores…</string>
<string name="fontWorkaround">Detectado problema con el tipo de letra (común en dispositivos Sony Ericsson), volviendo al tipo de letra predeterminado del sistema.</string>
<string name="titleWithVersion">QuickDic 4.0.1</string>
<!-- Global. -->
<string name="about">About QuickDic…</string>
-<string name="preferences">Preferenze…</string>
+<string name="settings">Preferenze…</string>
<string name="help">Guida</string>
<string name="reportIssue">Segnala problema…</string>
<string name="fontWorkaround">
--- /dev/null
+<resources>
+
+ <!--
+ Customize dimensions originally defined in res/values/dimens.xml (such as
+ screen margins) for sw600dp devices (e.g. 7" tablets) here.
+ -->
+
+</resources>
--- /dev/null
+<resources>
+
+ <!--
+ Customize dimensions originally defined in res/values/dimens.xml (such as
+ screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
+ -->
+ <dimen name="activity_horizontal_margin">128dp</dimen>
+
+</resources>
-<?xml version="1.0" encoding="utf-8"?>
<resources>
+ <!--
+ Base application theme for API 11+. This theme completely replaces
+ AppBaseTheme from res/values/styles.xml on API 11+ devices.
+ -->
+ <style name="AppBaseTheme" parent="android:Theme.Holo.Light">
+ <!-- API 11 theme customizations can go here. -->
+ </style>
+
<style name="BorderlessButton">
<item name="android:background">?android:attr/selectableItemBackground</item>
<item name="android:paddingLeft">4dip</item>
--- /dev/null
+<resources>
+
+ <!--
+ Base application theme for API 14+. This theme completely replaces
+ AppBaseTheme from BOTH res/values/styles.xml and
+ res/values-v11/styles.xml on API 14+ devices.
+ -->
+ <style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
+ <!-- API 14 theme customizations can go here. -->
+ </style>
+
+</resources>
-<?xml version="1.0" encoding="utf-8"?>
<resources>
- <dimen name="default_padding">8dp</dimen>
+ <!-- Default screen margins, per the Android Design guidelines. -->
+ <dimen name="activity_horizontal_margin">16dp</dimen>
+ <dimen name="activity_vertical_margin">16dp</dimen>
-</resources>
\ No newline at end of file
+</resources>
<!-- Global. -->
<string name="about">About QuickDic…</string>
- <string name="preferences">Preferences…</string>
+ <string name="settings">Settings…</string>
<string name="help">Help</string>
<string name="reportIssue">Report issue…</string>
<string name="fontWorkaround">Detected font problem (common on Sony Ericsson devices), switching back to default font.</string>
-<?xml version="1.0" encoding="utf-8"?>
<resources>
+ <!--
+ Base application theme, dependent on API level. This theme is replaced
+ by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
+ -->
+ <style name="AppBaseTheme" parent="android:Theme.Light">
+ <!--
+ Theme customizations available in newer API levels can go in
+ res/values-vXX/styles.xml, while customizations related to
+ backward-compatibility can go here.
+ -->
+ </style>
+
+ <!-- Application theme. -->
+ <style name="AppTheme" parent="AppBaseTheme">
+ <!-- All customizations that are NOT specific to a particular API-level can go here. -->
+ </style>
+
<style name="BorderlessButton">
<item name="android:background">@null</item>
<item name="android:paddingLeft">4dip</item>
<item name="android:paddingRight">4dip</item>
</style>
-</resources>
\ No newline at end of file
+</resources>
protected void onResume() {
Log.d(LOG, "onResume");
super.onResume();
- if (PreferenceActivity.prefsMightHaveChanged) {
- PreferenceActivity.prefsMightHaveChanged = false;
+ if (SettingsActivity.settingsMightHaveChanged) {
+ SettingsActivity.settingsMightHaveChanged = false;
finish();
startActivity(getIntent());
}
}
});
- final MenuItem preferences = menu.add(getString(R.string.preferences));
+ final MenuItem preferences = menu.add(getString(R.string.settings));
preferences.setOnMenuItemClickListener(new OnMenuItemClickListener() {
public boolean onMenuItemClick(final MenuItem menuItem) {
- PreferenceActivity.prefsMightHaveChanged = true;
- final Intent intent = new Intent().setClassName(PreferenceActivity.class
- .getPackage().getName(), PreferenceActivity.class.getCanonicalName());
+ SettingsActivity.settingsMightHaveChanged = true;
+ final Intent intent = new Intent().setClassName(SettingsActivity.class
+ .getPackage().getName(), SettingsActivity.class.getCanonicalName());
context.startActivity(intent);
return false;
}
protected void onResume() {
super.onResume();
- if (PreferenceActivity.prefsMightHaveChanged) {
- PreferenceActivity.prefsMightHaveChanged = false;
+ if (SettingsActivity.settingsMightHaveChanged) {
+ SettingsActivity.settingsMightHaveChanged = false;
finish();
startActivity(getIntent());
}
import android.os.Bundle;
-public class PreferenceActivity extends android.preference.PreferenceActivity {
+public class SettingsActivity extends android.preference.PreferenceActivity {
- static boolean prefsMightHaveChanged = false;
+ static boolean settingsMightHaveChanged = false;
@SuppressWarnings("deprecation")
@Override
setTheme(((DictionaryApplication)getApplication()).getSelectedTheme().themeId);
super.onCreate(savedInstanceState);
- addPreferencesFromResource(R.xml.preferences);
+ addPreferencesFromResource(R.xml.settings);
}
@Override
public void onContentChanged() {
super.onContentChanged();
}
-
}