From 46855d3a98b515f334c447707c533025cfe98a48 Mon Sep 17 00:00:00 2001 From: Mert Tumer Date: Tue, 10 Jul 2018 14:10:54 -0700 Subject: Style tab added to Android Viewer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a base change, further implementations may be added Change-Id: I8aa5b5314f2b1e93821baf3da3e44803904f57fa Reviewed-on: https://gerrit.libreoffice.org/57249 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- android/source/res/layout/toolbar_bottom.xml | 131 ++++++++++++--------- .../org/libreoffice/LibreOfficeMainActivity.java | 5 + 2 files changed, 80 insertions(+), 56 deletions(-) (limited to 'android') diff --git a/android/source/res/layout/toolbar_bottom.xml b/android/source/res/layout/toolbar_bottom.xml index d1476a57fa57..d1820216d2ab 100644 --- a/android/source/res/layout/toolbar_bottom.xml +++ b/android/source/res/layout/toolbar_bottom.xml @@ -169,62 +169,6 @@ - - - - - - - - - - @@ -389,6 +333,81 @@ + + + + + + + + + + + + + + + + + + + diff --git a/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java b/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java index 4cde5d96f992..e65d6c31e51a 100644 --- a/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java +++ b/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java @@ -239,6 +239,11 @@ public class LibreOfficeMainActivity extends AppCompatActivity implements Settin spec.setIndicator("Insert"); host.addTab(spec); + spec = host.newTabSpec("Style"); + spec.setContent(R.id.tab_style); + spec.setIndicator("Style"); + host.addTab(spec); + LinearLayout bottomToolbarLayout = findViewById(R.id.toolbar_bottom); LinearLayout toolbarColorPickerLayout = findViewById(R.id.toolbar_color_picker); LinearLayout toolbarBackColorPickerLayout = findViewById(R.id.toolbar_back_color_picker); -- cgit