简体   繁体   English

带操作栏的导航抽屉

[英]Navigation Drawer with Action Bar

I am looking for creating an dvd library in android, The design is having navigation drawer for quick navigation, and one action bar which is having only new DVD list count ie 4 in image(which is dynamically updated). 我正在寻找在android中创建dvd库的方法,该设计具有用于快速导航的导航抽屉,以及一个仅具有新DVD列表计数的操作栏,即图像中有4个(动态更新)。

Let me share you 让我分享你

在此处输入图片说明

First Thing which make confusion for me 首先让我感到困惑的事情

why do i need action BAR ? 为什么需要动作栏? (to just display new items and navigation drawer icon) (仅显示新项目和导航抽屉图标)

I am not sure on which pattern i should follow. 我不确定应该遵循哪种模式。 I need your input for this. 我需要您的输入。 If I need to go with this approach how to achieve custom action bar with navigation drawer on activity. 如果我需要采用这种方法,那么如何在活动中使用导航抽屉来实现自定义操作栏。

IMO there's no reason not to adhere to the actionbar pattern. IMO没有理由不遵守操作栏模式。 You anyway need a place where to trigger the open/close of the drawer from. 无论如何,您都需要一个可以触发抽屉打开/关闭的地方。 Having the actionbar matches the guidelines and makes the usage of the app intuitive for the user (as it is already used to the pattern). 使操作栏与准则相匹配,并使应用程序的使用对于用户来说很直观(因为它已经习惯了模式)。

Also having the actionbar allows you to brand your app more (by keeping keeping the app logo always visible and styling the action bar with your brand colors) and to keep consistency in case you need to add actions in one of the low-level screens (or in the main one, maybe in a future release) 此外,拥有操作栏还可以使您的应用更具品牌知名度(保持应用徽标始终可见,并使用品牌色彩来设置操作栏样式),并保持一致性,以防您需要在其中一个低级屏幕中添加操作(或在主要版本中(可能在将来的版本中)

To add the counter to the action bar, see the actionview section at http://developer.android.com/guide/topics/ui/actionbar.html 要将计数器添加到操作栏,请参见http://developer.android.com/guide/topics/ui/actionbar.html上的actionview部分

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM