Browse Source

添加资源文件

liuyuqi-dellpc 5 years ago
parent
commit
3c791b3328
67 changed files with 497 additions and 47 deletions
  1. 58 14
      AndroidManifest.xml
  2. BIN
      res/drawable-hdpi-v14/twofortyfouram_locale_ic_menu_dontsave.png
  3. BIN
      res/drawable-hdpi-v14/twofortyfouram_locale_ic_menu_help.png
  4. BIN
      res/drawable-hdpi-v14/twofortyfouram_locale_ic_menu_save.png
  5. BIN
      res/drawable-hdpi-v4/icon.png
  6. BIN
      res/drawable-hdpi-v4/icon_pressed.png
  7. BIN
      res/drawable-hdpi-v4/notification.png
  8. BIN
      res/drawable-ldpi-v14/twofortyfouram_locale_ic_menu_dontsave.png
  9. BIN
      res/drawable-ldpi-v14/twofortyfouram_locale_ic_menu_help.png
  10. BIN
      res/drawable-ldpi-v14/twofortyfouram_locale_ic_menu_save.png
  11. BIN
      res/drawable-ldpi-v4/icon.png
  12. BIN
      res/drawable-ldpi-v4/icon_pressed.png
  13. BIN
      res/drawable-ldpi-v4/notification.png
  14. BIN
      res/drawable-mdpi-v14/twofortyfouram_locale_ic_menu_dontsave.png
  15. BIN
      res/drawable-mdpi-v14/twofortyfouram_locale_ic_menu_help.png
  16. BIN
      res/drawable-mdpi-v14/twofortyfouram_locale_ic_menu_save.png
  17. BIN
      res/drawable-mdpi-v4/icon.png
  18. BIN
      res/drawable-mdpi-v4/icon_pressed.png
  19. BIN
      res/drawable-mdpi-v4/notification.png
  20. BIN
      res/drawable-xhdpi-v14/twofortyfouram_locale_ic_menu_dontsave.png
  21. BIN
      res/drawable-xhdpi-v14/twofortyfouram_locale_ic_menu_help.png
  22. BIN
      res/drawable-xhdpi-v14/twofortyfouram_locale_ic_menu_save.png
  23. BIN
      res/drawable-xhdpi-v4/icon.png
  24. BIN
      res/drawable-xhdpi-v4/icon_pressed.png
  25. BIN
      res/drawable-xhdpi-v4/notification.png
  26. BIN
      res/drawable-xxhdpi-v4/icon.png
  27. BIN
      res/drawable-xxhdpi-v4/icon_pressed.png
  28. BIN
      res/drawable-xxxhdpi-v4/icon.png
  29. BIN
      res/drawable-xxxhdpi-v4/icon_pressed.png
  30. 7 0
      res/drawable/widget_icon.xml
  31. 2 2
      res/layout/activity_settings.xml
  32. 80 0
      res/layout/brightness_selector.xml
  33. 33 0
      res/layout/configure_widget.xml
  34. 33 0
      res/layout/locale_edit.xml
  35. 22 0
      res/layout/preferences.xml
  36. 28 0
      res/layout/toggle.xml
  37. 12 0
      res/layout/transient_notification.xml
  38. 8 0
      res/values-cs/strings.xml
  39. 8 0
      res/values-de/strings.xml
  40. 8 0
      res/values-es/strings.xml
  41. 8 0
      res/values-fr/strings.xml
  42. 4 0
      res/values-hdpi-v4/integers.xml
  43. 8 0
      res/values-it/strings.xml
  44. 8 0
      res/values-ja/strings.xml
  45. 8 0
      res/values-ko/strings.xml
  46. 4 0
      res/values-ldpi-v4/integers.xml
  47. 4 0
      res/values-mdpi-v4/integers.xml
  48. 8 0
      res/values-nb/strings.xml
  49. 8 0
      res/values-nl/strings.xml
  50. 8 0
      res/values-pt-rBR/strings.xml
  51. 8 0
      res/values-ru/strings.xml
  52. 8 0
      res/values-sv/strings.xml
  53. 6 0
      res/values-v11/styles.xml
  54. 6 0
      res/values-v14/styles.xml
  55. 9 0
      res/values-v9/styles.xml
  56. 8 0
      res/values-vi/strings.xml
  57. 29 6
      res/values/strings.xml
  58. 4 18
      res/values/styles.xml
  59. 7 0
      res/xml/toggle_widget.xml
  60. 0 5
      src/me/yoqi/screenfilter/LocaleReceiver.java
  61. 2 0
      src/me/yoqi/screenfilter/ScreenFilterActivity.java
  62. 15 0
      src/me/yoqi/screenfilter/receiver/LocaleReceiver.java
  63. 5 0
      src/me/yoqi/screenfilter/receiver/ScreenFilterWidget.java
  64. 1 1
      src/me/yoqi/screenfilter/service/FilterService.java
  65. 12 0
      src/me/yoqi/screenfilter/ui/LocaleEditActivity.java
  66. 7 0
      src/me/yoqi/screenfilter/ui/ScreenFilterWidgetConfigure.java
  67. 3 1
      src/me/yoqi/screenfilter/ui/SettingsActivity.java

