forked from amazingfate/loongoffice
Lowered all-caps navigation labels to something more professional. Added a Spinner to the Toolbar in XML. Reworked many lines of LibreOfficeUIActivity to remove possible NPE's, and also removed redundant lines, which were mostly deprecated, as well as switching to a newer implementation of a toolbar-spinner navigation pattern. There are more deprecated methods, but I wanted them in a separate commit. Change-Id: I15d5365ed7c00880873bf7874bc794008436bb99 Reviewed-on: https://gerrit.libreoffice.org/32497 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
22 lines
799 B
XML
22 lines
799 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:elevation="3dp"
|
|
android:background="@color/toolbar_background"
|
|
app:theme="@style/LibreOfficeTheme.Toolbar"
|
|
tools:theme="@style/LibreOfficeTheme.Toolbar"
|
|
app:popupTheme="@style/LibreOfficeTheme">
|
|
|
|
<android.support.v7.widget.AppCompatSpinner
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/toolbar_spinner"/>
|
|
|
|
</android.support.v7.widget.Toolbar>
|