1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-11-16 17:32:08 +01:00

bottom toolbar overflow style

This commit is contained in:
Gregor Santner 2016-09-15 23:08:03 +02:00
parent e2eaa73ba1
commit fb4209b13f
5 changed files with 34 additions and 15 deletions

View file

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".activity.MainActivity"> tools:context=".activity.MainActivity">
<android.support.design.widget.AppBarLayout <android.support.design.widget.AppBarLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -12,17 +12,17 @@
android:theme="@style/AppTheme.AppBarOverlay"> android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar <android.support.v7.widget.Toolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary" android:background="?attr/colorPrimary"
app:layout_scrollFlags="scroll|enterAlways|snap" app:layout_scrollFlags="scroll|enterAlways|snap"
app:popupTheme="@style/AppTheme.PopupOverlay" /> app:popupTheme="@style/AppTheme.PopupOverlay"/>
</android.support.design.widget.AppBarLayout> </android.support.design.widget.AppBarLayout>
<include layout="@layout/main__content" /> <include layout="@layout/main__content"/>
<android.support.design.widget.AppBarLayout <android.support.design.widget.AppBarLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -35,9 +35,10 @@
android:id="@+id/toolbar2" android:id="@+id/toolbar2"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="45dp" android:layout_height="45dp"
android:background="?attr/colorPrimary" android:background="@color/colorPrimary"
android:theme="@style/BottomToolbarMenuOverflowStyle"
app:layout_scrollFlags="scroll|enterAlways|snap" app:layout_scrollFlags="scroll|enterAlways|snap"
app:popupTheme="@style/AppTheme.PopupOverlay" /> app:popupTheme="@style/Theme.AppCompat.NoActionBar"/>
</android.support.design.widget.AppBarLayout> </android.support.design.widget.AppBarLayout>

View file

@ -8,11 +8,13 @@
<string name="fragment_debug__section_app">Anwendung</string> <string name="fragment_debug__section_app">Anwendung</string>
<string name="fragment_debug__section_device">Gerät</string> <string name="fragment_debug__section_device">Gerät</string>
<string name="fragment_debug__section_pod">Diaspora Pod</string> <string name="fragment_debug__section_pod">Diaspora Pod</string>
<string name="fragment_debug__section_log">Debug-Protokoll</string>
<string name="fragment_debug__app_version">App Version: %1$s</string> <string name="fragment_debug__app_version">App Version: %1$s</string>
<string name="fragment_debug__package_name">Paketname: %1$s</string> <string name="fragment_debug__package_name">Paketname: %1$s</string>
<string name="fragment_debug__android_version">Android Version: %1$s</string> <string name="fragment_debug__android_version">Android Version: %1$s</string>
<string name="fragment_debug__device_name">Gerätename: %1$s</string> <string name="fragment_debug__device_name">Gerätename: %1$s</string>
<string name="fragment_debug__pod_domain">Pod-Adresse: %1$s</string> <string name="fragment_debug__pod_domain">Pod-Adresse: %1$s</string>
<string name="fragment_debug__toast_log_copied">Debug-Protokoll in Zwischenablage kopiert</string>
<string name="fragment_license__3rd_party_libs_title">Verwendete Drittanbieter-Bibliotheken</string> <string name="fragment_license__3rd_party_libs_title">Verwendete Drittanbieter-Bibliotheken</string>
<!-- About (large amount of text) --> <!-- About (large amount of text) -->
<string name="fragment_about__about_content"> <string name="fragment_about__about_content">

View file

@ -8,11 +8,13 @@
<string name="fragment_debug__section_app">Applicazione</string> <string name="fragment_debug__section_app">Applicazione</string>
<string name="fragment_debug__section_device">Dispositivo</string> <string name="fragment_debug__section_device">Dispositivo</string>
<string name="fragment_debug__section_pod">Pod Diaspora</string> <string name="fragment_debug__section_pod">Pod Diaspora</string>
<string name="fragment_debug__section_log">Log di debug</string>
<string name="fragment_debug__app_version">Versione app: %1$s</string> <string name="fragment_debug__app_version">Versione app: %1$s</string>
<string name="fragment_debug__package_name">Nome pacchetto: %1$s</string> <string name="fragment_debug__package_name">Nome pacchetto: %1$s</string>
<string name="fragment_debug__android_version">Versione Android: %1$s</string> <string name="fragment_debug__android_version">Versione Android: %1$s</string>
<string name="fragment_debug__device_name">Nome dispositivo: %1$s</string> <string name="fragment_debug__device_name">Nome dispositivo: %1$s</string>
<string name="fragment_debug__pod_domain">Dominio pod: %1$s</string> <string name="fragment_debug__pod_domain">Dominio pod: %1$s</string>
<string name="fragment_debug__toast_log_copied">Log di debug copiato negli appunti</string>
<string name="fragment_license__3rd_party_libs_title">Librerie di terze parti usate</string> <string name="fragment_license__3rd_party_libs_title">Librerie di terze parti usate</string>
<!-- About (large amount of text) --> <!-- About (large amount of text) -->
<string name="fragment_about__about_content"> <string name="fragment_about__about_content">

View file

@ -64,6 +64,10 @@
chiudere completamente l\'app o riavviare il dispositivo. Se non permetti l\'accesso alla memoria ma vuoi usare la chiudere completamente l\'app o riavviare il dispositivo. Se non permetti l\'accesso alla memoria ma vuoi usare la
funzione degli screenshot più avanti, puoi garantire il permesso successivamente. Vai su: Impostazioni - App - funzione degli screenshot più avanti, puoi garantire il permesso successivamente. Vai su: Impostazioni - App -
Diaspora. Nella sezione dei permessi puoi garantire il permesso per la scrittura sul dispositivo.</string> Diaspora. Nella sezione dei permessi puoi garantire il permesso per la scrittura sul dispositivo.</string>
<string name="permissions_image">Devi garantire il permesso di accesso alla memoria per poter salvare e caricare le immagini. Dopodiché devi
chiudere completamente l\'app o riavviare il dispositivo. Se non permetti l\'accesso alla memoria ma vuoi
salvare le immagini più avanti, puoi garantire il permesso successivamente. Vai su: Impostazioni - App -
Diaspora. Nella sezione dei permessi puoi garantire il permesso per la scrittura sul dispositivo.</string>
<string name="permission_denied">Permesso negato.</string> <string name="permission_denied">Permesso negato.</string>
<string name="permission_granted_try_again">Permesso garantito. Si prega di riprovare.</string> <string name="permission_granted_try_again">Permesso garantito. Si prega di riprovare.</string>
</resources> </resources>

View file

@ -6,6 +6,7 @@
<item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item> <item name="colorAccent">@color/colorAccent</item>
<item name="actionMenuTextColor">@color/colorAccent</item>
</style> </style>
<style name="AppTheme.NoActionBar"> <style name="AppTheme.NoActionBar">
@ -17,4 +18,13 @@
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" /> <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
<style name="BottomToolbarMenuOverflowStyle" parent="Theme.AppCompat.NoActionBar">
<!-- Text in overflow -->
<item name="android:textColorPrimary">@color/primary_text</item>
<!-- overflow icon (three vertical dots) -->
<item name="android:textColorSecondary">@color/white</item>
<!-- popup background color -->
<item name="android:background">@color/white</item>
</style>
</resources> </resources>