diff options
author | Ximeng Zu <uznomis@yahoo.com> | 2017-06-18 16:37:13 -0500 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2017-07-23 23:00:48 +0200 |
commit | 02f3c4848ab52358bfee56c570a19a3a071574f2 (patch) | |
tree | 7614b82abc304cea2b4d59de52147a5b53d37219 /android/source/res/layout | |
parent | fadf31b32566bc5e7b729de3e112addb93585be8 (diff) |
Calc UI on Android Viewer
Adding Calc UI. Two blank views are added as
row and column headers. CommonCanvasElement
is used to draw header cells on the views. [WIP]
Change-Id: I37eaa82805045ab650fd127e54c8421c61a4ea27
Reviewed-on: https://gerrit.libreoffice.org/38936
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'android/source/res/layout')
-rw-r--r-- | android/source/res/layout/activity_main.xml | 51 |
1 files changed, 41 insertions, 10 deletions
diff --git a/android/source/res/layout/activity_main.xml b/android/source/res/layout/activity_main.xml index bfa575b57f36..fb5ba1ef7d32 100644 --- a/android/source/res/layout/activity_main.xml +++ b/android/source/res/layout/activity_main.xml @@ -36,22 +36,53 @@ </android.support.design.widget.AppBarLayout> <RelativeLayout - android:id="@+id/gecko_layout" android:layout_width="match_parent" - android:layout_height="match_parent" - android:orientation="vertical"> + android:layout_height="match_parent"> - <org.mozilla.gecko.gfx.LayerView - android:id="@+id/layer_view" + <View + android:id="@+id/calc_header_top_left" + android:layout_width="@dimen/calc_header_width" + android:layout_height="@dimen/calc_header_height" + android:visibility="gone"/> + + <org.libreoffice.overlay.CalcHeadersView + android:id="@+id/calc_header_column" + android:layout_width="match_parent" + android:layout_height="@dimen/calc_header_height" + android:layout_toRightOf="@+id/calc_header_top_left" + android:layout_toEndOf="@+id/calc_header_top_left" + android:visibility="gone"/> + + <org.libreoffice.overlay.CalcHeadersView + android:id="@+id/calc_header_row" + android:layout_width="@dimen/calc_header_width" + android:layout_height="match_parent" + android:layout_below="@+id/calc_header_top_left" + android:visibility="gone"/> + + <RelativeLayout + android:id="@+id/gecko_layout" android:layout_width="match_parent" - android:layout_height="match_parent"/> + android:layout_height="match_parent" + android:orientation="vertical" + android:layout_toRightOf="@+id/calc_header_row" + android:layout_toEndOf="@+id/calc_header_row" + android:layout_below="@+id/calc_header_column"> + + <org.mozilla.gecko.gfx.LayerView + android:id="@+id/layer_view" + android:layout_width="match_parent" + android:layout_height="match_parent"/> - <org.libreoffice.overlay.DocumentOverlayView - android:id="@+id/text_cursor_view" - android:layout_width="fill_parent" - android:layout_height="fill_parent"/> + <org.libreoffice.overlay.DocumentOverlayView + android:id="@+id/text_cursor_view" + android:layout_width="fill_parent" + android:layout_height="fill_parent"/> + + </RelativeLayout> </RelativeLayout> + </LinearLayout> <include layout="@layout/toolbar_bottom"/> |