+ 58 - 14
AndroidManifest.xml

@@ -3,34 +3,78 @@
     package="me.yoqi.screenfilter"
     android:versionCode="1"
     android:versionName="1.0" >
-    
+
     <uses-sdk
         android:minSdkVersion="8"
         android:targetSdkVersion="21" />
-	<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
 
+    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
 
     <application
         android:allowBackup="true"
-        android:icon="@drawable/ic_launcher"
-        android:label="@string/app_name"
-        android:theme="@style/AppTheme" >
-        <activity android:name=".ScreenFilterActivity">
+        android:icon="@drawable/icon"
+        android:label="@string/app_name">
+        <activity
+            android:name="me.yoqi.screenfilter.ScreenFilterActivity"
+            android:configChanges="keyboardHidden|orientation"
+            android:excludeFromRecents="true"
+            android:exported="true"
+            android:label="@string/app_name"
+            android:launchMode="singleTop"
+            android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" >
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity>
+        <activity
+            android:name="me.yoqi.screenfilter.ui.SettingsActivity"
+            android:configChanges="keyboardHidden|orientation"
+            android:excludeFromRecents="true"
+            android:exported="true"
+            android:label="@string/app_name"
+            android:launchMode="singleTop" />
+        <activity
+            android:name="me.yoqi.screenfilter.ui.ScreenFilterWidgetConfigure"
+            android:configChanges="keyboardHidden|orientation"
+            android:excludeFromRecents="true"
+            android:label="@string/app_name" >
             <intent-filter>
-                <action android:name="android.intent.action.MAIN"/>
-                <category android:name="android.intent.category.LAUNCHER"/>
+                <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
             </intent-filter>
         </activity>
         <activity
-            android:name=".SettingsActivity"
-            android:label="@string/title_activity_settings" >
+            android:name="me.yoqi.screenfilter.ui.LocaleEditActivity"
+            android:configChanges="keyboardHidden|orientation"
+            android:excludeFromRecents="true"
+            android:exported="true"
+            android:icon="@drawable/icon"
+            android:label="@string/app_name" >
+            <intent-filter>
+                <action android:name="com.twofortyfouram.locale.intent.action.EDIT_SETTING" />
+            </intent-filter>
         </activity>
-        
-        <receiver android:name=".LocaleReceiver">
+
+        <receiver android:name="me.yoqi.screenfilter.receiver.LocaleReceiver" >
+            <intent-filter>
+                <action android:name="com.twofortyfouram.locale.intent.action.FIRE_SETTING" />
+            </intent-filter>
+        </receiver>
+        <receiver android:name="me.yoqi.screenfilter.receiver.ScreenFilterWidget" >
             <intent-filter>
-                <action android:name="com.twofortyfouram.locale.intent.action.FIRE_SETTING"/>
+                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
+                <action android:name="com.haxor.ScreenFilter.ACTION_FILTER_TOGGLED" />
             </intent-filter>
+
+            <meta-data
+                android:name="android.appwidget.provider"
+                android:resource="@xml/toggle_widget" />
         </receiver>
+
+        <service
+            android:name="me.yoqi.screenfilter.service.FilterService"
+            android:label="@string/app_name" />
     </application>
 
-</manifest>
+</manifest>

BIN
res/drawable-hdpi-v14/twofortyfouram_locale_ic_menu_dontsave.png


BIN
res/drawable-hdpi-v14/twofortyfouram_locale_ic_menu_help.png


BIN
res/drawable-hdpi-v14/twofortyfouram_locale_ic_menu_save.png


BIN
res/drawable-hdpi-v4/icon.png


BIN
res/drawable-hdpi-v4/icon_pressed.png


BIN
res/drawable-hdpi-v4/notification.png


BIN
res/drawable-ldpi-v14/twofortyfouram_locale_ic_menu_dontsave.png


BIN
res/drawable-ldpi-v14/twofortyfouram_locale_ic_menu_help.png


BIN
res/drawable-ldpi-v14/twofortyfouram_locale_ic_menu_save.png


BIN
res/drawable-ldpi-v4/icon.png


BIN
res/drawable-ldpi-v4/icon_pressed.png


BIN
res/drawable-ldpi-v4/notification.png


BIN
res/drawable-mdpi-v14/twofortyfouram_locale_ic_menu_dontsave.png


BIN
res/drawable-mdpi-v14/twofortyfouram_locale_ic_menu_help.png


BIN
res/drawable-mdpi-v14/twofortyfouram_locale_ic_menu_save.png


BIN
res/drawable-mdpi-v4/icon.png


BIN
res/drawable-mdpi-v4/icon_pressed.png


BIN
res/drawable-mdpi-v4/notification.png


BIN
res/drawable-xhdpi-v14/twofortyfouram_locale_ic_menu_dontsave.png


BIN
res/drawable-xhdpi-v14/twofortyfouram_locale_ic_menu_help.png


BIN
res/drawable-xhdpi-v14/twofortyfouram_locale_ic_menu_save.png


BIN
res/drawable-xhdpi-v4/icon.png


BIN
res/drawable-xhdpi-v4/icon_pressed.png


BIN
res/drawable-xhdpi-v4/notification.png


BIN
res/drawable-xxhdpi-v4/icon.png


BIN
res/drawable-xxhdpi-v4/icon_pressed.png


BIN
res/drawable-xxxhdpi-v4/icon.png


BIN
res/drawable-xxxhdpi-v4/icon_pressed.png


+ 7 - 0
res/drawable/widget_icon.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector
+  xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:state_pressed="true" android:drawable="@drawable/icon_pressed" />
+    <item android:state_focused="true" android:state_pressed="false" android:drawable="@drawable/icon" />
+    <item android:drawable="@drawable/icon" />
+</selector>

+ 2 - 2
res/layout/activity_settings.xml

@@ -6,11 +6,11 @@
     android:paddingLeft="@dimen/activity_horizontal_margin"
     android:paddingRight="@dimen/activity_horizontal_margin"
     android:paddingTop="@dimen/activity_vertical_margin"
-    tools:context="me.yoqi.screenfilter.SettingsActivity" >
+    tools:context="me.yoqi.screenfilter.ui.SettingsActivity" >
 
     <TextView
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:text="@string/hello_world" />
+        android:text="@string/app_name" />
 
 </RelativeLayout>

+ 80 - 0
res/layout/brightness_selector.xml

