mirror of
https://github.com/gsantner/dandelion
synced 2025-12-12 07:11:11 +01:00
toolbar/actions/menu changes, replaced fab
This commit is contained in:
parent
234335e696
commit
f7ce310703
8 changed files with 177 additions and 179 deletions
53
app/src/main/res/menu/main__menu_bottom.xml
Normal file
53
app/src/main/res/menu/main__menu_bottom.xml
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context=".activity.MainActivity">
|
||||
|
||||
|
||||
<item
|
||||
android:id="@+id/action_search"
|
||||
android:icon="@drawable/fab_search"
|
||||
app:showAsAction="always"
|
||||
android:title="@string/search_by_tags_or_persons" />
|
||||
|
||||
|
||||
<item
|
||||
android:id="@+id/action_compose"
|
||||
android:icon="@drawable/fab_compose"
|
||||
app:showAsAction="always"
|
||||
android:title="@string/compose" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_share"
|
||||
android:icon="@drawable/ic_share_white_24dp"
|
||||
android:title="@string/jb_share"
|
||||
app:showAsAction="always" />
|
||||
|
||||
<!--
|
||||
<item
|
||||
android:id="@+id/action_share2"
|
||||
android:icon="@drawable/ic_share_white_24dp"
|
||||
android:title="@string/jb_share"
|
||||
app:showAsAction="always" >
|
||||
<menu>
|
||||
<item android:id="@+id/item1" android:title="@string/search_alert_people"></item>
|
||||
<item android:id="@+id/item2" android:title="@string/search_alert_tag"></item>
|
||||
</menu>
|
||||
</item> -->
|
||||
|
||||
<!-- Keep right most -->
|
||||
<item
|
||||
android:id="@+id/action_go_to_top"
|
||||
android:icon="@drawable/fab_top"
|
||||
android:title="@string/go_to_top"
|
||||
app:showAsAction="always"/>
|
||||
|
||||
|
||||
<!-- overflow menu -->
|
||||
<item
|
||||
android:id="@+id/action_exit"
|
||||
android:icon="@drawable/ic_sync_white_24dp"
|
||||
android:title="@string/exit_app"
|
||||
app:showAsAction="never" />
|
||||
|
||||
</menu>
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.github.dfa.diaspora_android.activity.MainActivity">
|
||||
tools:context=".activity.MainActivity">
|
||||
|
||||
<item
|
||||
android:id="@+id/action_notifications"
|
||||
|
|
@ -15,16 +15,4 @@
|
|||
android:title="@string/messages"
|
||||
app:showAsAction="always" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_share"
|
||||
android:icon="@drawable/ic_share_white_24dp"
|
||||
android:title="@string/jb_share"
|
||||
app:showAsAction="ifRoom" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_exit"
|
||||
android:icon="@drawable/ic_sync_white_24dp"
|
||||
android:title="@string/exit_app"
|
||||
app:showAsAction="never" />
|
||||
|
||||
</menu>
|
||||
Loading…
Add table
Add a link
Reference in a new issue