aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Cruz <mazda@UnicornBox.(none)>2014-03-04 14:55:21 -0600
committerLorDClockaN <davor@losinj.com>2014-03-16 15:50:57 +0100
commit19f3e63ada4e3fd8fc06485d81c803e47eb60ff2 (patch)
tree70ea290da65a222f9bfdd69d4fcc61d267f80d8c
parentb5787669c7905e9d2c04f0ec89b72ae8a0e017c5 (diff)
Added in necessary strings, Android.mk to compile
-rw-r--r--Android.mk21
-rw-r--r--res/layout/backup_dialog_layout.xml16
-rw-r--r--res/layout/backup_list.xml6
-rw-r--r--res/layout/backup_list_item.xml4
-rw-r--r--res/layout/boot_dialog_layout.xml4
-rw-r--r--res/layout/dragsort_list.xml6
-rw-r--r--res/layout/dragsort_list_item.xml6
-rw-r--r--res/layout/empty_test.xml4
-rw-r--r--res/layout/file_list_item.xml4
-rw-r--r--res/layout/layout_list.xml6
-rw-r--r--res/layout/layout_list_file.xml4
-rw-r--r--res/layout/list_item.xml6
-rw-r--r--res/layout/lmk_footer.xml4
-rw-r--r--res/layout/log_dialog.xml4
-rw-r--r--res/layout/menu_header.xml4
-rw-r--r--res/layout/menu_list_item.xml6
-rw-r--r--res/layout/menu_main_list_item.xml4
-rw-r--r--res/layout/preference_widget_seekbar.xml8
-rw-r--r--res/layout/wallpaper_effects.xml6
-rw-r--r--res/values/strings.xml27
20 files changed, 98 insertions, 52 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..6e96e8e
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,21 @@
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4
+
+LOCAL_SRC_FILES := $(call all-java-files-under, src)
+
+LOCAL_PACKAGE_NAME := KernelTweaker
+
+
+include $(BUILD_PACKAGE)
+##################################################
+include $(CLEAR_VARS)
+
+
+include $(BUILD_MULTI_PREBUILT)
+
+# Use the folloing include to make our test apk.
+include $(call all-makefiles-under,$(LOCAL_PATH))
diff --git a/res/layout/backup_dialog_layout.xml b/res/layout/backup_dialog_layout.xml
index ef82fe3..b0cc456 100644
--- a/res/layout/backup_dialog_layout.xml
+++ b/res/layout/backup_dialog_layout.xml
@@ -14,42 +14,42 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-condensed"
- android:text="System" />
+ android:text="@string/system" />
<CheckBox
android:id="@+id/cb_data"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-condensed"
- android:text="Data" />
+ android:text="@string/data" />
<CheckBox
android:id="@+id/cb_secure"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-condensed"
- android:text="Android Secure" />
+ android:text="@string/android_secure" />
<CheckBox
android:id="@+id/cb_boot"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-condensed"
- android:text="Boot" />
+ android:text="@string/boot" />
<CheckBox
android:id="@+id/cb_cache"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-condensed"
- android:text="Cache" />
+ android:text="@string/cache" />
<CheckBox
android:id="@+id/cb_recovery"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-condensed"
- android:text="Recovery" />
+ android:text="@string/recovery" />
<CheckBox
android:id="@+id/cb_compression"
@@ -72,7 +72,7 @@
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:fontFamily="sans-serif-condensed"
- android:text="Backup Name"
+ android:text="@string/backup_name"
android:textAppearance="?android:attr/textAppearanceMedium" />
<EditText
@@ -88,4 +88,4 @@
</LinearLayout>
-</LinearLayout> \ No newline at end of file
+</LinearLayout>
diff --git a/res/layout/backup_list.xml b/res/layout/backup_list.xml
index f15aa30..20a727d 100644
--- a/res/layout/backup_list.xml
+++ b/res/layout/backup_list.xml
@@ -162,7 +162,7 @@
android:fadingEdge="horizontal"
android:fontFamily="sans-serif-condensed"
android:singleLine="true"
- android:text="No Backups found"
+ android:text="@string/no_backups_found"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
@@ -173,10 +173,10 @@
android:layout_marginRight="3dp"
android:fontFamily="sans-serif-thin"
android:maxLines="4"
- android:text="The backups you make will be displayed here "
+ android:text="@string/backups_display"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorSecondary" />
</LinearLayout>
</LinearLayout>
-</LinearLayout> \ No newline at end of file
+</LinearLayout>
diff --git a/res/layout/backup_list_item.xml b/res/layout/backup_list_item.xml
index 2ae3995..7664301 100644
--- a/res/layout/backup_list_item.xml
+++ b/res/layout/backup_list_item.xml
@@ -18,7 +18,7 @@
android:ellipsize="marquee"
android:fontFamily="sans-serif-condensed"
android:layout_gravity="center"
- android:text="Medium Text"
+ android:text="@string/medium_text"
android:textAppearance="?android:attr/textAppearanceMedium" />
-</LinearLayout> \ No newline at end of file
+</LinearLayout>
diff --git a/res/layout/boot_dialog_layout.xml b/res/layout/boot_dialog_layout.xml
index 483787b..01bf10f 100644
--- a/res/layout/boot_dialog_layout.xml
+++ b/res/layout/boot_dialog_layout.xml
@@ -20,6 +20,6 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_margin="20dp"
- android:text="Set on Boot" />
+ android:text="@string/set_on_boot" />
-</LinearLayout> \ No newline at end of file
+</LinearLayout>
diff --git a/res/layout/dragsort_list.xml b/res/layout/dragsort_list.xml
index 4077280..5a746e7 100644
--- a/res/layout/dragsort_list.xml
+++ b/res/layout/dragsort_list.xml
@@ -53,7 +53,7 @@
android:layout_weight="1"
android:fontFamily="sans-serif-condensed"
android:background="@drawable/bottombutton"
- android:text="Cancel" />
+ android:text="@string/cancel" />
<LinearLayout
android:layout_width="wrap_content"
@@ -75,7 +75,7 @@
android:background="@drawable/bottombutton"
android:fontFamily="sans-serif-condensed"
android:layout_weight="1"
- android:text="Reboot" />
+ android:text="@string/reboot" />
</LinearLayout>
-</LinearLayout> \ No newline at end of file
+</LinearLayout>
diff --git a/res/layout/dragsort_list_item.xml b/res/layout/dragsort_list_item.xml
index 39c1ed2..1a852e4 100644
--- a/res/layout/dragsort_list_item.xml
+++ b/res/layout/dragsort_list_item.xml
@@ -30,7 +30,7 @@
android:layout_margin="5dp"
android:ellipsize="marquee"
android:fontFamily="sans-serif-condensed"
- android:text="Medium Text"
+ android:text="@string/medium_text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
@@ -41,9 +41,9 @@
android:layout_margin="5dp"
android:ellipsize="marquee"
android:fontFamily="sans-serif-light"
- android:text="Medium Text"
+ android:text="@string/medium_text"
android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout>
</LinearLayout>
-</LinearLayout> \ No newline at end of file
+</LinearLayout>
diff --git a/res/layout/empty_test.xml b/res/layout/empty_test.xml
index 3032f89..15064c4 100644
--- a/res/layout/empty_test.xml
+++ b/res/layout/empty_test.xml
@@ -11,8 +11,8 @@
android:fontFamily="sans-serif-condensed"
android:gravity="center"
android:padding="10dp"
- android:text="Commands list is empty.\n Tap the plus button to add a command"
+ android:text="@string/command"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#ff4444" />
-</LinearLayout> \ No newline at end of file
+</LinearLayout>
diff --git a/res/layout/file_list_item.xml b/res/layout/file_list_item.xml
index 6c14afd..700e04d 100644
--- a/res/layout/file_list_item.xml
+++ b/res/layout/file_list_item.xml
@@ -24,7 +24,7 @@
android:ellipsize="end"
android:fontFamily="sans-serif-condensed"
android:maxLines="1"
- android:text="qqq"
+ android:text="@string/qqq"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
@@ -37,4 +37,4 @@
</LinearLayout>
-</LinearLayout> \ No newline at end of file
+</LinearLayout>
diff --git a/res/layout/layout_list.xml b/res/layout/layout_list.xml
index b266815..6234ee5 100644
--- a/res/layout/layout_list.xml
+++ b/res/layout/layout_list.xml
@@ -32,7 +32,7 @@
android:layout_weight="1"
android:background="@drawable/bottombutton"
android:fontFamily="sans-serif-condensed"
- android:text="Apply" />
+ android:text="@string/apply" />
<LinearLayout
android:layout_width="wrap_content"
@@ -54,8 +54,8 @@
android:layout_weight="1"
android:background="@drawable/bottombutton"
android:fontFamily="sans-serif-condensed"
- android:text="Cancel" />
+ android:text="@string/cancel" />
</LinearLayout>
-</RelativeLayout> \ No newline at end of file
+</RelativeLayout>
diff --git a/res/layout/layout_list_file.xml b/res/layout/layout_list_file.xml
index 4069f7f..9c1231a 100644
--- a/res/layout/layout_list_file.xml
+++ b/res/layout/layout_list_file.xml
@@ -16,8 +16,8 @@
android:layout_gravity="center"
android:fontFamily="sans-serif-condensed"
android:gravity="center"
- android:text="This folder is empty!"
+ android:text="@string/empty"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#ff4444" />
-</LinearLayout> \ No newline at end of file
+</LinearLayout>
diff --git a/res/layout/list_item.xml b/res/layout/list_item.xml
index e53254f..83db416 100644
--- a/res/layout/list_item.xml
+++ b/res/layout/list_item.xml
@@ -41,16 +41,16 @@
android:layout_marginRight ="3dp"
android:layout_marginTop="3dp"
android:fadingEdge="horizontal"
- android:text="title"
+ android:text="@string/title"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+android:id/text2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="summary"
+ android:text="@string/summary"
android:layout_weight="1"
android:fontFamily="sans-serif-light"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorSecondary" />
-</LinearLayout> \ No newline at end of file
+</LinearLayout>
diff --git a/res/layout/lmk_footer.xml b/res/layout/lmk_footer.xml
index d0e7c7c..00a91bb 100644
--- a/res/layout/lmk_footer.xml
+++ b/res/layout/lmk_footer.xml
@@ -7,8 +7,8 @@
<TextView
style="?android:attr/listSeparatorTextViewStyle"
android:fontFamily="sans-serif-condensed"
- android:text="PRESETS"
+ android:text="@string/presets"
android:layout_marginTop="15dp"
android:textColor="@android:color/holo_blue_dark" />
-</LinearLayout> \ No newline at end of file
+</LinearLayout>
diff --git a/res/layout/log_dialog.xml b/res/layout/log_dialog.xml
index 823f16d..25522dc 100644
--- a/res/layout/log_dialog.xml
+++ b/res/layout/log_dialog.xml
@@ -14,10 +14,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/white"
- android:text="TextView"
+ android:text="@string/textview"
android:textColor="@android:color/black"
android:typeface="monospace" />
</LinearLayout>
-</ScrollView> \ No newline at end of file
+</ScrollView>
diff --git a/res/layout/menu_header.xml b/res/layout/menu_header.xml
index b6161e2..390670c 100644
--- a/res/layout/menu_header.xml
+++ b/res/layout/menu_header.xml
@@ -8,7 +8,7 @@
style="?android:attr/listSeparatorTextViewStyle"
android:fontFamily="sans-serif-condensed"
android:layout_marginTop="10dp"
- android:text=""
+ android:text="@null"
android:textColor="@android:color/holo_blue_dark" />
-</LinearLayout> \ No newline at end of file
+</LinearLayout>
diff --git a/res/layout/menu_list_item.xml b/res/layout/menu_list_item.xml
index 1138fd6..1810508 100644
--- a/res/layout/menu_list_item.xml
+++ b/res/layout/menu_list_item.xml
@@ -13,7 +13,7 @@
android:layout_marginTop="3dp"
android:layout_marginRight="3dp"
android:fontFamily="sans-serif-condensed"
- android:text="title"
+ android:text="@string/title"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
@@ -23,8 +23,8 @@
android:layout_marginBottom="3dp"
android:layout_marginLeft="3dp"
android:fontFamily="sans-serif-light"
- android:text="summaryggg"
+ android:text="@string/summaryggg"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorSecondary" />
-</LinearLayout> \ No newline at end of file
+</LinearLayout>
diff --git a/res/layout/menu_main_list_item.xml b/res/layout/menu_main_list_item.xml
index 7782b26..eeff4d0 100644
--- a/res/layout/menu_main_list_item.xml
+++ b/res/layout/menu_main_list_item.xml
@@ -23,8 +23,8 @@
android:layout_marginRight="10dp"
android:layout_marginTop="10dp"
android:fontFamily="sans-serif-condensed"
- android:text="Medium Text"
+ android:text="@string/medium_text"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textStyle="bold" />
-</LinearLayout> \ No newline at end of file
+</LinearLayout>
diff --git a/res/layout/preference_widget_seekbar.xml b/res/layout/preference_widget_seekbar.xml
index e5c6968..02af7df 100644
--- a/res/layout/preference_widget_seekbar.xml
+++ b/res/layout/preference_widget_seekbar.xml
@@ -41,7 +41,7 @@
android:layout_marginTop="3dp"
android:fadingEdge="horizontal"
android:singleLine="true"
- android:text="title"
+ android:text="@string/title"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
@@ -53,7 +53,7 @@
android:layout_marginRight ="3dp"
android:layout_alignStart="@android:id/title"
android:maxLines="4"
- android:text="summary"
+ android:text="@string/summary"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorSecondary" />
@@ -76,9 +76,9 @@
android:layout_height="wrap_content"
android:fontFamily="sans-serif-thin"
android:layout_gravity="center"
- android:text="100 Mb" />
+ android:text="@string/onehundred_mb" />
</LinearLayout>
</LinearLayout>
-</LinearLayout> \ No newline at end of file
+</LinearLayout>
diff --git a/res/layout/wallpaper_effects.xml b/res/layout/wallpaper_effects.xml
index d512df5..8486eb0 100644
--- a/res/layout/wallpaper_effects.xml
+++ b/res/layout/wallpaper_effects.xml
@@ -37,7 +37,7 @@
style="?android:attr/listSeparatorTextViewStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:text="Blur Radius"
+ android:text="@string/blur_radius"
android:textAppearance="?android:attr/textAppearanceMedium" />
<SeekBar
@@ -65,7 +65,7 @@
android:layout_weight="1"
android:background="@drawable/bottombutton"
android:fontFamily="sans-serif-condensed"
- android:text="Apply" />
+ android:text="@string/apply" />
</LinearLayout>
-</LinearLayout> \ No newline at end of file
+</LinearLayout>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 912ba84..e55abdf 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -5,6 +5,31 @@
<string name="action_settings">Settings</string>
<string name="hello_world">Hello world!</string>
+ <!-- Custom Strings -->
+ <string name="blur_radius">Blur Radius</string>
+ <string name="apply">Apply</string>
+ <string name="title">Title</string>
+ <string name="summary">Summary</string>
+ <string name="onehundred_mb">100 Mb</string>
+ <string name="medium_text">Medium Text</string>
+ <string name="summaryggg">summaryggg</string>
+ <string name="empty">This folder is Empty!</string>
+ <string name="qqq">qqq</string>
+ <string name="set_on_boot">Set On Boot</string>
+ <string name="command">Commands list is empty.\n Tap the plus button to add a command</string>
+ <string name="system">System</string>
+ <string name="data">Data</string>
+ <string name="android_secure">Android Secure</string>
+ <string name="boot">Boot</string>
+ <string name="cache">Cache</string>
+ <string name="recovery">Recovery</string>
+ <string name="backup_name">Backup Name</string>
+ <string name="textview">TextView</string>
+ <string name="presets">PRESETS</string>
+ <string name="reboot">Reboot</string>
+ <string name="no_backups_found">No Backups Found</string>
+ <string name="backups_display">The backups you make will be displayed here</string>
+
<!-- About -->
<string name="title_about">About</string>
<string name="about_ok">OK</string>
@@ -1205,4 +1230,4 @@ causes the kernel to prefer to reclaim dentries and inodes.</item>
<item>4</item>
</string-array>
-</resources> \ No newline at end of file
+</resources>