@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/PreferencesLayout"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent" >
+
+    <LinearLayout
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:orientation="vertical" >
+
+        <TextView
+            android:id="@+id/TextView01"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_marginLeft="8.0dip"
+            android:layout_marginRight="8.0dip"
+            android:layout_marginTop="8.0dip"
+            android:editable="false"
+            android:text="@string/brightness_desc"
+            android:textSize="20.0dip" />
+
+        <TableLayout
+            android:id="@+id/SliderTable"
+            android:layout_width="fill_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginLeft="10.0dip"
+            android:layout_marginRight="10.0dip"
+            android:layout_marginTop="8.0dip"
+            android:stretchColumns="1" >
+
+            <TableRow android:gravity="center_vertical" >
+
+                <Button
+                    android:id="@+id/BrightnessEdit"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:paddingLeft="8.0dip"
+                    android:paddingRight="8.0dip"
+                    android:text="@string/edit_button"
+                    android:textSize="14.0dip" />
+
+                <SeekBar
+                    android:id="@+id/BrightnessSeekBar"
+                    android:layout_marginLeft="8.0dip"
+                    android:layout_marginRight="8.0dip" />
+
+                <TextView
+                    android:id="@+id/BrightnessPercentage"
+                    android:gravity="right"
+                    android:text="100.0%"
+                    android:textSize="18.0dip" />
+            </TableRow>
+        </TableLayout>
+
+        <TextView
+            android:id="@+id/ExampleText"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_marginLeft="8.0dip"
+            android:layout_marginRight="8.0dip"
+            android:layout_marginTop="12.0dip"
+            android:editable="false"
+            android:lineSpacingExtra="6.0dip"
+            android:text="@string/test_text"
+            android:textColor="#ffffffff"
+            android:textSize="18.0dip" />
+
+        <CheckBox
+            android:id="@+id/SoftKeysEnabled"
+            android:layout_width="fill_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginTop="8.0dip"
+            android:checked="true"
+            android:gravity="center_vertical"
+            android:text="@string/softkey_option"
+            android:textSize="18.0dip" />
+    </LinearLayout>
+
+</ScrollView>

+ 33 - 0
res/layout/configure_widget.xml

@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent"
+    android:orientation="vertical" >
+
+    <com.haxor.BrightnessSelector
+        android:id="@+id/PreferencesBrightnessSelector"
+        android:layout_width="fill_parent"
+        android:layout_height="wrap_content"
+        android:layout_weight="20.0" />
+
+    <TableLayout
+        android:layout_width="fill_parent"
+        android:layout_height="wrap_content"
+        android:layout_weight="0.0"
+        android:stretchColumns="*" >
+
+        <TableRow>
+
+            <Button
+                android:id="@+id/DontSaveSettingButton"
+                android:text="@string/dont_save_setting"
+                android:textSize="18.0dip" />
+
+            <Button
+                android:id="@+id/SaveSettingButton"
+                android:text="@string/save_setting"
+                android:textSize="18.0dip" />
+        </TableRow>
+    </TableLayout>
+
+</LinearLayout>

+ 33 - 0
res/layout/locale_edit.xml

@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent"
+    android:orientation="vertical" >
+
+    <com.haxor.BrightnessSelector
+        android:id="@+id/PreferencesBrightnessSelector"
+        android:layout_width="fill_parent"
+        android:layout_height="wrap_content"
+        android:layout_weight="20.0" />
+
+    <TableLayout
+        android:layout_width="fill_parent"
+        android:layout_height="wrap_content"
+        android:layout_weight="0.0"
+        android:stretchColumns="*" >
+
+        <TableRow>
+
+            <Button
+                android:id="@+id/DontSaveSettingButton"
+                android:text="@string/dont_save_setting"
+                android:textSize="18.0dip" />
+
+            <Button
+                android:id="@+id/SaveSettingButton"
+                android:text="@string/save_setting"
+                android:textSize="18.0dip" />
+        </TableRow>
+    </TableLayout>
+
+</LinearLayout>

