summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-05-05 23:39:25 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-05-05 23:50:13 -0400
commit718bef72f9f674151580a1babe237fb6fdeb8266 (patch)
tree2feb02c14ab3cd7a9a173f833e16ea2722403b9f /res
parent8b795e605aa2ebfd385ee83b0f1b698435737b47 (diff)
Whitespace and formatting
Diffstat (limited to 'res')
-rw-r--r--res/layout/gesture_create.xml51
-rw-r--r--res/layout/gestures_item.xml8
-rw-r--r--res/layout/ime.xml4
-rw-r--r--res/values-v11/styles.xml3
-rw-r--r--res/values-v14/styles.xml3
-rw-r--r--res/values/colors.xml2
-rw-r--r--res/values/dimens.xml2
-rw-r--r--res/values/strings.xml1
-rw-r--r--res/values/styles.xml3
9 files changed, 36 insertions, 41 deletions
diff --git a/res/layout/gesture_create.xml b/res/layout/gesture_create.xml
index 2864bc7..60eccb8 100644
--- a/res/layout/gesture_create.xml
+++ b/res/layout/gesture_create.xml
@@ -14,75 +14,70 @@
limitations under the License.
-->
-<LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
-
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
-
- android:orientation="vertical">
+ android:orientation="vertical" >
<!-- The "Name" bar at the top -->
+
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:orientation="horizontal">
- <!-- The prompt -->
+ android:orientation="horizontal" >
+
+ <!-- The prompt -->
+
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="6dip"
-
android:text="@string/prompt_gesture_name"
android:textAppearance="?android:attr/textAppearanceMedium" />
<!-- The input -->
+
<EditText
android:id="@+id/gesture_name"
android:layout_width="0dip"
- android:layout_weight="1.0"
android:layout_height="wrap_content"
+ android:layout_weight="1.0"
android:inputType="text"
-
android:maxLength="40"
android:singleLine="true" />
-
</LinearLayout>
<!-- The gesture input -->
+
<android.gesture.GestureOverlayView
android:id="@+id/gestures_overlay"
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1.0"
-
android:gestureStrokeType="multiple" />
- <!-- The "add" and "cancel" buttons -->
+ <!-- The "add" and "cancel" buttons -->
+
<LinearLayout
style="@android:style/ButtonBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:orientation="horizontal">
+ android:orientation="horizontal" >
<Button
android:id="@+id/done"
- android:onClick="addGesture"
- android:text="@string/button_done"
-
- android:enabled="false"
-
+ style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dip"
android:layout_height="wrap_content"
- android:layout_weight="1"
- style="?android:attr/buttonBarButtonStyle" />
+ android:layout_weight="1"
+ android:enabled="false"
+ android:onClick="addGesture"
+ android:text="@string/button_done" />
<Button
- android:onClick="cancelGesture"
- android:text="@string/button_discard"
-
+ style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dip"
android:layout_height="wrap_content"
- android:layout_weight="1"
- style="?android:attr/buttonBarButtonStyle" />
-
+ android:layout_weight="1"
+ android:onClick="cancelGesture"
+ android:text="@string/button_discard" />
</LinearLayout>
-
+
</LinearLayout>
diff --git a/res/layout/gestures_item.xml b/res/layout/gestures_item.xml
index 36c93b8..1739a19 100644
--- a/res/layout/gestures_item.xml
+++ b/res/layout/gestures_item.xml
@@ -13,19 +13,15 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/text1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
-
+ android:drawablePadding="12dip"
+ android:ellipsize="marquee"
android:gravity="center_vertical"
android:minHeight="?android:attr/listPreferredItemHeight"
-
- android:drawablePadding="12dip"
android:paddingLeft="6dip"
android:paddingRight="6dip"
-
- android:ellipsize="marquee"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceLarge" />
diff --git a/res/layout/ime.xml b/res/layout/ime.xml
index 34bbd6d..7ef50a1 100644
--- a/res/layout/ime.xml
+++ b/res/layout/ime.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<us.minak.IMEView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
- android:layout_height="match_parent">
-
+ android:layout_height="match_parent" >
+
<us.minak.IMEGestureOverlayView
android:id="@+id/drawing_space"
android:layout_width="wrap_content"
diff --git a/res/values-v11/styles.xml b/res/values-v11/styles.xml
index 3c02242..0e7dbb1 100644
--- a/res/values-v11/styles.xml
+++ b/res/values-v11/styles.xml
@@ -1,4 +1,5 @@
-<resources>
+<?xml version="1.0" encoding="utf-8"?>
+<resources xmlns:android="http://schemas.android.com/apk/res/android">
<!--
Base application theme for API 11+. This theme completely replaces
diff --git a/res/values-v14/styles.xml b/res/values-v14/styles.xml
index a91fd03..6f58eb0 100644
--- a/res/values-v14/styles.xml
+++ b/res/values-v14/styles.xml
@@ -1,4 +1,5 @@
-<resources>
+<?xml version="1.0" encoding="utf-8"?>
+<resources xmlns:android="http://schemas.android.com/apk/res/android">
<!--
Base application theme for API 14+. This theme completely replaces
diff --git a/res/values/colors.xml b/res/values/colors.xml
index c180987..ca6e02a 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
-<resources>
+<resources xmlns:android="http://schemas.android.com/apk/res/android">
<color name="gesture_color">#FFFFFF00</color>
</resources>
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 1a6cbca..7a57a2e 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<resources>
+<resources xmlns:android="http://schemas.android.com/apk/res/android">
<dimen name="gesture_thumbnail_inset">8dip</dimen>
<dimen name="gesture_thumbnail_size">64dip</dimen>
</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index e6474ea..6cdc831 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<string name="app_name">Minak</string>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 6ce89c7..fcf4c0f 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -1,4 +1,5 @@
-<resources>
+<?xml version="1.0" encoding="utf-8"?>
+<resources xmlns:android="http://schemas.android.com/apk/res/android">
<!--
Base application theme, dependent on API level. This theme is replaced