diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-05-05 23:39:25 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-05-05 23:50:13 -0400 |
commit | 718bef72f9f674151580a1babe237fb6fdeb8266 (patch) | |
tree | 2feb02c14ab3cd7a9a173f833e16ea2722403b9f /res/layout | |
parent | 8b795e605aa2ebfd385ee83b0f1b698435737b47 (diff) |
Whitespace and formatting
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/gesture_create.xml | 51 | ||||
-rw-r--r-- | res/layout/gestures_item.xml | 8 | ||||
-rw-r--r-- | res/layout/ime.xml | 4 |
3 files changed, 27 insertions, 36 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" |