+ 22 - 0
res/layout/preferences.xml

@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent"
+    android:orientation="vertical" >
+
+    <Button
+        android:id="@+id/ReenableButton"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_gravity="center"
+        android:layout_marginBottom="8.0dip"
+        android:layout_marginTop="4.0dip"
+        android:text="@string/reenable_button"
+        android:textSize="18.0dip" />
+
+    <com.haxor.BrightnessSelector
+        android:id="@+id/PreferencesBrightnessSelector"
+        android:layout_width="fill_parent"
+        android:layout_height="wrap_content" />
+
+</LinearLayout>

+ 28 - 0
res/layout/toggle.xml

@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent" >
+
+    <ImageButton
+        android:id="@+id/ToggleImage"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_centerInParent="true"
+        android:background="@drawable/widget_icon"
+        android:padding="0.0dip"
+        android:scaleType="fitCenter" />
+
+    <TextView
+        android:id="@+id/WidgetToggleText"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_centerInParent="true"
+        android:shadowColor="#ff333333"
+        android:shadowRadius="4.0"
+        android:singleLine="true"
+        android:text="@string/widget_loading"
+        android:textColor="#ffffffff"
+        android:textSize="16.0dip"
+        android:textStyle="bold" />
+
+</RelativeLayout>

+ 12 - 0
res/layout/transient_notification.xml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent"
+    android:orientation="vertical" >
+
+    <TextView
+        android:id="@android:id/message"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content" />
+
+</LinearLayout>

+ 8 - 0
res/values-cs/strings.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="twofortyfouram_locale_breadcrumb_format">%1$s%2$s%3$s</string>
+    <string name="twofortyfouram_locale_breadcrumb_separator">" > "</string>
+    <string name="twofortyfouram_locale_menu_dontsave">Zrušit</string>
+    <string name="twofortyfouram_locale_menu_help">Nápověda</string>
+    <string name="twofortyfouram_locale_menu_save">Hotovo</string>
+</resources>

+ 8 - 0
res/values-de/strings.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="twofortyfouram_locale_breadcrumb_format">%1$s%2$s%3$s</string>
+    <string name="twofortyfouram_locale_breadcrumb_separator">" > "</string>
+    <string name="twofortyfouram_locale_menu_dontsave">Abbrechen</string>
+    <string name="twofortyfouram_locale_menu_help">Hilfe</string>
+    <string name="twofortyfouram_locale_menu_save">Fertig</string>
+</resources>

+ 8 - 0
res/values-es/strings.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="twofortyfouram_locale_breadcrumb_format">%1$s%2$s%3$s</string>
+    <string name="twofortyfouram_locale_breadcrumb_separator">" > "</string>
+    <string name="twofortyfouram_locale_menu_dontsave">Cancelar</string>
+    <string name="twofortyfouram_locale_menu_help">Ayuda</string>
+    <string name="twofortyfouram_locale_menu_save">Listo</string>
+</resources>

+ 8 - 0
res/values-fr/strings.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="twofortyfouram_locale_breadcrumb_format">%1$s%2$s%3$s</string>
+    <string name="twofortyfouram_locale_breadcrumb_separator">" > "</string>
+    <string name="twofortyfouram_locale_menu_dontsave">Annuler</string>
+    <string name="twofortyfouram_locale_menu_help">Aide</string>
+    <string name="twofortyfouram_locale_menu_save">OK</string>
+</resources>

+ 4 - 0
res/values-hdpi-v4/integers.xml

@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <integer name="twofortyfouram_locale_maximum_blurb_length">60</integer>
+</resources>

