Is there a way to specify some action items to the top part of the Split Action Bar while the others go to the bottom? Or is it all or nothing, whereby all the action items go to the bottom part of the split only?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
To solve this I used a custom view as my action bar:
and then for the bottom bar I inflated my menu view or whatever you want to appear at bottom:
In the Android Manifest, I also include (android:uiOptions="splitActionBarWhenNarrow") like this:
Doubtful. However, you could se a combination of these when creating your menu items in the Action Bar to experiment.
I solved this problem by using a CustomView and adding the menu items, which should display at the top, to this view.
If this option is activated, Android has the option to split the action bar. Whether to split is decided by the system at runtime
You can define that the action bar should be automatically split by the system if not enough space is available you can activate this via the android:uiOptions="SplitActionBarWhenNarrow" parameter in the declaration of your application activity in the AndroidManifest.xml file.
This is currently not possible.
See the response directly from Android developers Reto Meier and Roman Nurik during the Android Developer Office Hours: http://youtu.be/pBmRCBP56-Q?t=55m50s