diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-05-05 23:43:01 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-05-05 23:50:13 -0400 |
commit | 15f9095ae8bf3b652de886a28275c71efaab1ac5 (patch) | |
tree | 0700f80dd47576558018cfdaa61664623f500b7d /res | |
parent | f3af08d258a7ae372192fe38ffb64a489584d554 (diff) |
Transplant in the code from Penboard, just to have something working.
The diff of this commit will likely be helpful.
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/ime.xml | 46 | ||||
-rw-r--r-- | res/layout/symbols.xml | 17 |
2 files changed, 63 insertions, 0 deletions
diff --git a/res/layout/ime.xml b/res/layout/ime.xml index 7ef50a1..ddabd0c 100644 --- a/res/layout/ime.xml +++ b/res/layout/ime.xml @@ -3,11 +3,35 @@ android:layout_width="match_parent" android:layout_height="match_parent" > + <LinearLayout + android:id="@+id/left_panel" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:orientation="vertical" > + + <Button + android:id="@+id/symbols_btn" + android:layout_width="85dp" + android:layout_height="85dp" + android:layout_marginBottom="5dp" + android:layout_marginTop="10dp" /> + + <Button + android:id="@+id/shift_btn" + android:layout_width="85dp" + android:layout_height="85dp" + android:layout_marginBottom="10dp" + android:layout_marginTop="5dp" /> + </LinearLayout> + <us.minak.IMEGestureOverlayView android:id="@+id/drawing_space" android:layout_width="wrap_content" android:layout_height="200dp" android:layout_centerInParent="true" + android:layout_toLeftOf="@+id/right_panel" + android:layout_toRightOf="@+id/left_panel" android:fadeDuration="300" android:fadeEnabled="true" android:fadeOffset="200" @@ -17,4 +41,26 @@ android:gestureStrokeSquarenessThreshold="0.0" android:gestureStrokeType="multiple" /> + <LinearLayout + android:id="@+id/right_panel" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:orientation="vertical" > + + <Button + android:id="@+id/backspace_btn" + android:layout_width="85dp" + android:layout_height="85dp" + android:layout_marginBottom="5dp" + android:layout_marginTop="10dp" /> + + <Button + android:id="@+id/space_btn" + android:layout_width="85dp" + android:layout_height="85dp" + android:layout_marginBottom="10dp" + android:layout_marginTop="5dp" /> + </LinearLayout> + </us.minak.IMEView> diff --git a/res/layout/symbols.xml b/res/layout/symbols.xml new file mode 100644 index 0000000..2fa1a71 --- /dev/null +++ b/res/layout/symbols.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="400dp" + android:background="@android:color/transparent" + android:orientation="horizontal" > + + <GridView + android:id="@+id/symbols_gridview" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:columnWidth="40dp" + android:gravity="center" + android:numColumns="auto_fit" + android:stretchMode="columnWidth" /> + +</LinearLayout> |