+ 8 - 0
res/values-it/strings.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="twofortyfouram_locale_breadcrumb_format">%1$s%2$s%3$s</string>
+    <string name="twofortyfouram_locale_breadcrumb_separator">" > "</string>
+    <string name="twofortyfouram_locale_menu_dontsave">Annulla</string>
+    <string name="twofortyfouram_locale_menu_help">Aiuto</string>
+    <string name="twofortyfouram_locale_menu_save">Fine</string>
+</resources>

+ 8 - 0
res/values-ja/strings.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="twofortyfouram_locale_breadcrumb_format">%1$s%2$s%3$s</string>
+    <string name="twofortyfouram_locale_breadcrumb_separator">" > "</string>
+    <string name="twofortyfouram_locale_menu_dontsave">キャンセル</string>
+    <string name="twofortyfouram_locale_menu_help">ヘルプ</string>
+    <string name="twofortyfouram_locale_menu_save">完了</string>
+</resources>

+ 8 - 0
res/values-ko/strings.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="twofortyfouram_locale_breadcrumb_format">%1$s%2$s%3$s</string>
+    <string name="twofortyfouram_locale_breadcrumb_separator">" > "</string>
+    <string name="twofortyfouram_locale_menu_dontsave">취소</string>
+    <string name="twofortyfouram_locale_menu_help">도움말</string>
+    <string name="twofortyfouram_locale_menu_save">완료</string>
+</resources>

+ 4 - 0
res/values-ldpi-v4/integers.xml

@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <integer name="twofortyfouram_locale_maximum_blurb_length">45</integer>
+</resources>

+ 4 - 0
res/values-mdpi-v4/integers.xml

@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <integer name="twofortyfouram_locale_maximum_blurb_length">50</integer>
+</resources>

+ 8 - 0
res/values-nb/strings.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="twofortyfouram_locale_breadcrumb_format">%1$s%2$s%3$s</string>
+    <string name="twofortyfouram_locale_breadcrumb_separator">" > "</string>
+    <string name="twofortyfouram_locale_menu_dontsave">Avbryt</string>
+    <string name="twofortyfouram_locale_menu_help">Hjelp</string>
+    <string name="twofortyfouram_locale_menu_save">Ferdig</string>
+</resources>

+ 8 - 0
res/values-nl/strings.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="twofortyfouram_locale_breadcrumb_format">%1$s%2$s%3$s</string>
+    <string name="twofortyfouram_locale_breadcrumb_separator">" > "</string>
+    <string name="twofortyfouram_locale_menu_dontsave">Annuleren</string>
+    <string name="twofortyfouram_locale_menu_help">Help</string>
+    <string name="twofortyfouram_locale_menu_save">Gereed</string>
+</resources>

+ 8 - 0
res/values-pt-rBR/strings.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="twofortyfouram_locale_breadcrumb_format">%1$s%2$s%3$s</string>
+    <string name="twofortyfouram_locale_breadcrumb_separator">" > "</string>
+    <string name="twofortyfouram_locale_menu_dontsave">Cancelar</string>
+    <string name="twofortyfouram_locale_menu_help">Ajuda</string>
+    <string name="twofortyfouram_locale_menu_save">Concluído</string>
+</resources>

+ 8 - 0
res/values-ru/strings.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="twofortyfouram_locale_breadcrumb_format">%1$s%2$s%3$s</string>
+    <string name="twofortyfouram_locale_breadcrumb_separator">" > "</string>
+    <string name="twofortyfouram_locale_menu_dontsave">Отмена</string>
+    <string name="twofortyfouram_locale_menu_help">Помощь</string>
+    <string name="twofortyfouram_locale_menu_save">Готово</string>
+</resources>

+ 8 - 0
res/values-sv/strings.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="twofortyfouram_locale_breadcrumb_format">%1$s%2$s%3$s</string>
+    <string name="twofortyfouram_locale_breadcrumb_separator">" > "</string>
+    <string name="twofortyfouram_locale_menu_dontsave">Avbryt</string>
+    <string name="twofortyfouram_locale_menu_help">Hjälp</string>
+    <string name="twofortyfouram_locale_menu_save">Klar</string>
+</resources>

