summaryrefslogtreecommitdiff
path: root/android/source/res/layout
diff options
context:
space:
mode:
authorMert Tümer <merttumer7@gmail.com>2018-05-25 15:15:29 +0300
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-06-01 04:30:20 +0200
commitea62d02cedd7b6c90ebcb0ce73e30dc6ddd342c8 (patch)
tree43d2dec03a8c33ae785c31755639b5af8d810ff5 /android/source/res/layout
parent22ef830aa01bfe1e74d649d3ad01ece29a72c44d (diff)
[Pardus] tdf#106371 ability to insert/delete tables Android Viewer
This patch is sponsored by ULAKBIM/PARDUS project. Signed-off-by: Mert Tümer <merttumer7@gmail.com> Change-Id: I2d160b53ad432be96deb6f13c0d91a6053744dc8 Reviewed-on: https://gerrit.libreoffice.org/54803 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'android/source/res/layout')
-rw-r--r--android/source/res/layout/number_picker.xml130
-rw-r--r--android/source/res/layout/toolbar_bottom.xml20
2 files changed, 150 insertions, 0 deletions
diff --git a/android/source/res/layout/number_picker.xml b/android/source/res/layout/number_picker.xml
new file mode 100644
index 000000000000..51463926c70f
--- /dev/null
+++ b/android/source/res/layout/number_picker.xml
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="utf-8"?>
+<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:padding="15dp"
+ android:id="@+id/numberpickerLayout">
+
+ <TextView
+ android:id="@+id/textView11"
+ android:layout_width="wrap_content"
+ android:layout_height="30dp"
+ android:layout_marginStart="8dp"
+ android:layout_marginLeft="8dp"
+ android:layout_marginTop="8dp"
+ android:text="Rows:"
+ android:gravity="center"
+ android:textSize="18sp"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <TextView
+ android:id="@+id/number_picker_rows_positive"
+ android:layout_width="30dp"
+ android:layout_height="30dp"
+ android:layout_marginEnd="8dp"
+ android:layout_marginRight="8dp"
+ android:layout_marginTop="8dp"
+ android:background="@drawable/image_button_background"
+ android:clickable="true"
+ android:gravity="center"
+ android:text="+"
+ android:textSize="18sp"
+ android:textStyle="bold"
+ app:layout_constraintEnd_toEndOf="@+id/numberpickerLayout"
+ app:layout_constraintTop_toTopOf="@+id/numberpickerLayout" />
+
+ <TextView
+ android:id="@+id/number_picker_row_count"
+ android:layout_width="30dp"
+ android:layout_height="30dp"
+ android:layout_marginEnd="8dp"
+ android:layout_marginStart="8dp"
+ android:layout_marginTop="8dp"
+ android:text="3"
+ android:gravity="center"
+ android:textSize="18sp"
+ android:textStyle="bold"
+ app:layout_constraintEnd_toStartOf="@+id/number_picker_rows_positive"
+ app:layout_constraintStart_toEndOf="@+id/number_picker_rows_negative"
+ app:layout_constraintTop_toTopOf="@+id/numberpickerLayout" />
+
+ <TextView
+ android:id="@+id/number_picker_rows_negative"
+ android:layout_width="30dp"
+ android:layout_height="30dp"
+ android:layout_marginEnd="8dp"
+ android:layout_marginStart="8dp"
+ android:layout_marginTop="8dp"
+ android:text="-"
+ android:gravity="center"
+ android:textSize="18sp"
+ android:textStyle="bold"
+ android:clickable="true"
+ android:background="@drawable/image_button_background"
+ app:layout_constraintEnd_toEndOf="@+id/numberpickerLayout"
+ app:layout_constraintStart_toStartOf="@+id/numberpickerLayout"
+ app:layout_constraintTop_toTopOf="@+id/numberpickerLayout" />
+
+ <TextView
+ android:id="@+id/textView12"
+ android:layout_width="wrap_content"
+ android:layout_height="30dp"
+ android:layout_marginStart="8dp"
+ android:layout_marginLeft="8dp"
+ android:layout_marginTop="24dp"
+ android:text="Columns:"
+ android:gravity="center"
+ android:textSize="18sp"
+ app:layout_constraintStart_toStartOf="@+id/numberpickerLayout"
+ app:layout_constraintTop_toBottomOf="@+id/textView11" />
+
+ <TextView
+ android:id="@+id/number_picker_cols_negative"
+ android:layout_width="30dp"
+ android:layout_height="30dp"
+ android:layout_marginEnd="8dp"
+ android:layout_marginStart="8dp"
+ android:layout_marginTop="24dp"
+ android:text="-"
+ android:gravity="center"
+ android:textSize="18sp"
+ android:textStyle="bold"
+ android:background="@drawable/image_button_background"
+ android:clickable="true"
+ app:layout_constraintEnd_toEndOf="@+id/numberpickerLayout"
+ app:layout_constraintStart_toStartOf="@+id/numberpickerLayout"
+ app:layout_constraintTop_toBottomOf="@+id/number_picker_rows_negative" />
+
+ <TextView
+ android:id="@+id/number_picker_col_count"
+ android:layout_width="30dp"
+ android:layout_height="30dp"
+ android:layout_marginEnd="8dp"
+ android:layout_marginStart="8dp"
+ android:layout_marginTop="24dp"
+ android:gravity="center"
+ android:text="3"
+ android:textSize="18sp"
+ android:textStyle="bold"
+ app:layout_constraintEnd_toStartOf="@+id/number_picker_cols_positive"
+ app:layout_constraintStart_toEndOf="@+id/number_picker_cols_negative"
+ app:layout_constraintTop_toBottomOf="@+id/number_picker_row_count" />
+
+ <TextView
+ android:id="@+id/number_picker_cols_positive"
+ android:layout_width="30dp"
+ android:layout_height="30dp"
+ android:layout_marginEnd="8dp"
+ android:layout_marginRight="8dp"
+ android:layout_marginTop="24dp"
+ android:text="+"
+ android:gravity="center"
+ android:textSize="18sp"
+ android:textStyle="bold"
+ android:clickable="true"
+ android:background="@drawable/image_button_background"
+ app:layout_constraintEnd_toEndOf="@+id/numberpickerLayout"
+ app:layout_constraintTop_toBottomOf="@+id/number_picker_rows_positive" />
+</android.support.constraint.ConstraintLayout> \ No newline at end of file
diff --git a/android/source/res/layout/toolbar_bottom.xml b/android/source/res/layout/toolbar_bottom.xml
index d944b2713f2a..d1476a57fa57 100644
--- a/android/source/res/layout/toolbar_bottom.xml
+++ b/android/source/res/layout/toolbar_bottom.xml
@@ -366,6 +366,26 @@
android:paddingBottom="12dp"
android:paddingTop="12dp"
app:srcCompat="@drawable/ic_folder_black_24dp" />
+
+ <ImageButton
+ android:id="@+id/button_insert_table"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="0.25"
+ android:background="@drawable/image_button_background"
+ android:paddingBottom="12dp"
+ android:paddingTop="12dp"
+ app:srcCompat="@drawable/ic_grid_on_black_24dp" />
+
+ <ImageButton
+ android:id="@+id/button_delete_table"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="0.25"
+ android:background="@drawable/image_button_background"
+ android:paddingBottom="12dp"
+ android:paddingTop="12dp"
+ app:srcCompat="@drawable/ic_grid_off_black_24dp" />
</LinearLayout>
</ScrollView>
</LinearLayout>