+ 6 - 0
res/values-v11/styles.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <style name="Theme.Locale.Dark" parent="@android:style/Theme.Holo" />
+    <style name="Theme.Locale.Light" parent="@android:style/Theme.Holo.Light" />
+    <style name="Theme.Locale.Dialog" parent="@android:style/Theme.Holo.Dialog" />
+</resources>

+ 6 - 0
res/values-v14/styles.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <style name="Theme.Locale.Dark" parent="@android:style/Theme.DeviceDefault" />
+    <style name="Theme.Locale.Light" parent="@android:style/Theme.DeviceDefault.Light" />
+    <style name="Theme.Locale.Dialog" parent="@android:style/Theme.DeviceDefault.Dialog" />
+</resources>

+ 9 - 0
res/values-v9/styles.xml

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <style name="Theme.Locale.Dark" parent="@android:style/Theme">
+        <item name="android:listViewStyle">@style/MotorolaListViewHackStyle</item>
+    </style>
+    <style name="MotorolaListViewHackStyle" parent="@android:style/Widget.ListView">
+        <item name="android:overScrollFooter">@null</item>
+    </style>
+</resources>

+ 8 - 0
res/values-vi/strings.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="twofortyfouram_locale_breadcrumb_format">%1$s%2$s%3$s</string>
+    <string name="twofortyfouram_locale_breadcrumb_separator">" > "</string>
+    <string name="twofortyfouram_locale_menu_dontsave">Hủy</string>
+    <string name="twofortyfouram_locale_menu_help">Giúp đỡ</string>
+    <string name="twofortyfouram_locale_menu_save">Xong</string>
+</resources>

+ 29 - 6
res/values/strings.xml

@@ -1,9 +1,32 @@
 <?xml version="1.0" encoding="utf-8"?>
 <resources>
-
-    <string name="app_name">ScreenFilter</string>
-    <string name="title_activity_settings">SettingsActivity</string>
-    <string name="hello_world">Hello world!</string>
-    <string name="action_settings">Settings</string>
-
+    <string name="twofortyfouram_locale_breadcrumb_format">%1$s%2$s%3$s</string>
+    <string name="twofortyfouram_locale_breadcrumb_separator">" > "</string>
+    <string name="twofortyfouram_locale_menu_dontsave">Cancel</string>
+    <string name="twofortyfouram_locale_menu_help">Help</string>
+    <string name="twofortyfouram_locale_menu_save">Done</string>
+    <string name="app_name">Screen Filter</string>
+    <string name="filter_enabled">Screen Filter enabled: %.1f%%</string>
+    <string name="filter_disabled">Screen Filter disabled</string>
+    <string name="test_text">This test text usually displays in 100% white. This shows you how the filter parameters you have specified will look once you have activated the Screen Filter app.</string>
+    <string name="brightness_desc">Adjust filter brightness</string>
+    <string name="enabled">Enabled</string>
+    <string name="widget_loading">\?</string>
+    <string name="click_to_adjust">Select to disable and adjust: %.1f%%</string>
+    <string name="click_to_disable">Select to disable: %.1f%%</string>
+    <string name="reenable_button">Enable Screen Filter</string>
+    <string name="softkey_option">Enable soft-key backlight</string>
+    <string name="notification_option">Show notification icon</string>
+    <string name="save_setting">Save</string>
+    <string name="dont_save_setting">Cancel</string>
+    <string name="locale_blurb">%.1f%%</string>
+    <string name="warning_title">Screen Filter Warning</string>
+    <string name="warning_message">Your new brightness setting of %.1f%% may be too dark to see. Please confirm or it will be reset in 10 seconds.</string>
+    <string name="locale_softkeys_on_blurb">Soft-keys On</string>
+    <string name="locale_softkeys_off_blurb">Soft-keys Off</string>
+    <string name="startup_notification">Starting up</string>
+    <string name="widget_title">%.1f%%</string>
+    <string name="edit_button">Edit</string>
+    <string name="edit_brightness">Set Brightness</string>
+    <string name="edit_brightness_message" formatted="false">Input a brightness percentage integer between 0% and 100%.</string>
 </resources>

+ 4 - 18
res/values/styles.xml

@@ -1,20 +1,6 @@
+<?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="Theme.Locale.Dark" parent="@android:style/Theme" />
+    <style name="Theme.Locale.Light" parent="@android:style/Theme.Light" />
+    <style name="Theme.Locale.Dialog" parent="@android:style/Theme.Translucent.NoTitleBar" />
 </resources>

+ 7 - 0
res/xml/toggle_widget.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
+    android:configure="me.yoqi.screenfilter.ui.ScreenFilterWidgetConfigure"
+    android:initialLayout="@layout/toggle"
+    android:minHeight="48.0dip"
+    android:minWidth="48.0dip"
+    android:updatePeriodMillis="0" />

+ 0 - 5
src/me/yoqi/screenfilter/LocaleReceiver.java

@@ -1,5 +0,0 @@
-package me.yoqi.screenfilter;
-
-public class LocaleReceiver {
-
-}

+ 2 - 0
src/me/yoqi/screenfilter/ScreenFilterActivity.java

@@ -4,6 +4,8 @@ import android.app.Activity;
 import android.os.Bundle;
 import android.view.View;
 import android.view.WindowManager;
+import me.yoqi.screenfilter.R;
+import me.yoqi.screenfilter.R.layout;
 
 public class ScreenFilterActivity extends Activity {
 

+ 15 - 0
src/me/yoqi/screenfilter/receiver/LocaleReceiver.java

@@ -0,0 +1,15 @@
+package me.yoqi.screenfilter.receiver;
+
+import android.app.Service;
+import android.content.Intent;
+import android.os.IBinder;
+
+public class LocaleReceiver extends Service {
+
+	@Override
+	public IBinder onBind(Intent intent) {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+}

+ 5 - 0
src/me/yoqi/screenfilter/receiver/ScreenFilterWidget.java

@@ -0,0 +1,5 @@
+package me.yoqi.screenfilter.receiver;
+
+public class ScreenFilterWidget {
+
+}

+ 1 - 1
src/me/yoqi/screenfilter/FilterService.java → src/me/yoqi/screenfilter/service/FilterService.java

@@ -1,4 +1,4 @@
-package me.yoqi.screenfilter;
+package me.yoqi.screenfilter.service;
 
 import android.app.Notification;
 import android.app.NotificationManager;

+ 12 - 0
src/me/yoqi/screenfilter/ui/LocaleEditActivity.java

@@ -0,0 +1,12 @@
+package me.yoqi.screenfilter.ui;
+
+import android.app.Activity;
+import android.os.Bundle;
+
+public class LocaleEditActivity extends Activity {
+	@Override
+	protected void onCreate(Bundle savedInstanceState) {
+		// TODO Auto-generated method stub
+		super.onCreate(savedInstanceState);
+	}
+}

+ 7 - 0
src/me/yoqi/screenfilter/ui/ScreenFilterWidgetConfigure.java

@@ -0,0 +1,7 @@
+package me.yoqi.screenfilter.ui;
+
+import android.app.Activity;
+
+public class ScreenFilterWidgetConfigure extends Activity {
+
+}

+ 3 - 1
src/me/yoqi/screenfilter/SettingsActivity.java → src/me/yoqi/screenfilter/ui/SettingsActivity.java

@@ -1,7 +1,9 @@
-package me.yoqi.screenfilter;
+package me.yoqi.screenfilter.ui;
 
 import android.app.Activity;
 import android.os.Bundle;
+import me.yoqi.screenfilter.R;
+import me.yoqi.screenfilter.R.layout;
 
 public class SettingsActivity extends Activity {